Control pump with labview

Hi,
I am new to Labview and still trying to figure out some of the techniques so please bear with me. I have two pumps (EagleDrive Micropumps) that are connected to a DAQ NI 9263 to read their voltage so that we can monitor the flow through the pumps. The tachometer out is a 0 to 5 VDC square wave. We want to be able to send a signal to the pumps to control the output voltage between 0-5 VDC through a Labview program. Is there any way to do this? And if so, what would be the best way to go about this? 
Thanks!

After playing around with the program, I believe I am able to control the pumps with the attached VI. We have not hooked up the pumps yet, just have been using a multimeter to be safe. The VI is running well but when it is stopped, the multimeter reads the last voltage that was set by the VI. Does this mean that the pumps will keep running when the VI stops? And if so, how could I set the VI back to zero when it stops?
Attachments:
Pump SubVI 1.vi ‏43 KB

Similar Messages

  • How to Control the Valves and Pump with Labview?

    I have started a new project where I have to control the valves operation through Labview 2009,using PXI 1031, NI 5105(Digitizer) and NI 6251(M-series DAQ).
    The valves I need to control using the labview are:
    a) Pressure Reducing Valve (open & close)
    b) Remote control Valve(On & Off) with in-built actuator
    c) Flow control valve(open, semi open, partially open, semi close, partially close, fully close), 1%, 2%, 3%..etc
    d)saftey valve (opening closing depending on increase in pressure from certian limit)
    I hav eto control
    a) Hydraulic pump operation with in built gear-box
    Please let me know, how should l develop the VI for all? How to get started?, any helpful links? If there is any example code?
    Its little urgent !

    If you are not familiar with LV, I would suggest you go through the tutorials. Then take the leap and figure out how to use Action Engines and State Machines (search any of the terms I used that don't understand, there are a zillion threads on them).
    Then...
    Sit down and write stand-alone testers for each of the widgets you are going to control monitor etc.
      These testers will give you an idea if they really work the way you think, their character, and will serve as a "Sanity Check" when you think you are going crazy  durring development.
    THen integrate the tester so they can all work at the same time. This will become a utility screen that will serve you well when maintaining the critter latter in its life.
    Only then...
    write out a complete set of state diagrams that describe what you plan to do (don't cheat! ) and walk through them in your head until you are cetain it will all work blah blah blah.
    This step is optional but highly recomened...
    Compose a detailed set of documemtns describing what you have in mind and post them here (include the images, they will get many mor readers) and let people  pick aprat your design.
    When you have a final design, use everything you learned along the way to be a kick-ass developer.
    Along the way post distinct well defined question on this site and as long as it looks like you are trying someone will probably reply and get you going again.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can I programmat​ically control USB with LabVIEW?

    I have a requirement to test a USB device. The test includes powering several of the devices off and on, i.e., power cycling for several hours. My plan is to accomplish by using a USB hub, breaking out the power circuit and running it through a relay inside of a DAQ. A neater solution would be to programmatically turn the USB device off and on. I know that the computer communicates with the device under test via USB and not the USB port itself. So I’m wondering if it’s possible with LabVIEW to accomplish this.
    Thank you.

    I'm not exactly sure what Eric was referring to as far as ActiveX. If it's with respect to the operating system, you're not going to find any ActiveX interface with the OS to do this. Unless he was referring to software programmability of the hub? Don't know.
    With respect to power-cycling, a USB port can be disabled using OS calls. Thus, if you want to just turn off the whole hub you can disable the USB port that the hub is connected to. On Windows you can use a command-line utility called devcon to do this (search the forum as this has been mentioned before). The limitation is that devcon is not redistributable. This means that you cannot include it if you're giving this software to a customer. If, on the other hand you need to selective turn off the ports on the hub (i.e., to test individual devices), then you'd have to go back to the manufacturer of the hub and find out if they have a software interface to do this. Otherwise, it's the external power on/off approach via a relay or via a regulator as suggested by SnowMule.
    EDIT: Additional caveat: devcon may not work under Windows 7. You did not indicate what operating system you're using. However, the OS calls that devcon makes are still there.

  • Control pump with daq

    Hi, I've recently purchased the PCI-6221 M series DAQ card.
    I have a BALDOR pump controller that I want to control. The controller takes 7 digital inputs as control.
    What is the best way to implement this using Labview? I want to have buttons on the VI that will allow the user to start,stop,choose direction of the motor (all these are simply controlled by a single digital signal each).
    Will I just have to use boolean buttons, and one of the states will be to output a signal?
    Thanks!
    Sunny

    Hello Sunny. Thank you for contacting National Instruments. I am not too familiar with the BALDOR pump controller. Does it start/ stop/ choose direction by setting a specific digital line high or low? If this is the case then you can use an example in LabVIEW that specifies if the line is high or low based on a boolean control. Go to the Help Menu and select Find Examples. Browse Hardware Input and Output>>DAQmx>>Digital Generation>>Write Dig Chan.vi. Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments

  • How to use ELMO motion control device with LABVIEW

    Hi,
    I am
    new to LabVIEW withvery little controls
    experience (just now graduated).  I need to use LabVIEW, NI USB 6009( DAQ)
    and a Harmonica servo drive from Elmo to control a voice coil.  . What I
    am looking for is some general guidance to get me started; point me in
    the correct direction so I can get rolling.  I will be using a RS-232
    line between the Harmonica and the PC.
    I have generated a sine waveform to the NI USB 6009 from LABVIEW. I have to send this signal through the ELMO Harmonica 5/60 N to control a voice coil. I have
    been reading the Elmo SimpleIQ Software Manual and am  lost Kindly help me out. 
    Regards,
    Pawan 
    The software manual states using Interpreter Language or User
    Programming Language.  Both of the languages seem to resemble what I
    remember of C++, sort of.  The document explains "while" and "for"
    loops, etc.; however, my understanding is that I should be able to use
    LabVIEW to accomplish such tasks and then just ask LabVIEW to output a
    command to the Bassoon to control my voice coil.  My best guess is that
    I use the "System Commands" to output commands to the Bassoon although
    the software manual also mentions compiling code similar to that of
    standard programming modes.
    Please help me out.
    Thanks        

    Continued here.
    LabVIEW Champion . Do more with less code and in less time .

  • MC-4 Controller Not Working with LabView

    I have a Klinger MC-4 Motor Controller and am trying to control it with LabView. I have thus far not been able to get the motor to move with the driver that I downloaded from this website. If anybody has written anything for this same purpose, I would greatly appreciate your insight. Any help with this problem in either LabView 5.1 or 6.0 would be great. Thanks.

    Hello-
    It may be possible to modify the existing driver to work with this instrument. Otherwise, drivers are developed and modified based on demand and popularity so the more requests, the greater the possibility that one will be modified. Please send an email to [email protected] about this issue. It would also be beneficial to notify the instrument manufacturer.
    Randy Solomonson
    Application Engineer
    National Instruments

  • WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable.

    WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable since I dont have rs232 ports. I have two instruments that I want to control in this manner. One is an Imada ZPS force gage with RS232 output. The other is a Panasonic HL-G103-S-J laser micrometer sensor which is RS422. I've done considerable LabVIEW programming using GPIB but I have no experience with devices like these. Any tutorial or examples would be greatly appreciated.
    Thanks.
    Solved!
    Go to Solution.

    I understand that you want to control a device which having RS 232 port as output. If so, you can use an USB-RS232 cable from PC to device and you can control or monitor the device.
    See this link http://zone.ni.com/devzone/cda/epd/p/id/2669
    Also, first check the device in hyperterminal and then continue to program in labVIEW. You can find the serial VI's in Instrument I/O.

  • How to access SPECIFIC camera attributes tree (camera controls) located in MAX with Labview?

    How to access specific camera attributes tree (camera controls) located in MAX with Labview?
    I want to be able to access frame, trigger and grab properties. Does anyone know?
    Thanks.
    /Peter

    Please see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-Node/m-p/1642950/highlight/false#M590168
    Matt
    Product Owner - NI Community
    National Instruments

  • Controlling Hamamatsu Camera with LabVIEW

    I am using a Hamamatsu 1394 ORCA-ERA Camera in order to save microscope images on a PC. Im my lab, we are attempting to automate the process of saving an image from this microscope, and coordinate the time of the image capture with a function performed with LabVIEW. 
    As the 1394 name implies, this camera is connected to our PC using a firewire port. Is it possible to control the function of this camera with LabVIEW through a firewire port? What additional LabVIEW libraries would I need in order to perform this task, if any? Finally, is it possible to use LabVIEW to control a program called micro-manager that we currently use to save images? I know the Hamamatsu API supports both programs, but I am not sure if cross-communication between them is supported. 
    Thank you for reading, any response is greatly appreciated. 

    You say the API supports LabVIEW.  Does it have any example code for you to start with?  Typically driver sets include examples to make it easier to work with their API.
    If it works with that API, I'd see if you can get that to work with taking the images without using the second program.  You can typically use something like system exec on a Windows machine to run programs.  I'm not sure of anything that works similarly for a Mac.  Does micro-manager have an API you can use to make calls to it?

  • Controlling VI Logger 1.1.1 with LabVIEW 7.1

    I have LabVIEW 7.1 on my system and installed VI Logger (1.1 them upgraded to 1.1.1). I would like to programatically control VI Logger with LabVIEW. There are references to VIs under the Advanced pallate to do just that, but I cannot find them or any help files to explain what to do. Where do I find these VIs?

    Hello,
    Thank you for contacting National Instruments.
    After you install VI Logger, the VI Logger Subpalette should appear on the functions palette. See the attached screenshot.
    If they do not appear there, try to reinstall VI Logger.
    Let me know if you have further questions.
    Sincerely,
    Sean C.
    Applications Engineer
    National Instruments
    Attachments:
    VILoggerVIs.bmp ‏2305 KB

  • How can I control PIC programmer with LabVIEW

    I need to control a PIC Programmer (MPLAB PM3) with LabVIEW. How to do this?

    Hi Paul.
    I am working on a project that is using LabVIEW to communicate via serial communication with 4 programmers (Com 1, 2, 3, & 4). I am currently using the Microchip PM3 programmer DOS utility PM3CMD.exe to send/receive commands from the system exec.vi in LabVIEW. I am attempting to program simultaneously with 4 programmers, but the PM3 programmers are returning a database error if I try and communicate with more-than 2 programmers at a time. I noticed that you have some experience with some drivers from Microchip and using serial commands.
    Do you have any suggestions that may help me.
    Thanks.

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

  • Controlling a Nanomotion motor with LabVIEW?

    What do I need to run a Nanomotion motor with LabVIEW?
    LabVIEW - Controller - Driver - Motor
    The Nanomotion motor which I intend to use is a HR4, for alignment purposes in a cleanroom environment. Do you have any experience in using this or other Nanomotion motors please add a comment to this post.
    Regards,
    Marcus
    Marcus Törndahl
    Senior Software Designer @ Prevas AB

    Marcus,
    some years ago I have used an NI 7344 motion control board to control a Nanomotion ultrasonic actuator. I don't remember the model type of the drive, but it has provided a +/- 10 V command input. The position feedback signal came from a quadrature encoder.
    In fact NI's motion control R&D has worked with Nanomotion to implement some features into the control algorithm of the 734x and 735x boards to optimize the control behavior for Nanomotion actuators. The most important parameters, that were added to support these motors are the foward and reverse offset voltages to configure the static friction deadzone.
    Brief explanation: There is a deadzone of approximately +/- 2 V at the command input, where the motor doesn't react to command voltage changes. The 734x and 735x boards can avoid this deadzone. Otherwise it would be very hard to properly control the actuator.
    I hope that helps,
    Jochen Klier
    National Instruments

  • 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 control a digital photocamera trough the USB with Labview

    i want to control my digital photocamera with labview, so that i can take a picture on a labview command.

    NeoVista (www.nvsi.com.au) has an excellent toolkit for controlling Kodak digital cameras - maybe they could help?
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

Maybe you are looking for

  • Report for Dunning

    Hi Experts, Any one has written report for Dunning.(F150) Scenario: transcation code F150 can't be schedule; it's runs manually by users. we  need a report  same as what F150 is doing so that we can schedule in job. if any one knows  report for dunni

  • Does the Mini Display port carry audio?

    I am trying to setup a collaboration centre in my school where I would have 4 macbook pros attached to a TV. http://i53.tinypic.com/jkdduw.jpg I was going to buy a KMV and Audio switch to connect all the laptops to the TV but then it occurred to me t

  • FI _AA errr Posting with trans.type 210 not possible (No acquisition posted

    Asset Retirement Not Possible   Dear, We have uploded legacy data in our Production server on 01.04.2010.. after that we have to sale one of them asset . I am using T.code :- F-92 .. but i couldn't sale that and system gives me error Posting with tra

  • Printing problem with Epson Workforce 840 & iPhoto 6

    My iPhoto 6 works fine with our other printer - HP Officejet. However, when I try to print a 4x6 photo with the Epson Workforce 840, the "iPhoto" tab in the print settings doesn't offer the usual set of paper options.  It only offers a limited set in

  • Backing up iPad to new computer

    I want to back up my iPad to a new computer, bit I'm afraid to lose on the music on my iPad.   I have some of the music that is on my iPad on the new computer, but not all.  Both computers are PCs