Re: Default Labview Dashboard and Windriver Example Help
I will take any help I can get if that means tweaking the WPILib that is fine.
I really think there is probably an easier way to get my PWM indicators to show what the robot is doing though.
I have tried for 2 consecutive full days to get my Labview dashboard PWM indicators to show what PWM signals my Jaguars and Victors are getting with no luck.
Could someone please give me a working example of how to setup the PWM indicators to read the PWM values when I move my joysticks and stuff,please.
The Dashboard example leads me to believe I only have to set the class to PWM->GetRaw but I don't know if I am using the wrong module number or channel number or what. What is the C++ code I need to make this work, it should be simple but I have tried every variation of calling the class and setting the class that I know. Most of the time it goes so far as to make the cRIO stop responding.
Examples of the futility I have tried using the Default DashboardDataExample project under the UpdateDashboard subroutine:
dashboardDataFormat.m_PWMChannels[0][1] = PWM(1).GetRaw();
also using modules 1,3,4 and channels 1-7 with no results from any
dashboardDataFormat.m_PWMChannels[0][1] = 50;
also using modules 1,3,4 and channels 1-7 with no results from any
These compile fine, but when I run the robot and the dashboard the PWM indicators don't move! they don't even set themselves to 50!
I have a single digital breakout on the standard module 4 on the cRIO. What module number should I use in this case? If I can just get a single working example I can go from there.
Last edited by sircedric4 : 22-01-2009 at 07:07.
|