LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

empty cluster to file

The attached is a subvi for a larger program. The true case reads data and the output cluster is wired to another subVI in my larger program where data is written. When the case switches to false the queue is flushed but then of course the output cluster is set to 0's as the default. Is there any way for it essentially to "do nothing" or return a blank line in cluster form in order to be written to the file? Or will I need to write to file directly in the true case of the case structure? I can write to file in the true case and it will obviously fix my problem but I would rather my write to file VI be in my main program. Thanks in advance.
0 Kudos
Message 1 of 5
(2,847 Views)

Hi,

 

you may check for an "empty" (aka default) cluster in your main vi and put the case structure around your filewrite operation there - but you need a case structure anyway...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,840 Views)
DUH! Thanks! I over thought this one for sure! I think the bigger issue is I have some bad programming techniques used here but shhhh... I can fix those after I get it working 🙂
0 Kudos
Message 3 of 5
(2,833 Views)

Hi,

 

"I can fix those after I get it working"

 

When you fix them first it might be easier to get it working Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,822 Views)
touche...
0 Kudos
Message 5 of 5
(2,819 Views)