06-09-2008 08:39 AM - edited 06-09-2008 08:42 AM
06-09-2008 09:01 AM
I don't know what you mean by a "floating nested for loop".
If you are looking for a while loop that changes from one reading to another in sequence, but the sequence is variable, it sounds like you want a state machine architecture. Search the forums for that phrase and look at New VI... architectures. You basically would have a case structure inside a while loop. There is an enum control that is passed from one iteration to the next through a shift register that controls which case is executed in the next iteration of the while loop. This allows you to operate different cases in a sequence, but vary the sequence while running as needed.
06-09-2008
09:07 AM
- last edited on
10-28-2026
09:29 AM
by
Content Cleaner
It sounds like you're looking to create 4 nested loops, but the order of nesting varies depending on the order of the variables in the table. You cannot programmatically change the order of the loops once you plop them down. I agree that a state machine architecture is your best bet. Very flexible.
Message Edited by smercurio_fc on 06-09-2008 09:07 AM
06-09-2008 09:19 AM
06-09-2008 09:25 AM
06-09-2008 09:30 AM
06-09-2008 09:40 AM
06-09-2008 10:06 AM
06-09-2008 10:10 AM - edited 06-09-2008 10:12 AM
This is a quick demo of implementing an arbitrary sort. Yes, the idexes must be unique. Did not test it. Let me know if you spot something wrong here.
Trying to help,
Ben
06-09-2008 10:24 AM