View Single Post
  #5   Spotlight this post!  
Unread 22-01-2009, 14:09
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Default Labview Dashboard and Windriver Example Help

If you only care about the PWMs, those can be done easily w/out WPILib changes.

You can do something like:

DigitalModule *dm = DigitalModule::GetInstance(4); // 4 is cRIO slot #
dashboardDataFormat.m_PWMChannels[0][0] = dm->GetPWM(1);

to set the first PWM's data in the dashboardDataFormat object.
Continue on down to do the rest of them (use a loop perhaps).


Though if you cannot even get your hard-coded value of 50 to show up on your dashboard, then you may have another issue. Check that your dashboard's Labview install and your Windriver c++ are all at the most recent updated version so that the data packets each expects are the same. Also make sure you don't change the format or ordering of the data in DashboardDataFormat class because that will cause a mismatch with what the LV Dashboard expects.