LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Way to avoid this flat sequence?

Solved!
Go to solution

I have a rather simple vi (L0.vi, attached) that is for an instructional lab.  I want to have it run so that the only way to shut it down is to use the shutdown procedure- no abort button and no window X- to be sure the heater is turned off each time.  To do this, I need to make sure that on completion Labview actually does exit.  The code I have works, but I've spent weeks now editing old cold from my predecessors riddled with flat/stacked sequences that have driven me mad.  Is there no way around it in this case?  I figure I must be doing something wrong here...

 

Thanks for any tips!

0 Kudos
Message 1 of 5
(3,184 Views)

Hi bgalfond,

 

why not use this error wire to enforce dataflow?

check.png

Edit: instead of clearing the error you need to set it according to the help

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,183 Views)

Is this what you mean by setting the error?  It does look to be working fine, thanks!

0 Kudos
Message 3 of 5
(3,165 Views)
Solution
Accepted by topic author bgalfond

Hi bgalfond,

 

i meant to replace the ClearError by a "set error" code:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(3,152 Views)

That would be a bit more elegant, thank you!

0 Kudos
Message 5 of 5
(3,128 Views)