From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to cycle between two numeric voltage controls in prescribed intervals

I am trying to expand on my current VI that allows me to control gas flow with numeric voltage outputs to mass flow controllers. I currently am controlling two different gas streams for analysis simultaneously and I would now like to be able to cycle between each mass flow controller over a prescribed interval (100s). Specifically, I would like numeric control A to be set to 5V while numeric control B is set to 0V for 100s and then they would automatically switch voltages. I would like this cycling process to occur constantly between the two gas streams. I am looking into nested loops but I am thinking there is a simpler solution as I'm fairly new to LabVIEW.

 

Thanks.

0 Kudos
Message 1 of 2
(2,425 Views)

This sounds like a state machine with two states:

  1. Control A High
  2. Control B High

It might look a little like this

https://decibel.ni.com/content/docs/DOC-19816

except enable action would be automatic

0 Kudos
Message 2 of 2
(2,416 Views)