LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

number type data to 1D array for waveform graph

Hi all,
There is something confusing me. In my VI, I have number type of data (DBL 64) which is field value, and I am able to create waveform chart by feeding it with number type data. But then I have problem with time axis that I want to have like oscciloscope. In order to do so, I use waveform graph , but now i have to convert my number data to array. First question, is there any simple VI to easily convert number to 1d array ( that i couldnt find in the conversion VIs),.Alternatively , i have tried to use initialize array VI for conversion, which resulted in out put of "0" all the time..
Could you please tell  me  that what i m missing or dont understand properly?
thanks
0 Kudos
Message 1 of 8
(4,343 Views)
Hello looser,

me again 🙂

For creating an array from numbers you should use 'Build array' from the array palette.

When replacing a waveform chart by a graph you have to collect your data in an array! A chart is collecting the data in it's history, a graph is only displaying the values you feed it.
So when doing your daq you have to build up an array with all values you want to have in the graph!

See the examples provided by LabView!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(4,340 Views)
Hi GerdW,
nice to catch u again:)
as for ur anwer,  that is exactly what i thought and tried to do ( also checked buil array VI). I am connecting my number data to element input of build array VI, appended array to waveform graph. But i have broken run display saying that ""build array; contains unwired or bad terminal""?
0 Kudos
Message 3 of 8
(4,337 Views)

This pic is to illustrate what GerdW is trying to explain

Regards,

Dev

Message 4 of 8
(4,334 Views)
Hi looser and devchander,

and here comes an example too 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(4,332 Views)
desperate!!!
I think i m gonna give up:(  please have a look to picture that is what i understood from ur guys , and i did.
0 Kudos
Message 6 of 8
(4,327 Views)
Hi looser,

your vi seems to be ok - at least from the picture...

But (as told before): for a graph you have to collect the data. Please look at our examples using shift registers to do so!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(4,321 Views)
upsss...
that was what i have been missing! holy register shift:)
thanks
0 Kudos
Message 8 of 8
(4,318 Views)