LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best Way to Control Solenoid Valves?

One thing that you could try would be to open the valve, and mark the current system time.  You could then subtract that time from the new system time each iteration of your loop.  Once five minutes have elapsed, you could launch an event structure that will run through the DAQmx VIs again to close your valves.

 

Brandon Treece

Applications Engineer 

National Instruments

0 Kudos
Message 31 of 42
(2,764 Views)

Dear Brandon

 

I develop the VI to open my valves and using DAQassistance. But i would be happy if u help me on how to make it off after some time!

 The operation is  step 1. V1,V2 and V3 open and close after some time.

                          step 2. V1,V4 and V5 open and close after some time .

                          step 3. V1 and V2 will be opened .

 

Thank you inadvance for ur help.

 

0 Kudos
Message 32 of 42
(2,760 Views)

How will these valves be opened?  What is the mechanical action of the switch that will be controlling this?  Will the valves need to be closed even if the switch is still latched?  These are considerations that you must account for before you can develop a program.

 

Brandon Treece

Applications Engineer

National Instruments

0 Kudos
Message 33 of 42
(2,743 Views)

Dear Brandon

 

Thank u for ur fast reaction.

 

The solenoid valves are rated 24v for their coil. To open those valves the coil should be energized and for that I will use Digital output module with rating of 6-36v . yes, the valves should be closed even if the switch still is latched.

But can I unlatch my switch after the predetermined time and how.

 

Thank u very much for your help

0 Kudos
Message 34 of 42
(2,738 Views)

I recommend that you take a look at the digital generation examples in the NI Example Finder.  You can find these by opening the Example Finder and going to Hardware Input and Output >> DAQmx >> Digital Generation.  These examples should get you started.  You can change the mechanical action of your switch by right-clicking on the switch on your front panel and selecting Mechanical Action.  To programatically change the status of a control you can use the Re-Initialize to Default Value Invoke Node.

 

Brandon Treece

Applications Engineer

National Instruments

0 Kudos
Message 35 of 42
(2,719 Views)

I am a rookie user in LabVIEW and control field.

I am now have a task to develop a control software to control two solenoid valves.

The solenoid valves are 24V (Parker's P2E-KV32C).

My digital Output device is NI9485.

The operating behavior is as follows:

The first valve will be opened in 0.1 second (user adjustable) and off. then the second valve will be opened in 0.1 second (user adjustable) when the first valve is turned off.

The counter (ON/OFF) for this operation is also provided by user.

These operation can be "Pause" and The counter can be "Reset".

Can somebody help me to build this sample VI ? I am really appreciated.

 

Joe

0 Kudos
Message 36 of 42
(2,619 Views)

Joe,

 

Could you provide a little more information about your application?  The NI 9485 can be used in a variety of platforms, including CompactDAQ and CompactRIO, and the approach will be very different depending on what you are using.

 

You might also consider starting a new thread for this issue, as this thread discussion is for a separate issue, and you might get more replies by starting a new thread.

 

Regards,

 

Elizabeth K. 

National Instruments | Applications Engineer | www.ni.com/support 

0 Kudos
Message 37 of 42
(2,584 Views)

Hi, Elizabeth,

 

I am using LabVIEW and 9485 to control two Solenoid Valves with air compressor.

I have NI cDAQ-9174 chassis and NI 9237 Analog Input module for Load Cell data acquisition.

Does this application belong to CompactDAQ or CompactRIO ? I have no idea. Please advise.

I thought this is the best-fit  topic for my application. How to start a new thread ?

 

Regards,

 

Joe

 

0 Kudos
Message 38 of 42
(2,568 Views)

Hello Elizabeth,

 

I did reply you last Thursday.

I am urgent to get this thing done.

How I can make a new thread and get more replies ?

 

Joe

0 Kudos
Message 39 of 42
(2,540 Views)

Joe,

 

The cDAQ-9174 is a CompactDAQ chassis, so you will use the DAQmx drivers to control your 9485. You may find the Write Dig Chan.vi or Write Dig Port.vi examples in the NI Example Finder (in LabVIEW, go to Help>>Find Examples) useful.  Since you are new to LabVIEW, you may find the context help useful.  To access, press Ctrl+H and hover over block diagram items.  For your application, you will want to write to one line, wait 0.1 sec, then write to the other line, wait 0.1 sec.

 

To create a new thread, go to the MultifunctionDAQ forum, and press New Message (see below).

 

New Message.PNG

 

Regards,

 

Elizabeth K. 

National Instruments | Applications Engineer | www.ni.com/support 

 

0 Kudos
Message 40 of 42
(2,532 Views)