From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling solenoid valves with PCI 6289

Hi,

I have 3 solenoid valves(2 way, NC) that I have to control via PCI 6289. I know I have to write a Digital signal to a relay to energize it with 12 VDC with a daqmx write function. The use a Queued Message Handler design pattern to turn ON and OFF the valves with corresponding buttons. 

 

If I click a button to turn on a valve, the corresponding case structure executes and data is written, and now try to open another valve, another case executes. Does this mean the previous valve does not receive power anymore since that case exited?

If so, how can I change the architecture to keep three valves open at the same time?

 

 

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

Hi!

As long as the corresponding DAQ task is runnining the output stays at the value which you set in your case. Also when you exit the case.
Best regards

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