LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array does not recieve data

My waveform recieves and displays the data but when I send it to an array on the same vi, the data is not displayed. Can someone help. Thank you for your time.
Ron Deavers, CLD
0 Kudos
Message 1 of 7
(3,167 Views)
Hello,

The insert into array function you are using will insert data in an existing position of an array, so in frame 0, you must initialise an array with a length different form zero in the dimension 2, because then there is no place to insert the data.
Try setting dimension size diferent from zero and equal to the number of lines you are expecting and then I guess your insert into array will work.

Hope this helps,
Paulo
0 Kudos
Message 2 of 7
(3,155 Views)
Yes that did solve my problem. I thought I tried that though. 🙂 Thanks again.
Ron Deavers, CLD
0 Kudos
Message 3 of 7
(3,151 Views)
I believe the issue is your initialize array, where you tell LabVIEW to create a 2x0 array. You then attenpt to stick 1x3 data into that array.

If you are just trying to clear the data before it runs wire an empty array constant into the local variable in your 0 case, rather than the initialize array. Or change the dimensions of the initialize array to 0x3.

When I made that change the data shows up nicely.
0 Kudos
Message 4 of 7
(3,148 Views)
Thanks for your help. I was, however, wondering what I have to do to get the three inputs going to the waveform to show as three seperated waveforms.
Ron Deavers, CLD
0 Kudos
Message 5 of 7
(3,132 Views)
To get multiple plots on a waveform chart you need to bundle the seperate points.

I always forget when to bundle and when to build arrays when dealing with graphs and chart so I look at the context help. It has a section that shows multiplot, and for charts you need to bundle.
0 Kudos
Message 6 of 7
(3,127 Views)
Yes that did help and thanks again!
Ron Deavers, CLD
0 Kudos
Message 7 of 7
(3,123 Views)