LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which of these alternatives is to prefer?

HI,
 
I have here two alternatives  to create a spreadsheet file of measurement values and report header. This will be used as a sub-vi that should run continuously for about an hour.
 
alt1 - is using an array... wouldn't it nessesary to empety this now and then?
 
alt2 - Better? safer (in terms of memory handling)?
 
"sample rate": 1kHz
"samples to read": 100
Download All
0 Kudos
Message 1 of 2
(2,603 Views)
Hi Johan,

the difference of your 2 examples is the time when the data gets written to file.
Alt1 is writing after the measurement has finished, alt2 when the measurement is running. Depending on measurement time alt2 should be more safe (no big memory blocks aka arrays, nearly no data lost in case LabView breaks up).

But I would make the error in/out of the loops as shift registers! This way you have a chance to handle error conditions properly.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,573 Views)