LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parsing a string

I am at home now and only have LV 2013 so I can't look at your code


@TomR2800 wrote:

July 17

 

currently the data scrolls to the screen, when the next log is sent to the screen the first set of reading disappears.  How can i have serveral logs appear on the screen before they are scolled off?


They don't scroll off. They get over written. The Display Data string control does not retain previous data.

You have to retain the previous readings and append the new reading to the previous and re send it to the string indicator.

Put some string Shift Registers on your While Loop to retain the data. Add something like this to your code

shift reg.png

Omar
0 Kudos
Message 11 of 14
(1,231 Views)

You will need to convert the 1D array of readings from the 'DAQ read to a 2D array before passing to the Waveform Chart.

Use "Build Array"

Build Array.png

Omar
0 Kudos
Message 12 of 14
(1,226 Views)

July 17

 

Omar:

I appreciate your help. I'm not sure how to use the flat sequence structure, but tomorrow's another day

 

thanks

 

tom

0 Kudos
Message 13 of 14
(1,192 Views)

It called Artificial Data Dependency Think Data Flow

 

This is more correct

ScrollPos.png

This makes sure the most resent data is written to the string control before the command to scrolls to the bottom to make sure the last line in "Display Data" is visible. Without Data Flow, LabVIEW could Scroll before the "Display Data" is updated. Then the most recent data would not be visible until the next data is updated. Your screen could always be one update behind.

 

This is just one of the very few accepted uses of the Flat Seq. (Don't even think of using a Stacked Seq!)

Omar
0 Kudos
Message 14 of 14
(1,162 Views)