09-15-2023 08:15 AM
I have my vi reading the contents of the table. And then parsing the table out. But what I can't seem to figure out is how to stop the VI automatically when the end of the table data is reached. I wanted this done with a Queue so you could stop the Vi in the middle of the table if needed.
How do I stop the VI after the table end is reached.
09-15-2023 11:14 AM - edited 09-15-2023 11:19 AM
A VI stops once all structures have completed. A normal program should run when opened and close when done (state machine) because edit mode is for editing.
I am not sure why you are jumping through all these flaming loop with queues and such.
Most of your code is just plain silly and I recommend to start with a few basic tutorials:
09-15-2023 11:18 AM
09-15-2023 11:24 AM
Well gee Thanks
09-15-2023 11:29 AM
Maybe I have never used a Queue before and wanted to learn how they work.
09-15-2023 11:33 AM
Well, you can enqueue the table, but if you then stop the lower loop after processing it, the upper loop continues to run until you press stop. At the same time you could never enqueue another table because the lower loop cannot be restarted once it exists.
Of you want to use a queue:
09-15-2023 11:38 AM
Thank you I learned something. Very helpful.
09-15-2023 11:46 AM
Here's how it could look like with the queue.
(Of course making the lower loop interruptible would require slightly more code.)