This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D array to 1D waveform dbl conversion

Hi all.

I have a data text which includes date, time, and data like in below. To post analyze, I need to build 1D waveform dbl from 1D arrays of doubles. How can I do that? The programs that I tried does not work and pop up an out of memory error. How can I fix it?

 

Egemen
0 Kudos
Message 1 of 6
(4,662 Views)

Hi newbie,

 

get rid of the inner FOR loop, no need to build a waveform from each and every sample...

 

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(4,658 Views)

Hi GerdW,

I tried the same vi, but the created waveform in this way does not show all 25 data (I have 25 data for each measurement in the text file). Even I increase the waveform chart number of shown plots, it does not show more than one.

Egemen
0 Kudos
Message 3 of 6
(4,654 Views)

Hi Egemen,

 

use a graph instead of a chart...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(4,635 Views)

Actually, the main aim of me is to adapt the VI attached to run with data from a spreadsheet instead of cDAQ. How can I adapt it easily?

Egemen
0 Kudos
Message 5 of 6
(4,573 Views)

Hi Egemen,

 

you should

- ask those interesting questions in the first place, mot after some iterations on "subitems"...

- mark the MainVI in a LLB accordingly so we don't have to search for it...

- replace the DAQmxRead call by a functions of yours reading the spreadsheet data and presenting it to your remaining routine...


- While you're busy with it: clean up your VIs. Use more arrays (instead of subVIs with ~15 outputs), use more typedefined clusters, ...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(4,562 Views)