Solenoid Valve control with DAQ

Hello everyone,
I would like to control 6 solenoid valves (6-24 VDC, 6W) and a small solenoid pump (12VDC) from a NI USB-6212 DAQ. I have been thinking about using a ULN2803 integrated circuit to increase the DO signal coming from the DAQ to 12VDC and use that to power the solenoids. Would this work?
Any help would be greatly appreciated.
Thanks!

The 2803 will work, but you will need more than one since the max current through the die is 2.5A total. At 12V, your solenoids will draw 500mA each, that times 6 solenoids is 3A total. Also note that 500mA is the upper limit of the ouput drive, you may want to parallel two drivers together for each pump (just to be safe).
I could not find the current rating of the pump so once you know that figure, plan on spreading your loads between the 2803's accordingly.
-AK2DM
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • Best configuration for Solenoid Valve control

    Hello everyone,
    I'm really new with everything that concerns Controllers or Relays so any help would be very appreciated.
    I want to control 5 solenoid valves (website) with the following specifications:
    Rated Voltage: 12 or 24 VDC, Allowable Voltage fluctuation:10%, Power consumption (when 24V rated voltage): 1.5W (0.06A)
    I want to use LabView to control them. I saw at a similar post that I would need a digital I/O device a Relay Driver and a 24V generator.
    I was thinking of using these:
    NI 6501
    relay driver (uln2003)
    and a 24V power generator.
    Is this enough to control the valves with LabView or do I need something else?
    Thank you for your help!
    Ilan
    Solved!
    Go to Solution.

    Yes, that combination should be adequate.  The ULN2003 is designed for exactly that type of application and works well.
    Usually in English we refer to power supplies when talking about devices to convert ac power line voltages to lower voltage DC.
    In addition to LabVIEW you will need a DAQ driver for the USB-6501. On Windows it will be DAQmx. On Mac or Linux the dirver is DAQmx Base. The driver is a separate installation from LV, although it may come on the same disks.
    Lynn

  • Solenoid valve interface with labview

    Hi, currently i have a solenoid valve (NVZ110) with 24Vdc , "+" & "-" terminals) and I have:
    CFP-DIO-550
    CFP-AO-200
    CFP-AO-210
    CFP-AI-112
     My question which module should I use to open and close the valve? Also, I couldn't find a tutorial on how to create a simple vi to control this valve using LabView. Does someone have a simple example VI?
    Solved!
    Go to Solution.

    Here is the manual:
    http://www.ni.com/pdf/manuals/371324c.pdf
    The 550 only accomdates DC outputs, that may explain why the valve is not actuating. Hopefully you did not wire a 24VAC source to the 550, it may be damaged if you did.
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Solenoid valves control

    Hey everyone 
    I've designed pressure system(dp cell) with a manifold of 8 ports at each of which solenoid valve. What I'm trying to do is to control the valve through labview so the open 1 at the time,  stay open for 30 seconds then  close and another one is opened and so on. I've attached the data sheet of the valves. I'm using Cdaq 9178 with NI:9203 and Ni :9472.  
    The valves are normally closed and the fluid passing through them is silicon oil. 
    I've been trying to look at different examples but I got confused. 
    I should be grateful for any advice or suggestion you give. (I started using labview only  few weeks ago).
    Best Regards
    Rajab
    Solved!
    Go to Solution.
    Attachments:
    PU220AD (1) (2).pdf ‏578 KB

    Hi ToeCutter
    I've attached an example that I think suits my application, However when I try to edit the type Def to change the number of valve the code went blank.  
    I using Ni9472 (dig. output to energies the valves through Solid state relay.  The valves should open sequentially at equal time interval let say(4 valves, each one should stay open 25 sec.). 
    The code is some thing like that:
    1. Open V1 (25sec)(through Ni 9472) and start pressure measurement  ( through analog input using Ni 9203)
    2. Close V1 and open V2. the pressure is continuously measured
    and so on for the rest of the valves 
    could you please suggest the best way to do that.?
    Is it better to write one vi to control the valves and  separate one to write the measurements. AS for my overall data acquisition system.  I'm planning to measure pressure temperature, flow rate of my  flow rig with one VI ( using Ni 9203)
    to give you the full picture of my date acquisition system: 
    All the instrumentation should be triggered (using trigger out from one of the devices) to give simultaneous measurements,( the valves are part of my pressure measurements only).  So once the first device is on the rest of the devices will be triggered as well as the valves control vi. 
    Best Regards 
    Rajab 
    Attachments:
    example3.vi ‏67 KB

  • 3way solenoid valve control

    Problem Description :
    Hi
    I want to control 3way solenoid valve position using Labview. Soleniod
    valve is now connected to computer through PCI-6514. What I want to do
    is
    as follows
    1) Set time to be in position1 from front panel (range 1-5 sec)
    2) Set time to be in position2 from front panel (range 1-5 sec)
    3) Keep changing the position 1&2 until hit stop button
    To achieve this, how can I build block diagram ? Use DAQ assistant ? Or if you can tell me which part of the Labview manual to take a look at for a start, that would be appreciated.
    Thank you!

    See attached. Since I don't have a PCI-6514, you will have to do that part on your own. Look for examples in the examples folder or the NI website. This is very basic stuff. If possible, take a Labview class or you will be asking these simple questions forever.
    - tbob
    Inventor of the WORM Global
    Attachments:
    TimedControl.vi ‏75 KB

  • VI to control solenoid valves with NI 9472 and 9171

    Hello,
    I am working on a prototype composite manufacturing project wherein I am trying to connect four 24 VDC solenoid valves to a NI digital module 9472 with a USB DAQ Chassis 9171. The solenoids will be used to control several pneumatic air pistons. I have so far used NI Max and an NI example code "Digital - SW-Timed Output" to turn one valve on.
    Now I am looking for some help to build a VI accomplish following things:
    1. How do modify the existing VI to make it turn off the solenoid too. As the way I have it now is when I execude the code, the solenoid is continously on.
    2. If I connect 4 such solenoids, and want to turn them on in a pattern such as "TFFF,FTFF,FFTF,FFFT"?
    3. I would want to put a delay time between the 4 operations say 30 s, as a user input in the front panel.
    4. I want this whole operation to repeart "n" times, as another user input. 
    5. Last thing, any changes I make to the VI, and save it form File -> Save/Save as, it reverts back to the original version. I am working from the default NI system folder where all the examples for "Digital Output" are saved. Also whenever I try to copy it to another location, it wont run as it keeps on searching for the other accessory VIs. I have tried to save it as a project, but even that doesnot help. 
    I have enclosed screen grabs of the VI which works for one solenoid, and the original VI (it wont let me save the modified VI properly).
    I am very new to coding with NI, so any help/guidance will be greatly appreciated. Thanks.
    Vikram
     

    Hi vdey
    I hope you are doing great. Regarding your questions about the  digital outputs generation, I did my research using the same example of Digital -SW Ouput VI.
    I did not change anything of the code except for some few changes.
    Ok, first question
    Using this VI example I am able to control the outputs and when I used one of the booleans controls I am able to turn on and off the different outputs of the modules.
    Second question
    If you want to create an automatic pattern with the outputs of the module, I think you can use a array with Booleans premade it by you combined with a state machine.
    Third question.
    Again, with a state machine you can use a delay function and instead of using a constant for the input you can create a control for it.
    Fourth Question
    Maybe you can try with a  Foor loop with a control attached to the N terminal to control the times you want to do this action.
    Fifth Question
    Try to copy the folder where are located these examples and save this new folder in a new location and try to work over this new copy.
    I am attaching somes links that could be useful to you;
    Sintax of multiple channels
    http://digital.ni.com/public.nsf/allkb/9A2AF5E10E0C893386256FE8006807DF?OpenDocument
    Tutorial States Machines
    http://www.ni.com/tutorial/7595/en/
    Warm Regards.
     

  • I am looking to control a 4-way hydraulic solenoid valve. Do I need a PID control toolset, or can i control the system through my 16E4 daq card and scxi chasis

    I am looking to control a 4-way hydraulic solenoid valve. Do I need a PID control toolset, or can i control the system through my 16E4 daq card and scxi chasis

    I think you're asking 2 different questions.
    The PID control toolset is for using PID loops for control; it's just software.
    The DAQ card and scxi chassis are hardware. If you have the appropriate signal conditioning cards in your chassis to control/monitor your solenoid valve, then you can run a PID loop.
    I believe the simple answer is: the PID control toolset is the best way to do control, but there are simple PID VI's (even on this website) that you can download and use for simple control.
    Mark

  • Controlling Solenoid Valves for a water level application with LabVIEW:

    Hello,
    I am trying to control the water level in a tank using solenoid valves with LabVIEW.
    I have an ultrasonic sensor that is going to measure the water level in the tank, I have the working VI (attached) for how the sensor measures the water level, I have made the vi so that it measures the distance the water level is away from the sensor (the sensor is attached to the top of the bucket). The vi which is attached also calculates the volume as more water is added into the bucket (the bucket is frustum shaped). 
    What works: VI interacts with ultrasonic sensor. VI measures the distance the water level is away from the sensor, VI calculates the volume in the bucket as more water is added. 
    What I am trying to do now: I want to have another bucket (filled with water) sitting above my bucket with the sensor on it, and with a solenoid valve attached to that bucket, and another bucket sitting below my bucket with the sensor on it (not filled with water). I want to interface these solenoid valves with LabVIEW in a way, that the user can enter in say "70%" as the desired percentage of water in the bucket with the sensor, and LabVIEW controls the the valve on the bucket to fill up the bucket with the sensor up to 70% and if there is any overshoot, there will be another valve attached to the bucket with the sensor that will let water out to go into the empty bucket).
    Basically, turn on and off the valves based on how much more water needs to be added into the bucket and what the desired percentage is. 
    The equipment that I have is:
    Ultrasonic sensor: http://www.amazon.com/Ultrasonic-Module-HC-SR04-Distance-Arduino/dp/B004U8TOE6
    Solenoid Valves: http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=290763981675&ssPageName=ADME:LU:US:3160
    3 buckets.
    I need some ideas on how I can complete the rest of this project. Thank you in advance! Please see the attached vi.
    Attachments:
    Sensor.vi ‏28 KB

    Thinking off the top of my head, if it were me, I'd start with the master-slave design pattern.
    In the master loop, put your vi for reading the level.
    In the slave loop, put very simple logic that looks at the value coming from the notifier and takes one of three actions each time a notification is received:
    If the level is greater than the setpoint (+some "empirically determined" hysteresis value, say 1-2%) open the valve to let water out of the middle bucket.
    If the level is equal to the setpoint (+- the same hysteresis value) make sure both valves are closed.
    If the level is less than the setpoint (-the same hysteresis value) open the valve to let water into the middle bucket.
    Repeat until you're done.
    You will probibly want to figure out a better way to stop things than what is shown in the design pattern template - using an error to stop works, but in the long run limits your options.
    Oh yes, when shutting down, there is one thing that you will need to be sure that you do - to prevent wet feet. But I'll leave that for you to figure out as well.
    Mike...
    PS: This is homework right?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • PH control with solenoid valve

    Hello everyone, I want to make pH control in biogas production. Many reference said that the optimum pH for biogas production is ranges from 6.8-7.4. I want to use acid and base reagent as an addition when pH value exceed its ranges. The problem is that I only have a solenoid valve (on-off valve) so I think I can't use PID or Fuzzy controller. Can you tell me how to make controller that suitable for this system?Thank You
    Regards
    juventom

    I found some idea for this case (attachment), but the VI still has a problem. When pH value exceed the limit and exceed the limit time (t1) I want to make open valve time (t2) and mixer time (t3) undisturbed (must appropriate with state diagram) but the problem is when pH value (slider) return to allowed limit while in valve&mixer state, it immediately return to initial state (check pH value). Can you help me fix this VI? Thank You
    note: in this VI t1=5s t2=3s t3=3s t4=5s
    Regards
    juventom
    Attachments:
    pHStateDiagram.JPG ‏36 KB
    pHControl.vi ‏60 KB

  • NI 9472 with 9171 to control a 24V Solenoid Valve

    1) I am trying to connect a solenoid valve to a NI digital module 9472 with a USB DAQ Chassis 9171. I have verified the voltage signals and used NI Max to turn the valve on and off. Now I am trying to find a VI to do this operation i.e. turning on and off one solenoid valve.
    I found some example code such as: Digital - SW - Timed Output.vi (attached). I modified the code a little bit to interface the digital channels from the module. Such as in the DAQmx tasks, I have created a "task in" channel to read the signal from specic port from 9472, and as the very same port as the i/o lines . But I keep getting an error  -200463 message: 
    "Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
    Number of Lines in Channel: 1; Number of Lines in Data: 8"
    I am very new to Lab view, so any help in this will be greatly appreciated. 
    Vikram

    Hi vdey,
    There is a similar thread that handles that error code when using a DAQmx write. Please take a look at the following link:
    http://forums.ni.com/t5/LabVIEW/Daqmx-read-error-200463/td-p/911975

  • Linear mixing gradient with solenoid valves

    Hello Everyone, 
    I have finally come to a problem in labview that is over my head. Until now I have been making small programs using MC DAQ-USB 1208 or USB 1608 to run my programs and have gotten pretty good at reading block diagrams but still struggle with making them.
    I am looking to control a series of solenoid valves of a proportional valve to dispense two liquids to create a linear gradient. For those of you not familiar with how a proportional valve works, if you programmed it to deliver 75% of A-solvent and 25% of B-solvent, the valves would open A-B-A-B-A-B… in a 75:25 ratio of opening times. To deliver a gradient like i am wanting, the ratio of the opening times of the various proportioning valves will change during the gradient to change the overall concentration.
    I have done all the math which i have attached below and have included a setup of my system as well. There will be two pumps, each with a different flow rate. One pump, P2 will be used to pull the gradient from the proportional valve into a loop of known volume. once the loop is filled, a 6 port 2-way valve will be switched and using the second pump, P2, the liquid will be pushed though the outlet.
    Below I think i have included everything that will be on the project window. There will be a series of steps with each step having time and %B as inputs (we can ignore pump flow rate because it will be a constant). Those inputs translate to the picture below to generate the slope. There are also a series of constants listed to the right that will not change throughout gradient formation. The equations of the program are listed at the bottom and if someone could assist me in getting this program off the ground that would be amazing.
    Any questions or clarifications I would be glad to make and any assistance would greatly be appreciated. And I am runing LV2013 64-bit.
    Attachments:
    2015-05-22 12-11-16.pdf ‏529 KB
    Screen Shot 2015-05-09 at 1.35.32 PM.png ‏23 KB

    Attached is the VI for what I have come up with for my project. I have a few questions. I have a circuit that I have attached that has a relay controled by a DO on my DAQ. I am using MC USB-1208LS. I have the VI set up where i am tracking the percent A and B along the gradient time but I am wondering how to take a snapshot of this at the duration of time/cycle (~4 seconds) and tell that to send a signal to the DO. The relay I am using is axicom fp2 d3023 and will have solenoid A open when given signal and closed when it isnt and vise versa for B. I have attached the circuit for the solenoids (already tested) and A will be in pin 2 on the relay and B in pin 4 and the 5 V signal from the DAQ is getting amplified to 12V and in pin 3. If someone could help me with how to send a signal (it would be a snapshot of the %A and that would be multiplied by the time per cycle to tell it how long to give the signal for in milliseconds. That would get repeated for the entire duration of the gradient (or total number of cycles). 
    Attachments:
    Screen Shot 2015-06-20 at 7.55.29 AM.png ‏23 KB
    Time Per Cycle v2.vi ‏43 KB

  • How can i control a solenoid valve using time as an input?

    i am trying to control 4 solenoids using labVIEW 8.2.1 and a DAQ 9172 box.I want to control the time period that the valve is on as well as the number of times certain valves are on.

    Also, what cards are you using? Is the solenoid controlled by an analog voltage? analog current? or digital voltage? It seems to me that you would need something like the NI 9263 AO card to control the solenoid position.
    Like Mike said, it is important to know what sort of time period you're trying to use. You can use the operating system time in LabVIEW to determine what value you will output to your solenoid using something like Time Elapsed VI. If the time periods you are looking to control with are too small you won't really be able to achieve that kind of control with a 9172, you may need to look into using a cRIO chassis instead that has hardware timed control. 
    Chris W

  • Can the M Series PCI 6221 control 24 VDC solenoid valves like the NI 9477?

    Hi,
    I am working on a project where three solenoid valves requiring 24 VDC and 8 Watts must be controlled by a PCI 6221 multifunction DAQ.
    I read on the NI website that an external power supply and the NI 9477 can be used together to actuate solenoid valves.  Since I already have the PCI 6221,
    I was wondering if an external power supply would allow the PCI 6221 to power the valves.
    Sincerely,
    Tristram Jordan

    Hey,
    Is there any way to control solenoid valves using the PCI 6221 DAQ card? Is it possible for the DAQ card to control a driver circuit for the valves?
    If there isn't an alternate way to control the valves, which DAQ do you recommend purchasing to control 3 solenoid valves and a pressure transducer?
    I am not familiar with the compactDAQ. Does the digital output module need to connect to a DAQ card within the computer? If not, how does it communicate with the computer?
    Sincerely,
    Tristram Jordan

  • Control solenoid valves

    Hello All,
    I need to control 3 solenoid valves (MHP1-M1H-3/2o-M3-PI), using labview. The activation protocol is like this:
    valve1 On for 2 seconds, and then Off for 1 sencond, this should start with pressing a bottom and stop after specific number of on-off cycles (for example after 100 times on-off), again with bottom.
    valve 2 and 3 have the same protocol, but they should start after a 'delay=1 second' respectively after eachother. 
    Since I am a new user to Labview, could you please help me how I can programm these tasks.
     I have attached the task description.
    Thank you very much.

    Matin88 wrote:
    I need to control 3 solenoid valves (MHP1-M1H-3/2o-M3-PI), using labview. The activation protocol is like this:
    valve1 On for 2 seconds, and then Off for 1 sencond, this should start with pressing a bottom and stop after specific number of on-off cycles (for example after 100 times on-off), again with bottom
    valve 2 and 3 have the same protocol, but they should start after a 'delay=1 second' respectively after eachother. 
    Since I am a new user to Labview, could you please help me how I can programm these tasks.
     I have attached the task description.
    Thank you very much.
    You've forgot to attach the description. And why don;t you try something or atleast come up with a flowchart.
    You for trials, you can possibly use LED's on the front (representing the valves) as shown below.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Control solenoid valve

    I am a labview beginner. I try to use labview to control our gas permeation system. Firstly, labview acquire pressure data from PR4000 readout . When pressure is down to certain value then the data goes through NI 6501 I/O device then universal relay card to switch solenoid valve. Then labview coninue acquire pressure data from transducer .
    I hope somebody can give me some advice for writing this program. Or what kind of existing VI programe can I use to modify it?
    Thanks

    Howdy MYLONG!
    One of the best resources to find LabVIEW example programs is in the LabVIEW Example Finder.  You can access it in LabVIEW by going to Help>>Find Examples...
    For examples on outputting data to the NI 6501 I would recommend looking in the Hardware Input and Output>>DAQmx>>Digital Generation folder.
    If you are using serial communication to talk with your PR4000 then look in the Hardware Input and Output>>Serial folder for examples.
    Regards,

Maybe you are looking for

  • Report for open purchase order quantity

    Dear experts, Is there any report for showing open purchase order quantity for which goods are not yet received? Regards babu

  • I've done everything n itunes still wont open. HELP ME!!!!

    b noir. 'if you're getting no error messages whatsoever, do you just see the wee hourglass for a few seconds, and then nothing? if so, do you also have Norton Internet Security 2005 installed on that PC?' this is my problem. but i dont have the norto

  • I can't download Adobe Acrobat XI Pro as a message states I am not using an up to date windows IE.

    I can't download Adobe Acrobat XI Pro as a message states I am not using an up to date windows IE. I am operating Windows 8 Pro w/IE 10 installed. I just purchased the Adobe upgrade and would like to get it installed.

  • Problem with native SQL cursor in generic data source

    Hi, All! I am implementing generic data source based on FM. Because of complicated SQL I canu2019t use Open SQL and RSAX_BIW_GET_DATA_SIMPLE-example u201Cas isu201D. So, I have to use Native SQL. But Iu2019ve got a problem with a cursor. When I test

  • With clause requied

    Hi Please find below query..But I required the following query (inline query) with "With clause". Can anybody help me please. (SELECT TO_CHAR (inn.trx_date, 'DD-MON-YYYY') invoice_date,         inn.ou_name ou_name,         inn.state,         inn.trx_