From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Flat sequence doesn't execute sequentially

The subVI is subjected to changes, the while loop in the subVI doing different kinds of daq or processing.  When I add new processing or change daq method, I don't need to change the main VI.


If posssible, can I see your demonstration of a better way of doing what I said with the subVI?


@altenbach wrote:

I don't understand why you even need a subVI? All this could be done in a very simple flat state machine. I assume this is a simplified demo of some more involved code. Can you explain what the purpose is?


0 Kudos
Message 21 of 22

Yes, could you suggest good ways to do the following?

(1) When user click 'start', the loop in subvi runs processing and output progress (xloop and yloop),

(2) When user click 'cancel' (can be the same button or another button), the subvi finish calcellation, then the start button is back to default again, waiting to accept user input for another processing.

(3) If user doesn't click "cancel", the subvi will finish all processing, then change the 'start' to default, waiting to accept user input for another processing.


@crossrulz wrote:

But it only changes when the user clicks it.  And for the subVI to stop, the user much change the value to FALSE.  It is not your writing to the property node that is doing that.


0 Kudos
Message 22 of 22