04-19-2018 03:12 PM
I need this program to reset in the case that an object has been sorted. The false condition in the last frame should output a true to the while loop that surrounds the entire program so it restarts the program but it is not working for us. I know i could use a state structure for the program but if anyone knows a solution so I don't have to restart with a state structure that would be great.
04-19-2018 04:31 PM
What do you mean by "in the case that an object has been sorted"? What object? Where is the sorting? The last frame doesn't have a "false condition".
Comparing a boolean wire to a True constant is a Rube Goldberg. Just use the wire.
Why don't you want to restart with a state machine? That is the proper solution. A series of express VI's in a sequence structure is not the way to go, and you wouldn't be losing that much work. It would be better to start over now and do it right, rather than trying to "fix" what you have now.
04-20-2018 03:04 AM
Hi,
Why don't you just use boolean constant "TRUE" in order to restart your program.
Follow the instructions from Ravens FAN. Since your question is not specific and please go through labview basics again.
04-20-2018 03:11 AM
I tried that and it wouldn't work right. I've switched to using a state machine which works much better for my purpose then a sequence structure.
04-20-2018 03:13 AM
Through enough testing and research I discovered getting the sequences to work under the conditions I wanted would be impossible. Thank you for the input but I did end up switching.