Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing serial data into different sets

Okay so if I send the format of data as
A1....A512,time$ then I can use the termination character for dollar sign 36 to be precise amd get full message each time but array size doesn't make sense to get time out of array cause it only returns size and once I separate I need the adc values to go into y of build waveform and time into t0 of waveform
0 Kudos
Message 11 of 13
(1,944 Views)
I don't see why you insist on the $ sign as the the terminator.

LabVIEW 101. Arrays are zero based which means array(0) is the first element. The last element is array(size-1). So, you can use the size value for the array subset, index array, etc with just some basic arithmetic.
0 Kudos
Message 12 of 13
(1,937 Views)

 i just keep the dollar sign cause i used it earlier with no problems but i can change it to LF. I have set the code up using the spreadsheet to array then have it going into split 1d array then call 512 for last element in array for time and then have that go to the "t0" of waveform so i hope that works see attached

 

0 Kudos
Message 13 of 13
(1,923 Views)