View Full Version : 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?
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
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
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
yeah, that example doesn't do the solenoids. If you look at the 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
Well we got it working thanks any way:)
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!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.