12-02-2014 06:53 AM
Hi,
I had a question wrt state machine. Is it possible to make a statemachine with for loop as an array numerical input for max and min operation? How to create the same operation with array input in case of while loop?
12-02-2014 08:24 AM
If you have a very set order, then an autoindexing FOR loop works well. I typically don't like doing that since I often need to react to things (in other words, the order is not exactly set).
I have found that using a queue to hold your states works very well. That way you can enqueue many states and then dequeue an element with each iteration of the loop.
12-02-2014 12:20 PM
You may want to post some code, it isn't quite clear what you are trying to do. But yes you should be able to use an array of strings, and enqueue and dequeue elements from it. I have seen this done using a for loop, with an abort operation on the conditional stop. But a while loop is more flexible.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord