At first, I had a simple state machine that sent commands to a Mass Flow Controller (MFC) when a certain time elapsed. With this setup, the inlet MFC stayed closed and the outlet MFC was fully opened once the time condition was met.
Now I want to add an Event Structure so I can send commands at any time by pressing a LabVIEW control. The problem is that all these commands go directly to a VISA write/read, and I’m not sure how to make both approaches work together.
I tried a couple of things. First, I used a Select structure to choose which command to send, but then the commands coming from the state machine never reached the VISA communication. In the second attempt, I used a queue to enqueue the commands, but they were only received when the elapsed time condition was met for the second, fourth, sixth time, instead of every time.
What should I do. I need easy solutions im learning little by little.
Thanks