LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

replace array subset run out of memory

Dear all
I need to put the data on the screen. I have 8 data channel and I have created a virtual marker channel.There are total 9 channel.
I combine them by first create a 9 row 2D array and then replace the first 8 row by data and the last row by the virtual channel data. Labview says it runs out of memory. But my data is less than 1M bytes. Could anyone please tell me what I should do?
thanks
0 Kudos
Message 1 of 13
(3,781 Views)
Not enough info, and vi is unreadable !

I tell you what to do :
1/ IMPROVE your coding style. There are a number of wiring mistakes in your vi (see the attached jpg...). Use clean left to right wiring with no hidden wires. Never route a wire behind anything! Keep wires short, avoid unnecessary bends, etc... Read the
LabVIEW development Guidelines manual and search for good programming style.
This way you have a chance to find that somewhere, you didn't connect the right wire to the right place.

2/ Use debugging tools, such as the probe, to check the data values passed to critical nodes. For instance, check the output of
the Read time and case vi (BTW, there is no need to wire to the For loop count terminal, autoindexing is enough...)

3/ Post the revisited vi here, removing all the unnecessary parts, and somebody will be able to help you

CC
Chilly Charly    (aka CC)
Message 2 of 13
(3,781 Views)
Hi Sai,
Why dont you post your VI here so that we can help you in solving your problem.
vicky
0 Kudos
Message 3 of 13
(3,608 Views)
I have to agree with you CC. I also have to admit that I have wired worse code at 12:03 (:<)).

I would love to scroll the diagram up a little to see what is being fed by the resulting array.

Probing the various wires around the replace node in execution highlighting will probably help reveal what is happening.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 13
(3,781 Views)
Thanks Ben !
There are also times were hurry leads to interesting diagrams !
"Just trying to help"
😉
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 13
(3,781 Views)
Thanks everyone
I am sorry for my programming style
here is the VIs
Since I reach the upper limit of the file numbers, please put the following into notepad and call it 113.txt file .Thanks




11/10/2004 11:48:54 PM
Number of active Channel : 8
Sample Rate : 256
Note :
^^^
17309
25323
33812
41777
49274
58214
65481
73658
82354
91171
99013
107808

case2
case2
case1
case2
case1
case2
case2
case2
case1
case3
case1
case3
Download All
0 Kudos
Message 6 of 13
(3,781 Views)
Your problem is due to the fact that you are trying to plot 49599 curves of 9 points (something that LV cannot achieve) instead of 9 curves of 49599 points.
Transpose your array !!!

You coding style has still to be improved at least 49599 times :)).
The idea of plotting a so large number of points is also criticisable.

Anyway, that will keep you running !
Keep wiring...

CC
Chilly Charly    (aka CC)
0 Kudos
Message 7 of 13
(3,781 Views)
Ah hah!

I was suspecting the was a graph that was out of view!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 13
(3,781 Views)
This was pretty amazing. looking at the memory useage, it was already into hundreds of MB when limiting the first loop to only 10 iteration!
0 Kudos
Message 9 of 13
(3,781 Views)
Thanks
But I have already followed what you say change the row back to col. The attachment is the correction. I use the highlight function to see where the error come from. The error is stop in the replace array subset right before the graph. Could you please tell me what I have to do?
0 Kudos
Message 10 of 13
(3,781 Views)