Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Solenoid Output in Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=81554)

rhf323 30-01-2010 20:43

Solenoid Output in Dashboard
 
We copied the code from the Dashboard example and were able to get the pwms, analog sensors, and digital sensors to display on the dashboard.

How do we get the solenoids and everything else to work?

rdk1024 31-01-2010 15:12

Re: Solenoid Output in Dashboard
 
rhf323: You mentioned that you copied code from the Dashboard example. Could you tell me where you found that example code? I am having trouble with the Dashboard on our Classmate PC and would like to see the example that you used to see if it might help me. Thanks in advance.

Radical Pi 31-01-2010 17:19

Re: Solenoid Output in Dashboard
 
Assuming you are using C++, I noticed that the dashboard example doesn't bother to check solenoids and instead just returns all off. Most likely because the writers didn't want to include the extra solenoid objects. If you add it yourself it probably will work

rhf323 01-02-2010 18:20

Re: Solenoid Output in Dashboard
 
One of the example projects built into WindRiver for us was a DashBoardDataExample project that had the code we used.

Radical Pi 01-02-2010 21:25

Re: Solenoid Output in Dashboard
 
yeah, that example doesn't do the solenoids. If you look at the code:
Code:

// Can't read solenoids without an instance of the object
dash.AddU8((char) 0);

that is what is sending the solenoid output. Almost all of the outputs in that example are really just hard-coded and don't actually pay attention to the real I/O. You will probably want to re-write that for the actual dashboard you use

rhf323 02-02-2010 15:12

Re: Solenoid Output in Dashboard
 
Well we got it working thanks any way:)

Kyledoo 03-02-2010 09:30

Re: Solenoid Output in Dashboard
 
Quote:

Originally Posted by rhf323 (Post 911886)
Well we got it working thanks any way:)

How did you get it working? Are you using the default dashboard? Which values did you need to un-comment? Do you have to do anything like encoder1.Get() or does it just grab data from the inputs? This I/O stuff is so hard for me to understand!


All times are GMT -5. The time now is 01:59.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi