02-18-2019 03:43 AM
Hi there, I'am trying to store data from serial port into an array of dimension 1000, which I want to plot afterwords but doesn't seem to work. After getting 1000 elements from serial I only have two in my array. What I want to do is append every one of the 1000 values to the same array, but it doesn't seem to work. What am I doing wrong?
02-18-2019 03:48 AM - edited 02-18-2019 03:49 AM
Hi samo,
What am I doing wrong?
I never used LabVIEWNXG before but I guess from your image you are building an array of 2 elements (displayed in "output array") in your loop. You create that array in each iteration and after the last iteration that 2-element array is output from the loop.
Does NXG support shift registers? Why don't you use them?
02-18-2019 06:06 AM
Or have the output tunnel be autoindexing. Also, your loop should be a FOR loop since you know beforehand how many times it should iterate.
Your use of "dimension" is completely wrong. You are trying to create a 2 dimensional (2D) array with 1000 rows.
02-19-2019 04:15 AM
Thanks for info, but can you be a little bit more specific?
I' am relative new to LabVIEW especially NXG.
02-19-2019 04:25 AM
02-19-2019 07:43 AM
@crossrulz wrote:
..
Your use of "dimension" is completely wrong. ...
That is what brought me into this thread. I once created a 100-D array just to see if I could break LV. You can imagine what the wire looked like! But then actually putting data in that wire... Out of memory.
Ben