LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading in a loop

First, I want to thank all of you who answered to any of my questions, I appreciate it and it helps me to progress a lot. My actual question is about reading in a loop. I read a string (Visa read) of a specified lenght of bytes from my serial port. This visa read is in a while loop, and I'd like to cummulate all the readings in a text indicator (and eventually in a file). For now, I'm only able to get the last reading, 'cause if I put my text indicator in the loop, it overwrites at each iteration and if I put it outside, it keeps only the last reading. I'm sure it's just about concatenating or building text but I did not find how. Thanks once again for help.

Philippe
0 Kudos
Message 1 of 2
(2,465 Views)
Right click on the border of your loop and create a shift register. Once you have created this concatentate the strings together. You can then place an indicator in the loop and see previous iterations data. Look in the help to explain shift registers alittle better. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 2
(2,465 Views)