View Single Post
  #1   Spotlight this post!  
Unread 12-02-2011, 16:48
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Write user message displays old data bug

I found that using the Write User Message VI was displaying old data. For example, if it was blank and I sent a 1 then nothing was displayed. Then I sent a 2 and 1 was displayed. Then I sent a 2 again and 2 was displayed.

After digging into the library, the problem is in WPI_DriverStationLCDWrite User Message.vi. The text cache has no dependencies on anything else, and
gets executed prior to setting the line text. This means it sends the previous update's line, not the current update.

I've attached a version which puts the text cache in a sequence structure so that it is called at the correct time. Put it in C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\Rock Robotics\WPI\DriverStation\DriverStationLCD to fix the problem.

I reported this to the WPILIB tracker http://firstforge.wpi.edu/sf/tracker..._bugs/artf1335
Attached Files
File Type: vi WPI_DriverStationLCDWrite User Message.vi (15.0 KB, 9 views)

Last edited by Joe Ross : 12-02-2011 at 16:55.
Reply With Quote