LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset vi

Hi guys

 I have a question concerning VIs and SubVIs in LabView. I’ll try to explain what’s my problem. I have programmed a VI to post process measurement files. Let s say I have 1000 measurement files in a folder. These files are *.lvm files which contain measurement data for 10 channels. I have 1000 measurement values per channel. I d like to scan each file successively and write the average value of each channel in a table. In this table 1st row contains 1st channel, 2nd row 2nd channel … 1st line contains 1st file, 2nd line 2nd file …  To do that, my VI contains 2 while loops. The external one is used to iterate on files and internal one to iterate on channels. In other words, I select the first file and calculate the average for each channel, then I go on with the second file…  The actual problem is that when I try to scan too much files the program crashes. Example:Scan 500 files à OKScan 501 files à crash I thought that the solution would be to use a subVI structure and scan the file 1 to 500, then 501 to 1000 and so on. If I do that, the program crashes as well. The first 500 iterations are OK but when I reach the iteration #501 (actually the first of the second series) the program crashes.I have also tried to do it separately: iterate from #1 to #500 and then iterate #501 to #1000 and that works. The difference between these two cases is that in the first case I try to do 2 times 500 iterations with no stop between the first series and the second. In the second case I run both series separately. Could anyone please tell me what s the difference between calling one subVI successively in a while loop and running it two or more times times independently (i.e. with stop between two runs). How can I insert a “reset operation” at the beginning of each iteration?  Thanks for your help.
0 Kudos
Message 1 of 3
(2,623 Views)

Hi oiram,

can you upload your vi or a picture of it? Do you an Express vi to read your data?

 

Mike

0 Kudos
Message 2 of 3
(2,616 Views)

Hi Mike

 

Indeed I am using express VIs and that s probably the main issue. It looks like when I use these express VI with too much iterations something stays in memory or buffer and the program crashes. Is it possible to reset these express VIs at each main iteration?

I ll try to upload a simplified version of my VI. I m working on it.

thanks

 

oiram

0 Kudos
Message 3 of 3
(2,607 Views)