Go to Post Everyone needs to start working with what they are given, and start appreciating FIRST, not complaining about what they think FIRST is doing wrong. - Marygrace [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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,557
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
  #2   Spotlight this post!  
Unread 13-02-2011, 07:19
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 134
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Write user message displays old data bug

Thanks Joe - I will be the owner of that tracker.
__________________
Doug Norman
National Instruments
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2011, 08:19
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Write user message displays old data bug

Thanks. I discovered this myself two days ago and I was just going on here to let everyone know. I see you beat me to it.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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