LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to retain a string

Hi I'm communicationg with the VISA protocol and taking data into Labview in the form of Hexadecimal strings.
I'm attaching my jpg images for the reference. My problem is when there is no read at visa, I wish to retain the last value read but my indicator(Y-Axis position) goes back to zero again. The execution of this structure is controlled by stopwatch, which in turn is set by the "execution time  calculated" by some calculations. Everything is fine, except that I'm not able to figure out how to retain the last value read in my structure.i.e when no data is coming from Visa read, there is no position update so I wish to retain the value read.
Attached is my vi in LabView 8 for your reference.
looking for help
Download All
0 Kudos
Message 1 of 5
(2,963 Views)

Your program is pretty hard to understand and you said you had fixed the problem here when you asked the same question. I can see no evidence that you did a modification to the program to skip the conversion and the VISA Read when the byte count is zero. It should be as simple as doing something like the code below.

At some point, you really need to clean up the code and follow the style guidelines as far as wiring techniques.

Message Edited by Dennis Knutson on 06-20-2007 11:29 AM

0 Kudos
Message 2 of 5
(2,952 Views)
put the loop outside the case structure and feed the blue wire across in the FALSE case.
0 Kudos
Message 3 of 5
(2,949 Views)
Unrelated, but where can I find the style guidelines? I'd like to keep my VIs as clean and uncluttered as possible, and since I'm new to Labview would like to form these good habits early.
0 Kudos
Message 4 of 5
(2,937 Views)
Try the LabVIEW Style Guide as described at the following link: http://zone.ni.com/devzone/cda/tut/p/id/4434
 
 
0 Kudos
Message 5 of 5
(2,923 Views)