Solenoid Valve with Labview

Hey everyone,
Im brand new to LabView and I am in need of some assitance. Ive attached a picture of my block diagram setup. I need help with making the LabView code in order to help run this setup. I want to use LabView to activate my photoelectric sesnor, which when tripped will activate my solenoid valve immediately. The maximum allowable time between the photoelctric sensor being tripped to the valve opening cannot be greater than 50 milliseconds. I would also like to active my high speed camera 1 second prior to the electric sensor being activated. I have included the parts I am using in a list below. Thanks for all the help in advance.
Solenoid Valve: SV-282 from Omega
Photoelectric Sensor: Comet 14101A6517
Output cDAQ: NI-9472 (powered by external power supply "NI PS-15 24V")
Input cDAQ: NI-9421
Camera: Phantom v7.3 (connected through ethernet)
In summary: with labview, activate camera, activate photo sensor which when tripped will open solenoid valve immediately.
Shervin Aslani
Attachments:
IMG_20130730_142033.jpg ‏2537 KB

You're at the fun stage of the project!  You can start to write instrument drivers while (at the same time) learning how to program a state machine.
I LOVE starting projects   I hate the tedium of finishing them... until they're done, then I love it again.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Similar Messages

  • How to use labjack U12 to control solenoid directiona​l valve with Labview in hydraulic system

    Hi,
    I need to control a solenoid operated direactional valve in hydraulic system with Labjack U12. I am using three relays but need some help on the vi. like which instrument drive I need to use etc....
    The coil voltage for the solenoid valve is :  AC120V, 60Hz; AC110V, 50Hz 
    My goal is to control this solenoid valve open/close at certin time, am using Labview 2011. Any advise would be helpful.
    Thank you!

    Have you got the relays working yet.  Do some initial testing with LJlogger to make sure hardware is controlling the relays as expected.  If you need further help with this step, provide a link to electrical details for the relays and describe how you have the relays connected to the U12.
    As for your programming in LabVIEW, I suspect you are using digital I/O, so the simplest thing to do is call EDigitalOut() to set a particular line to output-high or output-low, or if you need to set a line to input (for open-collector style control) use a call to EDigitalIn().  Perhaps look at "e function example.vi" to get started, and for general information about using the LabJack U12 with LabVIEW see topic #84 from the LabJack forums.

  • Solenoid Control with LabVIEW

    Hey everyone,
    Im brand new to LabView and I am in need of some assitance. Ive attached a picture of my block diagram setup. I need help with making the LabView code in order to help run this setup. I want to use LabView to activate my photoelectric sesnor, which when tripped will activate my solenoid valve immediately. The maximum allowable time between the photoelctric sensor being tripped to the valve opening cannot be greater than 50 milliseconds. I would also like to active my high speed camera 1 second prior to the electric sensor being activated. I have included the parts I am using in a list below. Thanks for all the help in advance.
    Solenoid Valve: SV-282 from Omega
    Photoelectric Sensor: Comet 14101A6517
    Output cDAQ: NI-9472 (powered by external power supply "NI PS-15 24V")
    Input cDAQ: NI-9421
    Camera: Phantom v7.3 (connected through ethernet)
    In summary: with labview, activate camera, activate photo sensor which when tripped will open solenoid valve immediately.
    Shervin Aslani
    Solved!
    Go to Solution.
    Attachments:
    IMG_20130730_142033.jpg ‏2537 KB

    I'm confused as well.  Why are you sending a signal to a sensor???  Provide power to the sensor all the time and read the digital output from it. Then, send a signal to the solenoid to activate whatever physical action you require when the sensor is triggered.
    EDIT:  One more thing.  Since LabVIEW lacks any sort of time machine functionality you're going to have a fundamental problem activating your camera 1 second PRIOR to your trigger signal.   Usually the answer to that sort of problem is solved by recording the video data constantly in a ring buffer and then when you receive your signal you grab the data.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to actuate 20 solenoid valves using labview

    I want to perform an action of detaching materials from a fixture by actuating 20 pneumatic pistons controlled by 20 solenoid valves.
    If the valve is actuated the piston moves and stays in the location for 1 sec and then return back. Each of these cylinders should be able to be controlled separately.
    Kindly provide me with the necessary equipments i should buy.
    How can i control 20 solenoids using a DAQ card.  is it possible? 
    Also i need to accept around 20 Digital Signals too.
    Could you specify any card that will meet the spec.?
    Thank you in advance.
    Regards
    grugh
    Regards
    Grugh Mike
    Success is Everything !!

    With the equipment that you have, a good choice would be Opto-22 series for the G4 series of the Opto-22. Select the screw terminal base and an ODC module appropriate to your power/voltage requirements. this will use the TTL digital output to control a power solid state relay. If you look to the other signal conditioning products from NI, they will allow you to do the same thing as well.
    Stu McFarlane
    Viewpoint Systems, Inc.

  • 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.
     

  • How can I control a Festo (MH..4) Valve with Labview?

    Hey,
    i'm very new to this Labview stuff and have a minimal background in electronics so I'm struggling with trying to sort this one out.
    I have a high-frequency valve (~400Hz) that we would like to control via the 9 pin RS232 port using labview. is this possible?
    i imagine we will need an interface between the computer and the the valve (which requires a 24Volt digital signal) but I am not sure what to use. Buying a stock pc control board from LabVIEW is not an option because I will be running this from a laptop.
    cheers
    Nic

    Nic,
    you can easely control 2(3) of the 9 Pins of the RS232 Port with the VISA Propeties (Visa Open, VISA Propety (Modem line settings: DTR and RTS state (and Break (TDx)) , VISA Close)
    However, since the serial driver it is not made for this type of timed digital IO, I'm not shure about the resolution you might get. If you have a scope, then do some loop testing and move some windows or do some other system load :-)
    Have a nice weekend
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • 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

  • Can I get stepped out put voltage signal for controls from the BNC with Labview?

    Hi!
    I am new user to NI Labview. I am working in controls applied in Combustion sciences. I want control the Solenoid valve ( Jefferson made,230 V, 11 W) in stepped manner. BNC (2110) is used for the input signal (Piezoelectric pressure transducers) and output signal. The maximum out put voltage from BNC is 5 V. Can I get the out put voltage in stepped and increasing order to ensure the better controls of the solenoid valve?
    Also I would like to know, is it possible for me to control the working frequency ( Injecting) of the solenoid valve with the help of Lab view?
    Thanks.
    With Regards,
    Ganesh

    Just having the same issue there, which is real not fun, I have not tried to contact them, but looking at  your experience I am not sure if I should.
    My key comes from the back of a laptop o so I guess that would be a W7
    OEM, and that could explain why you can't download a ISO from their website, would that also your case ?
    Also could it be because we are attempting to get the ISO after the product became EOL ?
    http://windows.microsoft.com/en-us/windows/lifecycle
    Maybe I will give a go with the customer care people and maybe I will get a right answer ;)
    Will keep you posted

  • 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

    how can i let output signal from PIC16F887(5v)  shut off the solenoid valve with 24v? . i dont want to connect the solenoid from another power source. i want the same 5V DC for the PIC to be amplified uo to 24 volts. because when the solenoid is connected to the power,it will shut off as it is normally open type. what is the best component can step up the voltage to 24v?
    example: FET,TRANSISTOR,OUPTOCOUPLER, LINE DRIVER,RELAY,.....

    duplicate post
    Please stop the thread spamming. I have no idea why you are asking about PIC products on the NI boards.

  • 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.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • 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

  • 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

  • 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

  • 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.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

Maybe you are looking for

  • Issue with JSP page in MobileFiledServices -- Debrief

    Hello All , Can you please guide me in getting the api used for inserting the record in Fnd_Lobs table . I am working on Mobile Field Services -->Debrief Here i am trying to attach the file by clicking on the attachment icon and i am able to upload t

  • How do I center text in a JTextArea?

    Easy question! how can I center text being fed into a JTextArea? Thank you!!!!!!!!!!!

  • Help with red eye

    I can't believe I can't get my red eye tool to work. The easiest tool in the program. When I click on the red eye, I can't get the pupil slider or the darken slider to move to the right. Essentially the red eye removal tool doesn't work for me. Help

  • Table for taxes

    Hi Can any one please suggest me (a MM guy) a table equivalent to BSET (for taxes) which will contains fields accounting document number, fiscal year, company code, material number, cost center (split account assigned vendor invoice), tax amount, and

  • Adobe Patch Installer error "updates not applicable"

    i have photoshop cs6 and i am trying to get dynamic link update 1.0.1.  i am frustrated and am about to destroy my computer. what can i do to get thsi fixed ? this is how the error looks like: now am trying to get an update for photoshop cs6 because