Valve control

Hello wise NI people. I am trying to use the text file attached below to control a series of valves. After several tries, I keep getting  errors (200524,etc)   and when it does run the sequence is way off. I have an idea were I am messing things up but I need some ideas on how to fix it. I will appreciate any suggestions or references.
Solved!
Go to Solution.
Attachments:
Flush and Sample.vi ‏58 KB
AF 17.txt ‏1 KB

Charles,
The way your text is formatted was causing an error. I took out the errors from your text and now reads in ok. 
I can see that you are taking the first column to give you your time delay. You are then getting the rest of the array from the 5th column? is this what you are meaning to do? This means that in each iteration you are trying to send a 1D array consisting of 11 booleans. I have never used this hardware, could it be that it needs to see a 1D array of 16 bits and this is the error you are getting?
Rgs,
Lucither.
"Everything should be made as simple as possible but no simpler"
Attachments:
New.txt ‏1 KB

Similar Messages

  • 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

  • Valve control - user controlled, then self controlled

    Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing.  The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges.  At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to a file.  This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button.  I have the VI up and running, all except for the opening part of the valve.  I have included a simple example of where I am going with the valve control.  Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming.
    Thank you,
    Jmc
    Attachments:
    Valve control.vi ‏12 KB

    JMC,
    Here is an example which does what I think you want. I added a "valve setting" indicator which becomes the value you send to the valve driver. I disable the Slide when the Surge button is pressed. The event structure needs a separate case for each type of event you want to capture and should be enclosed in a loop.
    Lynn
    Attachments:
    Valve control.2.vi ‏23 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.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • 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

  • 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

  • First order control system for proportion​al valves

    I am working on a proportional valve control program. We have four gas lines and it is desired to send four different gases through a combustion chamber sequentially. The close time for each valve is determined by the pressure measurement inside the combustion chamber. For instance, firstly, we let the nitrogen gas flows to the chamber, and the pressure inside the of it reaches 5 bars, we closed the nitrogen valve, and open the argon gas valve, and hold it opened until the pressure is reached at 15 bars inside the chamber and so on.
    I was thinking on utilizing PID for control of these valves, however, one author from my institute said that you can not do this with a PID program, you can do that with a  first order control system. Because in the system,  it is not allowable to gases exceed their set points (set pressure values). PID controls the system with osilations around set point and after it provides the set value, but in this case, we are not allowed to exceed the set point (we may reach the set point slowly and asymptotically, but never exceed it).
    I have not background on controlling hence I need your help. Could I do that with Labview? Is there a first order system control module in Control & Simulation Toolkit? And also where can I find examples, tutorials, etc. -if there are- about first order system controlling? Thanks in advance.
    Egemen

    what you are trying to do can be done with PID, but you would need to tune it to avoid overshot. But, most importantly, the use of the closed-loop PID will guarantee that your system will follow the setpoint, which can be a ramp going from the 0 to 100 % of the valve. The ramp on setpoint is a typical control technique to avoid overshoot of the system.
    Now, if you look in the PID palette under Control and Simulation, you will see the function called "Lead-Lag". This function is a 'first order' system and you can define a pole and a zero for your system. If your objective is just make the change smooth, you can make the Lead-Lag to work as a "Lag" (make the lead zero) and apply to your system. here is an example:
    C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\control\PID\Simulation - Lead-Lag.vi
    If you need something more complicated than Lead-Lag, than I would you advice to use the LabVIEW Control Design and Simulation Module. There you can really develop more advanced controllers, like higher order filters or Model Predictive Control. But this also requires you to have a better knowledge of control theory...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Custom controls or Xcontrols?

    I would like to create custom controls that a user can drag-and-drop from the controls palette.  The user will import an image showing pipelines and then drag-and-drop valves on the pipelines.  I want to create these valve controls so that you can easily set their timing or connect them to other valves to have an identical, inverse or delayed response. 
    Would it be more appropriate to use Xcontrols than custom controls for this application? 
    Thanks, 
    Suretha

    Suretha wrote:
    The user wil not necessarily be a developer, no. 
    My idea is to create a basic valve with different attributes, for instance  it's timing can be linked to another valve, but then you can specify if it should be identical, inverse or a delayed version of the other valve's timing sequence. 
    This sounds like intelligence to me, so I assume an Xcontrol will be necessary?  
    This is starting to shape up as a "control on the Fly" Challenge. But I'm not going ther yet.
    XControls are great if you as a developer have same functionality you want to include in more than one app. They wrap-up all of the functionality you associate with that control. You (as a developer) just drop another one in a new app and the functionlaity comses along for the ride. In my experience this means I code up the function I want in an app (done coding if I don't go to XControl) and then start the work of converting to work as an XControl.
    If you can put an upper limit on the number of objects you will present on the screen at any one time you can;
    Create a cluster with the max number of controls you need and hide what you are not using at the time.
    Do the same as above with hidden controls.
    If you can let the GUI NOT look like the widget you are testing then arrays are useful.
    If all of the above leaves you lacking I'll outline what I went through to do my last "Controls on the Fly" app.
    1) Get very familiar with the LV Picture control. If allows you to draw whatever you want and offers mouse down/up move, enter and leave events. The picture control will be used to render your objects.
    2) Get familiar with LVOOP. I used LVOOP because many of the routings of mouse clicks, possitioning, rendering, etc are common to all of the object on the screen. Code up this functionality in a parent class so the childeren can inherit this functionality.
    3) Code up an application that operates in two modes (optional but it makes design easier) "Desgn mode" and "Operate". In Design all the user to layout the GUI but do not implment any functionality beyond Deisgn work. The design when loaded in Operate mode should establish all nessesary communications and use the events captured from the Picture control to invoke the methods required for each class of gizmo on your widget.
    There is a LOT of work that goes into a "Controls on the Fly" app. If the work I outlined above "bugs" you. It should.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to call dlls for valve system

    I need to call the dll file I made from visual C++.The main theme is to control valve system from labview. I put the control switches(booleans) in labview and now want to connect it to the initial C++ program I made for valve control.Is there any way that I can use the on/off switchs(booleans) and code interface node for the system to work?Please help.I am having problems with dll calling .

    I got the message" call library function :function not found in library".
    I had checked for the function name,its same as is on the header file.I had tried for both C and stdcall calling conventions,still it didnot work.
    please suggest what could be wrong.

  • How can I create a manual control switch?

    Using LabVIEW 6i, I am creating an interface to control a set of valves.  Sometimes the valve control is automated, but manual control is also allowed by flipping a "manual control" switch.  When the controls are in "automate" mode, they can not be switched by the user.  The way I have done this is to create two sets of controls on top of one another: one is a "control", and the other is an "indicator".   When I switch between manual and automatic, I change the visibility of the controls to show either the 'control' or the 'indicator', respectively.  It seems that there should be a better way to do this.  Any ideas?

    Use your "manual control" switch to enable or disable the set of valve switches. This you do e.g. by creating a Property Node for each of your valve controls and select the property "Disabled". You can wire the states "Enabled", "Disabled" and "Disabled and Grayed Out" to all of the property nodes. (You cannot operate on disabled controls - which is exactly what you need.)
    This also removes the need to have the two sets of controls and indicators: The set of controls will do.
    Regards, Guenter

  • Is it possible to view VIs remotely on windows 7 if VI was built with LabView 8.2?

    So I know i'm probably dealing with software compatibility issues here, BUT, I wanted to make sure every option was exhausted before considering the idea of upgrades.  
    Im using LabView full development system 8.2 on windows XP 32bit os.  Currently, I run into no issues when controling or building VIs on my computer.  Problems do occur when trying to control VIs on a remote computer with windows 7. That computer has run-time 8.2.1 installed on it.  For the most part it works best to just view the VIs, and not interact or control too much.  More specifically, the VI will freeze once interacting with a control that is intended to pop up a two button dialogue box.  I'm sure there are a lot more issues with using run-time 8.2.1 on a windows 7 computer; that one in particular is just the only one i've experienced.  
    In all efforts to avoid what could eventually be an unavoidable situation where an upgrade is necessary, is there a way to remotely control (on windows 7) a VI front panel that was built with labview 8.2?

    Thank you for the response.  Just to preface, I am fairly new to LabView so pardon my potentially "stupid" questions.  Here's my process in a nut shell:  VI programs are created on our server computer and then published for web with the "web publishing tool...".  The html page created is then put on a main page with all other created VIs and are then viewed on other computers that are part of the network via ip address.  
    I was under the impression the LabView run-time engine enabled remote computers to view and control these VIs.  Could be wrong?  After downloading and installing run-time 8.2.1 (since vi's were created with labview 8.2), those computers are able to enter the ip address and navigate to the main page to control the web published vi's.  The issue is with the computer that has windows 7.  I know run-time 8.2.1 isn't necessarily compatible with windows 7, but it does seem to run the vi on a pretty minimal level.  I run into problems on that computer when hitting particular controls that are wired to be more complex than just a simple boolean.
    Just to provide a visual, I attached an image of one of the scenarios where it will freeze up on the windows 7 computer.  This is how the VI should normally function; however, before the dialogue box even pops up after clicking a valve control, it freezes.  
    I didn't even consider VNC or Remote Desktop up to this point.  Thank you for that idea.  I'll definitely look into that as an alternative.

  • Using SKPTSMTPMessage how to send a variable String?

    I am using SKPTSMTPMessage to send an email in the background but I need to send a variable string. I have tried putting a %@ in the text but it just sends the %@ and not a variable. Please Help?
    Hopefully, iCrazy23

    Did you ever figure out how to do this?  Because actually I'm trying to do pretty much exactly the same thing.  I'm actually having trouble even outputting the digital signal at all with my USB-6501.  I was initially trying to use DAQ Assistant, but then found out I probably shouldn't be using this and instead should be using the DAQmx individual functions.  I was directed by NI Support to look at the example "Gen Dig Pulse Train-Continuous.vi," but I haven't been able to figure out how to use this for my application.   For my project I  want to send a TTL signal to vavles that release fluids as well.  I have 3 2-way liquid releasing valves that I want to be synced so that only one is open at a time (for a user specified amount of time), and they open in a regular repeating sequence.  I also have another 3-way valve controlling a vacuum that I would like to be continuously pulsing, but for specified amounts of time (e.g., 3 seconds open, 3 seconds closed, and so on).
    I believe I can figure out the logic and the programming involved with figuring out the exact sequencing and timing manipulation, however, I'm having trouble just being able to output any digital signal with a varying time.  If you could offer any help on this, it would be greatly appreciated.  Thanks!

  • Having Some unknown characters in my file of Receiver Mail Adapter

    Hi All,
            I have a unique problem, I am having special characters(  #S@u201D E" E$ u201Däu201Där 4TåE$R   D0u201CC3 u0192    c@u201DÔôETÄPu201Du201Eu20220u201D 3@u201C  ó ró#  u20ACu201C  ó# ó#  u2019 ) in text file of Receiver Mail Adapter.I am providing you a part my input text file
    1747021     000070     0001     Production Baseline     ZTAN          100A     0039     2204229-1     50     PLANT3002     Honeywell Aerospace Bournemouth - R     3212774     NOZZLE     HIS     M22     12/31/2008     01/05/2009              1.000              1.000            1.000     01/05/2009     
    1745558     000100     0001     Production Baseline     ZTAN          100A     0039     801137-1     80     304030     LUFTHANSA TECHNIK AG     45111378001     WHEEL     HIS     M22     12/30/2008     01/12/2009              3.000              3.000            3.000     01/12/2009     COOP Legacy Notes - Note Type: 07N UPDATE AS OF 11/8 SH AVS Legacy Notes - Note Type: AB 1. A QTY OF 53 NEW PARTS WERE PURGED ON 3-5-99 PER KAREN MOSS' REQUEST. PARTS ARE SUSPECT OF BEING DAMAGED DUE TO BEING STORED IN ASRS IN A METAL TO METAL SITUATION.
    1740335     000100     0002     Production Baseline     ZTAN          100A     0039     3176647-4     80     341734     SAUDI ARABIAN AIRLINES CORP     8233950     VALVE, CONTROL     Jaroslav Kral     M18     12/24/2008     12/31/2008              1.000              1.000            1.000     01/23/2009     COOP Legacy Notes - Note Type: 07N D PARTS NEED TO CHEC WITH LUPE WIN ISSUIN COOP Legacy Notes - Note Type: POG REPLCS 3176647-3 AS A MANDATORY CHANGE. 3399100-11    V17138 (TAKES -4 TO -11) 3399100-11    V17139 (TAKES -9 TO -11) 3399100-10    V17140 (TAK
    1734808     000100     0002     Production Baseline     ZTAN          100A     0039     3883240-6     80     300168     IBERIA LAE     48017888601     CONTROL FUEL     HIS     M13     12/20/2008     01/10/2009              1.000
                  1.000            1.000     04/29/2009     AVS Legacy No
    Can any one help me out?

    Hi Stefan,
    I am Using Transport Protocol as IMAP4
                     Message Protocol as XIPayload
    Connection Parameters to Mail Server
    URL  -
    .mycompany.com
    Mail Attributes
    Use Mail Package
    content Encoding   base64
    Keep attachments
    I have Used the following Modules
    Processing Sequence
    Module Name                                                                Module Type                             Module Key
    localejbs/AF_Modules/PayloadSwapBean                        Local Enterprise Bean                Payload
    localejbs/AF_Modules/MessageTransformBean                Local Enterprise Bean                Transform
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean                mail
    Module Configuration
    Module                              Parametername                           Parameter Value
    Payload                             swap.KeyName                           content-type
    Payload                             swap.KeyValue                            text/xml
    Transform                          Transform.ContentDescription       MyReport.txt
    Transform                           Transform.ContentDisposition       attachment
    Transform                           Transform.Contenttype                 text/xml

  • Changing a Boolean Value

    I have a number of virtual valves placed on my front panel to control solenoid valves. When these virtual control valves are pressed, they illuminate to a green color and LV writes a 1 to my fieldpoint modules, actuating the valve. When the valve is turned off, the color is red and LV sends a 0 signal to the valve. I want to know if I can switch the signal states of the valve, so that a 1 is written during a red color state, and a 0 is written during an illuminated or a green colored state.

    Prashant,
    There are two way to accomplish this:
    1. You can put a NOT vi function in the diagram, on the wire from the valve control to the rest of your VI.
    2. You can edit the colors on the virtual valve controls so that the red and green are switched.
    Hope that works for you!

  • Triggering and simultaneous measurements

    Hi everybody 
    I've written a Vi to to acquire data simultaneously from 7 devices. I'll be using cDAQ9178 with NI9203. The vi will acquire current values 4 to 20mA. Could you please check the attached file and let me know if I need to improve it.
    I have some question and I should be grateful if anyone can help me to answer them.
    1. How to open the binary file from write to measurement file by EXCEL?
    2. Is it better to use write to spreadsheet for data logging, if yes how to include the time column??
    3. I'm going to use external signal for triggering through PIF0 port, is it Ok to do that through dag assistance?? I've not tried yet but it seems straightforward?
    4. Finally I have another vi for valve control that should be triggered with the measurement vi, is their any way to do that?? I was thinking about notifiers but I don't know how to use them ?
    Sorry for asking to much  I really in urgent need of all of this. I should finish my data acquisition system by Tuesday 
    Best Regards 
    Solved!
    Go to Solution.
    Attachments:
    triggering and simultaneous measurements.vi ‏97 KB

    1. How to open the binary file from write to measurement file by EXCEL?
    If you select TDMS as the file format in the write to measurement file, you should be able to open it directly from Excel if you install the TDMS Excel Add-In. Be aware that at 1kHz data rate, you will exceed the capability of old versions of Excel to read the entire file in about 65 seconds. Newer versions can read more, but anything over a couple thousand points gets difficult to analyze. That is about my limit. Over this, I go to something else for analysis, such as LabVIEW or Mathematica.
    2. Is it better to use write to spreadsheet for data logging, if yes how to include the time column??
    The write to spreadsheet file is very inefficient for data logging and cannot be recommended. Given your data (an array of waveforms), TDMS is your best bet. The write to measurement file Express VI is the easy way to do this. I, personally, prefer the control I get from using the TDMS API directly. Note that under the hood, the output of the DAQ Assistant is an array of waveforms with individual t0s and dts. The t0s are all different due to the fact that your 9203 is a scanned device, not a simultaneously sampled device. It scans at 200kHz, so the differences are not large, but they are there. I would convert the DDT into an array of waveforms, then use the native TDMS API, but I have a lot of experience. Since you are in a hurry, the Express VI using TDMS is probably your best bet.
    3. I'm going to use external signal for triggering through PIF0 port, is it Ok to do that through dag assistance?? I've not tried yet but it seems straightforward?
    That should work fine. Given your continuous acquisition, the trigger will only start the acquisition, not gate it or trigger it at later times.
    4. Finally I have another vi for valve control that should be triggered with the measurement vi, is their any way to do that?
    We do not have enough information to answer this question. Specifically, how is the valve being triggered (boards being used, hardware interface, software interface). The ideal way would be to run it through the same cDAQ 9178 so that it can be synchronized through hardware. Software synchronization cannot be guaranteed better than about ±50ms. Read up on how to synchronize things through DAQmx and you should be good.
    Good luck!
    This account is no longer active. Contact ShadesOfGray for current posts and information.

Maybe you are looking for

  • Error occurred in tag CFX_IMAGE Unexpected error occurred - help!

    Hello, We have a few clients on an IIS server running coldfusion sites.  Part of their content management systems include thumbnail creation of images.  Unfortunately, without any obvious reason, all of the image resizing code started failing.  We're

  • I can no longer open multiple pages by clicking on my safari in my dock.  What do I do?

    Just recently I have not been able to open more than one page using my safari buttom on my dock.  It used to have a "open new window' selection when I double clicked on the safari app.  Now it is gone.  Can someone help me fix this? thank you

  • Cant view my iphone summary pane

    Nant view the details of my iphone...my laptop brokes so i plugged my phone on my desktop, but i cant view the details such as, version , name capacity and the rest at the Itunes summary...pls help

  • Problem with EJB3 - BlazeDS on Glassfish

    Hi, I'm new in BlazeDS. I have a problem with Flex application using BlazeDS on Glassfish. I want to call sayHello method from EJB 3 (stateful or stateless) from Flex but I can't correctly configure BlazeDS. I search in internet from two weeks for ex

  • Analysis for Office support multi thread?

    Does Analysis for Office support multi thread/core? If so, what verison? I tried searching around this site as well as note 1466118 - Hardware & Software requirements for Analysis, edition for MS Office but was unable to find an answer. I am on an In