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

Similar Messages

  • 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

  • A lab view VI to control a tank system which is controlled via 3 solenoid valves

    a lab view VI to control a tank system which is controlled via 3 solenoid valves

    Perhaps he's asking for bids for the job. If so, perhaps posting in the LabVIEW Job Openings would garner more responses.

  • 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

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

  • Controlling a 24V .2A motor

    I had no answer on getting a MID-7654 to control a 24V, .2A servo, so I thought I would ask it a different way.
    Is there any way at all to control a 24V, .2A servo through LabVIEW? I have found quite a few sites with stand alone controller/drivers, but I have not run across anything that will work for controlling this with labVIEW. Granted I could probably control one of those stand alones with serial commands, but I think that may be too slow for my application.
    Another idea was to use a UMI-7774. Will the UMI-7774 do it alone or do I still need a driver/amplifier. If I do, any suggestions as to which one?
    As you might have guessed, motion control is very new to me and this servo was requested by my customer, so I need some help making it work.
    Thanks,
    BobMessage Edited by Bob Y. on 05-17-2005 04:14 PM
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

    Bob,
    you could control the 24V motor with the MID-7654 by adding inductances in series to the coils of the motor. Ideally the inductance should have the same ratings like the coils in your motor. This inductance would act like a inductive voltage divider but of course the drawback is the fact that 50% of the power is wasted in these additional inductances.
    Probably a 3rd party drive would be a better solution. The UMIs are active breakout boxes for 3rd party drives and they add filtering and isolation but they don't drive power by themselves.
    A lot of our customers use 3rd party drives in combination with NI's motion control boards. Typically those drives provide a command input (-10V to 10V) to connect to motion control devices like the NI-73xx boards. The serial port is used for drive configuration.
    You might also have a look at our Drive Advisor. Here you can find a list of drives that have been tested with NI motion control boards. Some of them provide also direct connectivity to NI-73xx boards without the need of a UMI. I point out explicitely that there are many many more drives available that are not on that list but that work also perfectly with our boards.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Controlling a 24V, .2A servo motor

    I had no answer on getting a MID-7654 to control a 24V, .2A servo from the Motion Control and Motor Drives board, so I thought I would ask here.
    Is there any way at all to control a 24V, .2A servo through LabVIEW? I have found quite a few sites with stand alone controller/drivers, and others for much smaller servos, but I have not run across anything that will work for controlling this servo with LabVIEW. Granted I could probably control one of those stand alones with serial commands, but I think that may be too slow for my application.
    Another idea was to use a UMI-7774. Will the UMI-7774 do it alone or do I still need a driver/amplifier. If I do, any suggestions as to which one?
    As you might have guessed, motion control is very new to me and this servo was requested by my customer, so I need some help making it work. Also budget is a consideration, but I will accept any suggestions.
    Thanks,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

    Good Morning,
    The UMI-7774 is just an interface between the motion control boards and the power amplifier. The MID-7654 is basically just the power amplifier part of the list. Depending on your motor's requirements a controller out of the NI-73XX category might be a good fit with the 7654. The third party controller/drives can frequently be used, some, as you say, are serial communication, some are parallel (both interfaces are becoming harder to find). Remember, as to speed of communications, that motion controllers do some/most of the work. With many you specify a direction, distance and speed, and then they go off doing it, signalling when they're done with that motion. In some cases a series of complex motions can be downloaded and then initiated. There isn't a straight forward answer without more info on the application.
    Sorry if this doesn't shed much more light!
    Putnam Monroe
    Senior Engineer, Certified LabVIEW Developer
    North Shore Technology, Inc.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • SSO and EUS with EM Grid Control

    Trying to configure both SSO using client certificate authentication process and Enterprise Users, I noted that the parameter used to configure both is the same (oracle.sysman.emSDK.sec.DirectoryAuthenticationType) in emons.properties.
    Can I use both SSO and EUS with EM Grid Control???

    Hello
    i am interested in a very special feature: is it possible to get notified if alerts occur in alert logs in an 8i/9i database when using Grid control and the 10g agent on the 8i/9i systems?
    Moreover, the 10g agent should be able to get Performance Data using the v$ views or direct sga access without using statspack, right?
    Do you know where I can find documentation about the supported features when using Grid Control with 8i/9i databases?

  • How to limit data range in a Line chart with Time Refresh Control

    Hi All,
    I have a Line chart with Time Refresh Control and I would like to make some constraints to this navigation.
    For example, I would like to limit the user to navigate in a data range of 8 hours.
    Is this posible?
    Thanks in advance

    Hi Pedro,
    as far as I know, this is not possible using the time controls on an iChart. However, you may have some success by using your own time controls which call JavaScript methods exposed by the applet.
    For example, you could begin by hiding the time and calendar buttons on an iChart, and creating some buttons of your own. For instance, to set the start date of a query (and thus the start date of the iChart using the query), you can use the following:
    document.getElementById("appletID").getQueryObject().setStartDate(<date string>);
    Using code like the above (look into the xMII script assistant and documentation), you should be able to build time controls which satisfy your requirements. The exact format of <date string> in the sample above will depend on the date format defined in the query template this script calls.
    Hope this helps,
    Sascha

  • Can you manually advance a Captivate slide presentation with a remote control and a projector.

    I have published a large volument of PowerPoint presentations with Captivate 5.0 and intend to distribute the presentations to live instructors as a means to control content delivered live by instructors to the students.  The files are aggregrated into groups of lessons and published to PDF with a Table of Contents.
    We need to avoid manually advancing the show from the laptop.
    Having difficulty determining how to use remote control via laptop and projector to advance the next slide or presentation. Can't get it to work. Was able to do so previously with PowerPoint slides converted to PDF shows. Remotes/Laser pointers worked fine. But now that I have processed the shows through Captivate 5.0 can seem to find a remote that will work with the new PDF or SWF with our systems.
    We use a laptop and projection system, so need to be able to advance the show to the next "slide" manually and are trying to figure out how to do it with a remote control.
    Has anyone else experienced this challenge and did you find a solution?.

    Hi Carey,
    if you can apply the letter "A" for "next" to your remote control?
    Then you could add a shortcut to your buttons in the captivate file.
    In deapth:
    Go to a PPT importet slide (using the "click mouse" option to continue".
    Click somewhere in the screen (clickbox_xx will be selected).
    Properties - Action - Shortcut. Click it and press "A".
    Click somewhere on the stage.
    Now when you press your next button on the remote, Captivate will receive an "A" and continue to the next slide.
    Hope this helps
    Best
    TD

  • URGENT:  Error while deploying ear with weblogic service control

    We have build an ear within workshop and deployed to another server. When accessing the application we are getting the following error:
    'com.bea.control.ServiceControlException: Could not find service ref in jndi: java:comp/env/service/hhs_wc_controls_SearchServiceControl[javax.naming.NameNotFoundException: While trying to look up comp/env/service/hhs_wc_controls_SearchServiceControl in /app/webapp/WCWeb/5120123.; remaining name 'comp/env/service/hhs_wc_controls_SearchServiceControl'] '
    The service control is connecting a WSDL to consume a web service.
    Does the service control create a JNDI entry or some file is not getting built into the ear?
    We are using WLP 10.3
    Your help is much appreciated.
    Thanks,
    - Shankar
    Edited by: user1269940 on Nov 6, 2009 12:39 PM

    Hi Shankar
    When a WebService Control is created based on .wsdl file, it generates a .JAR file with all jaxb generated classes and .java files with service and port classes. This .jar file will be under web-inf/lib folder. Then I guess you are using this WebService control in your Pageflow and invoke webservice operations. So do you have like a portlet for this pageflow and testing from a portal. I have a similar scenario but I did not get any error that you are seeing. I consume SOA BPEL webservices in one of my pageflows using Service Controls.
    To debug, first test if the wsdl is working by directly invoking the wsdl operations using a utility servlet by name "wls_utc" which you can invoke from any of your wls/wlp domain. Start your domain assuming localhost and port is 7001. The url for testing webservices is:
    http://localhost:7001/wls_utc. This works if domain is in Dev Mode only. This page opens a jsp page, where you can type your wsdl url (http://host:port/context/a/b/xyx?wsdl). This page parses that wsdl and shows all operations and for each operation the fields for input parameters. See if this wsdl works fine.
    As for deployment, there is no additional step required. Just ear your application that has .war file and that has web-inf/lib folder with actual webservice control generate .jar file. I did no tconfigure any additional JNDI lookups like that.
    Thanks
    Ravi Jegga

  • After updating with IOS7, i can no longer control the music on my iPhone with my car controls. I have deleted the phone and re-synced it twice????

    After updating with IOS7, i can no longer control the music on my iPhone with my car controls. I have deleted the phone and re-synced it twice????

    Go here: http://www.apple.com/feedback/iphone.html and report it with as much detail as possible.

  • For some reason when I shut down my computer then turn it back on, it comes back directly into my account, bypassing having to enter a password to get into my account.  This works in direct conflict with the parental controls I've got set up.  Any ideas?

    For some reason when I shut down my computer then turn it back on, it comes back directly into my account, bypassing having to enter a password to get into my account.  This works in direct conflict with the parental controls I've got set up.  Any ideas?

    Thank you so much for the quick response to my question.  I tested your directions and it works!!  Thank you.  I would never have figured that out.  I knew I had to go into System Preferences but would not have guessed that I needed to have Automatic Login set to off. 

  • Report with Dynamic tree control

    I have a report with a TREE CONTROL.
    <p>
    A Tree is referenced to: CL_GUI_ALV_TREE_SIMPLE and is located on the left side of the screen.
    <p>
    See diagram below.  The Tree has MULTI-LEVEL nodes and the user can click on any of the nodes which will
    trigger a report (rellevant for that node) to appear in the REPORT container.
    <p>
    Everythign is working fine. 
    <p>
    I now have a requirement to add a TREE ON/OFF functionality.  I have added this by 'Freeing' TREE
    container and by initializing when the user Turns ON the TREE.  It is working fine, HOWEVER, when
    it initilizes the TREE it is COLLAPSED and obviously does not point to the NODE that was clicked.
    <p>
    My goal is to retain the value of the NODE that was pressed and EXPAND the tree to that node and
    highlight it...  Please note that I have MULTI-LEVEL nodes and the user can double click on NODES
    and ITEMS. 
    <p>
    I tried using GET_SELECTED_NODES, but it only works if the user selects the LOWEST level node/item.
    <p>
    Any advise will be appreciated.
    <p>
    Also, as an alternative, I was thinking of resizing TREE container to WIDTH of 1 when the user PRESSES
    TREE OFF and resizing back to width 200 when the user presses TREE ON.  I could not find any methods
    that would work with CL_GUI_DOCKING_CONTAINER. 
    Please help! Thank you in advance.
    <br>
    <br>
    <img src="http://img237.imageshack.us/img237/6684/bdccz3.jpg" border="0"/></a>
    <p>
    <p>

    I have a report with a TREE CONTROL.
    <p>
    A Tree is referenced to: CL_GUI_ALV_TREE_SIMPLE and is located on the left side of the screen.
    <p>
    See diagram below.  The Tree has MULTI-LEVEL nodes and the user can click on any of the nodes which will
    trigger a report (rellevant for that node) to appear in the REPORT container.
    <p>
    Everythign is working fine. 
    <p>
    I now have a requirement to add a TREE ON/OFF functionality.  I have added this by 'Freeing' TREE
    container and by initializing when the user Turns ON the TREE.  It is working fine, HOWEVER, when
    it initilizes the TREE it is COLLAPSED and obviously does not point to the NODE that was clicked.
    <p>
    My goal is to retain the value of the NODE that was pressed and EXPAND the tree to that node and
    highlight it...  Please note that I have MULTI-LEVEL nodes and the user can double click on NODES
    and ITEMS. 
    <p>
    I tried using GET_SELECTED_NODES, but it only works if the user selects the LOWEST level node/item.
    <p>
    Any advise will be appreciated.
    <p>
    Also, as an alternative, I was thinking of resizing TREE container to WIDTH of 1 when the user PRESSES
    TREE OFF and resizing back to width 200 when the user presses TREE ON.  I could not find any methods
    that would work with CL_GUI_DOCKING_CONTAINER. 
    Please help! Thank you in advance.
    <br>
    <br>
    <img src="http://img237.imageshack.us/img237/6684/bdccz3.jpg" border="0"/></a>
    <p>
    <p>

  • How to use old archieve logs with a new control file

    Environment:
    ORACLE_BASE="/export/home/oracle"
    ORACLE_HOME="/export/home/oracle/product/8.1.6"
    NLS_LANG=".UTF8"
    2 partitions:
    i) /data1 -- contains important datafiles (OS striping on 3 hard
    disks)
    ii) /export/home -- contains the oracle program, and SYS/SYSTEM
    datafiles
    Problem:
    -/data1 cannot be read/mount (damaged)
    -oracle failed
    Action Performed:
    -reinstalled OS
    -mount /export/home successfully (all oracle system files,
    instance init files exist)
    -/data1 is an empty partition
    -created the oracle user, and its groups
    -chown recusively for the $ORACLE_BASE directory
    -set all the oracle environment variables
    -attempted to start the instance, but failed due to a control
    file was
    missing
    -since control files were set to be mirrored, i copied a control
    file somewhere
    from /export/home/oracle/oradata/<SID>/control1.ctl to
    /data1/oracle/oradata/<SID>/control2.ctl (i.e. have them back to
    their original locations)
    -the instance failed to start as well, since the datafile set in
    the control files couldn't be found
    -this forced me to re-create the control file... b4 i re-create
    a new control file, i backed up the old one
    -once the control file was created, the database can be started,
    but, to oracle, all achieve log information are lost (although
    the achieve log's physical files r still there)
    -i imported the important data from a dump file that was
    exported a week ago b4 the system failure
    -since we r using the new control file, the redo logs switch
    contains no achieve log information that the old control file
    has, so running "recover database" doesn't do anything
    Purpose:
    since the dump file is a week old, i'd like to get the data
    after my last export and b4 the system failure. the database was
    run in arhieve log mode, how can i recover those data with the
    new control file
    Question:
    -how can we create a new control file that can drive the old
    achieve logs?
    -can we convert the achieve log data (.dbf format) into text
    format?
    -can we still use the old control files to start the database?
    -what's a suggested solution if we'd like to re-construct the
    database up to the moment b4 the system failure in another
    server?
    thx

    user3930585 wrote:
    I am in an unenviable position, with an unsupported database.
    We are running Oracle 9i on Windows XP. We are upgrading soon to Oracle 11g on a newer platform, but need to get our development environment working first.
    We lost a system that was running our development database without having a database export. The C drive was placed into a new system as the D drive.
    I have loaded Oracle 9i on the C drive, but I have been unable to determine how to point it to the existing data files on the D drive. My search skills may be the limiting factor here...
    We cannot simply load the drive as C, since the hardware is different.
    What are the steps to point the new database software at the data files on the D drive? Or, how do I copy the old data files into the new Oracle Home and have them recognized properly?
    Are you stating that you don't know how to use COPY command?
    Can you recreate same directory structure on new C drive as exist on old C drive?
    Can you then drag & drop copies of the files?

Maybe you are looking for

  • Global temp table trigger error on Oracle AS

    we have a set of triggers that load a temp table in the before delete,update and process the table in an after statement trigger. the data that's loaded is a complaintid and when the complaintid is selected into a variable in the after statement, a N

  • CProject evaluation table: How to get project-related task confirmation

    Hi everybody. I'm working on cproject and this is my problem: In my report i can get details related to an assigned project (i know Project guid) in this way:   CALL FUNCTION 'BAPI_BUS2172_GET_DETAIL'     EXPORTING       project_definition_guid     

  • Additional Printer Added @ Every Power-On Cycle

    (iMac 21.5", OS X 10.6.3, Canon MF4150 multifunction laser.) This MF printer is only partially supported in OS X (no scan capability). Every time I power the computer on, a fax version of the printer is added. Locking the settings in System Preferenc

  • Itunes won't recognise some music

    When downloading some albums for the internet, when I try and drag and drop them into my libary they just won't show up in there ???? any ideas. The file format is mp3 audio and they play fine in windows media player, but I can't get them onto itunes

  • HT4061 I don't have access to my ID.  The phone is disabled.

    How do I retrieve the ID?  The phone is disabled, and I don't have tools to open it.