11-11-2010 10:47 AM
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
11-11-2010 11:15 AM
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.
11-12-2010 11:06 AM
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
11-12-2010 11:21 AM
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
11-15-2010 12:08 PM
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
01-26-2011 03:26 PM
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
01-27-2011 05:41 PM
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
01-28-2011 08:26 AM
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
01-31-2011 12:50 PM
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
01-31-2011 01:41 PM
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).
Regards,
Elizabeth K.
National Instruments | Applications Engineer | www.ni.com/support