LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it normal for a waveform graph to truncate arrays of values that are longer than others when displaying multiple waveforms on the same graph?

I am reading back values of several waveforms that were saved to disk using the write to spreadsheet vi. Some of the data sets are longer than others eg. 35 seconds vs 45 seconds. All have the same sample rate.
 
See the code segment below. If I select the larger files first then all the data will show. If I select a smaller file first the larger ones will be truncated to the size of the small file. I am using LV 7.0.
0 Kudos
Message 1 of 3
(2,724 Views)
Thats because you are inserting into an array.
 
When you try inseting an array of 50 elements as a row into 2 D array of 40 elements( be it rows), only only the first 40 get inserted into array.
 
I suggest you use XY graph( of course you have to create an x axis with the index of each element in teh inserted array and plot on xy graph).
Any doubts, do get back
 
regards
Dev
0 Kudos
Message 2 of 3
(2,719 Views)

I needed to make some grammatical/ nomelclature changes, But, Could not edit the previous post.

so posting again Smiley Wink

"Thats because you are inserting into an array of a predefined size.
 
For ex,
 
When you try inseting a 1D array 'A' of 50 elements as row 1 of a  2 D array of 40 elements(in row 0 ), only only the first 40 elements will get insetred into 2 D array. You lose the last 10 elements of array 'A'
 
To avoid this, I suggest you use XY graph( of course you have to create an x axis with the index of each element in the inserted array and plot on xy graph).
Any doubts, do get back"
 
regards
Dev
0 Kudos
Message 3 of 3
(2,710 Views)