02-05-2021 03:43 PM
Hello,
I am trying to design an interlock system in Teststand which will watch a pin on my motor controller and (in theory) pull the program out of wherever it is and force it into a different loop if that pin goes low. I am already calling the VI which watches the pin asynchronously, which seems to be working okay, but now the issue is that the watch VI does not seem to be passing data back to the rest of the sequence correctly. Also, I need to somehow make the VI leave whichever step it is in immediately and go to the other loop, which I have not been able to figure out. Does anyone have any advice on how to do this?
Thanks in advance.
02-06-2021 02:23 PM
You can check this lib
You could use it to synch your vi with TS execution using TS notification or queues.
In your sequence you would need to figure out appropriate flow control logic. I think the easiest solution would be with "go to" steps (it's not the best style, though IMO).