02-22-2017 10:43 AM - edited 02-22-2017 10:46 AM
I tried to use a stop sign function to abort an execution. Just exited the program when I clicked a stop button that is linked to the stop sign, as if clicking the Abort execution on the toolbax. It seems a very straightforward task, but the stop sign does not work as expected.
I am new to LabVIEW programming.
I attach my file for your checking, and hope you can catch some errors I committed.
Thanks !
02-22-2017 10:57 AM
Globally, I don't think using the "STOP" VI is a good practice. When you need to stop a VI, it generally come down to ending loop early. For the "for" loop, you should use a right click on it, and clic on "show condition terminal" (I'm not sure it's the exact name in English) and use that to stop your VI. You can also use a while loop.
I joined a simple example, with both the for and while loops.
02-22-2017 03:59 PM
You're using the "Run Continuously" button, aren't you? Use a proper loop, instead. That button is only for troubleshooting and experimentation. Actually, I wish it would just go away. It mostly just gets newbie LabVIEW programmers into trouble.
Including me, when I was but a young pup. 😉