How to control a solenoid via PXI-2520 and DaqMx Switch

I am a LabView novice with Core 1 and Core 2 training so I am familiar with the fundamentals of LV process flow however, this is the first application I am attempting to develop that is not a simulated training VI. That said, I am having trouble ironing out the necessary logic to control a 10 solenoid 2 position valve manifold. I have developed a VI that will contact and disconnect a particular relay in the style of the "Switch Controlling Individual Relay.VI" on my PXI-2520 module but these are single instance events. Ie. i set the device, name the relay, and tell the VI which action (make or break) and run the VI. What I am trying to develop is a continuously running VI where any one or multiple solenoids can be energized/de-energized using simple boolean control whereby each relay is represented by a switch on the front panel.
It is clear that a while loop is necessary and a series of case structures or State Machine architecture is necessary but all my attempts have been fruitless. the common failure mode tends to be when following iterations of the while loop tell a switch that is already open to reopen or vise versa thereby causing an error. My thought here ist that some feedback from a former  iteration is necessary so that only "unequal" boolean values for the former iteration calls a case to connect/disconnect. What are your thoughts?
Eventually this VI will also need to control these solenoids automatically (i think DaqMx Create scan list with software triggers will suffice) but each action willl need to be timed. For now though it is most critical that I have the capability of operating the solenoids manually and dynamically.
Thankyou,
DK01

Welcome to the forums! 
If you can, please post a snippet of code from what you've attempted so far. We can take a look at it and make some recommendations. 
One of the lessons in Core 1 also talked about the use of the event structure. It may be a good use case for an event driven state machine that can modify the states of specific switches. 
Nathan M.
Applications Engineer
National Instruments

Similar Messages

  • After updating to 10.7.4 Mission Control (key F3) doesn't work and neither switching the desktop gestures on magic mouse.

    after updating to 10.7.4 Mission Control (key F3) doesn't work and neither switching the desktop gestures on magic mouse. please give me the advice what to do?

    after updating to 10.7.4 Mission Control (key F3) doesn't work and neither switching the desktop gestures on magic mouse. please give me the advice what to do?

  • How to control push solenoid

    Hi guys 
    I want control the push type solenoid for x-ray pulsing. I don't have any idea how to interface the solenoid with Labview.  The solenoid does not have a serial port it just have two power cable. Can you please help in proving general view how can control using DAQ board. I will appreciate your review and will helpful for me to buy the USB DAQ board. Thanks 
    Parag

    The parameters aren't too outlandish, so all you should need is a relay the coil of which is within the capabilities of the DAQ card (you can find the specs in the manual) an with contacts that can handle 12v at, say, an amp -- always good to provide a little overhead. One thing to be sure to include or find a relay that has one built in, in a flyback diode.
    Flyback diodes are installed such that they are reverse biases when power is applied to energize the relay. They are needed because when you deenergize the relay the magnetic field in the coil will begin to collapse and induce a reverse EMF the coil wires. The purpose of the diode is to provide this voltage with a path to ground that doesn't involve frying your digital io board.
    Mike...
    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

  • How to control adobe flash files with sliders and buttons

    Hi,
    I am trying to make a front panel for a vehicle completely designed in flash, and control it through labview.  I can load a flash file into an activex container successfully.  I have followed this thread here http://forums.ni.com/ni/board/message?board.id=170​&message.id=351719  and gotten everything working. 
    But my question is, how can I send data to the flash file from labview?  Some examples of things I need to do:  Interpret a CAN signal and have some text appear on the screen, Make buttons flash, etc.
    I understand how to load the swf, Im just not sure how to communicate with it.  One thing to mention is that the front panel for the vehicle will be fully custom coded.  However in the meantime, I am trying to figure out how to control it from labview.  Like if there is a clock.swf out on the net, how can I change the time from labview?  Is there a way to see what parameters are available for changing?
    Thanks in advance

    Hello,
    What specific Active X framework are you using to embed the container? The thread you referenced mentions Shockwave's Active X API, does this set of Active X functions expose methods for object control? 
    Could you elaborate as to the driver behind a fully Flash based front panel embedded within LabVIEW? Is this application inevitably going to be deployed as thin client software? 
    For interaction with custom flash applications aside from Active X, LabVIEW has an integrated Web Services feature to allow data transfer from custom thin client applications to the LabVIEW environment for processing and instrument control. A detailed discussion of the Web Services feature may be found via the links below:
    LabVIEW Web Services FAQ (Detailed)
    http://zone.ni.com/devzone/cda/tut/p/id/7747
    Web Services in LabVIEW (Overview)
    http://zone.ni.com/devzone/cda/tut/p/id/7350
    Please post back any further questions, or information on the system design.
    Cheers!
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • URGENT: PXI-1033 and DAQmx problem

    I bought new laptop with Express Card slot Dell Inspiron 6400. I have PXI-1033 with integrated MXI bridge, Express Card 8360 and PXI-modules: PXI-6251, 6115, 5114 and 4071. I installed drivers 8.3 and plugged in PXI modules into PXI-1033. I first power up PXI-1033 and than power up laptop (with Express Card in it). Laptop can not start, again can not, blue window, and at last start. In MAX is listed PXI chassis with bridge and all modules, but mx is not listed and I can not use it from LabVIEW. What is the problem?

    Hi,
    To clarify, do the PXI modules show up under DAQmx devices?  What color is the Link LED on the 1033?  Do the cards all show up in Windows Device Manager correctly?  Also, are you able to power on the laptop successfully now every time, or does is have trouble booting each time you try and start it up?
    Have you inspected the MXI cable for bent pins or any visible damage?
    Thanks!
    Adam W
    Applications Engineering
    National Instruments

  • PXI-4351 and DAQmx?

    Hello,
    We are considering to buy a PXI-Chassis with an PXI-6229 for general measurement and two PXI-4351 for temperatur measurements.
    I already wrote a big library of VIs to use PCI and PXI-card undere DAQmx (almost 6 months of development).
    But I read in the specification of the PXI-4351 that this card is only supported by the traditional DAQ driver.
    Is it true, are may be the DAQmx 8.1 support the PXI-4351. If not, does anybody know if the card will be soon part of the DAQmx?
    Thanks,
    Risotto

    Risotto,
    the PXI-4351 works quite differently than a multifunction DAQ device and it comes with it's own instrument driver which is based on traditional NI-DAQ. The instrument driver was just updated to support LV 8. There are currently no plans to support NI-435x devices with NI-DAQmx
    Best regards,
    Jochen Klier
    National Instruments Germany

  • How to control internet sharing via MAC access control list?

    Hello,
    I know how to share the internet over the Wi-Fi. I know that there could be a password. But I need to control users by MAC addresses, just like in the routers. So, I want to give an access ONLY to a several MAC addresses which I'll write in some ?list?. But the main point is that the other computers, which are not included in that list, can't access my network.
    I figured out that it is nearly impossible to do via standard utilities in mac os, so is there any 3rd party software for such things?
    Thank you very much for your help!

    {quote:title=Matthew Morgan wrote:}
    You need to set this up with whatever your using as your wireless router.
    Yes, and I'm trying to figure out how to do it

  • How to control Logic Pro via iPhone

    Hi everybody,
    It's nice that finally Logic Pro X can be controlled via iPad but I'm still looking for an app which can be used with Logic Pro / Logic Pro X to load projects, record/play/stop and close it.
    Any suggestions?
    Cheers,
    SE-Noises

    I don't believe any of those apps allow you to "load' a project.... which was one of the OP's requirements..
    Am I wrong?
    This is why I suggested Touch OSC because you can literally configure anything using that app.. and for example.. have just a simple screen to load and save and then tab to a different screen for other customized uses...
    Of course, it will require some programming skills in Touch OSC but it will do it.. and you may have to do/setup certain things in Logic to make it possible... but with a bit of study and some help from the Touch OSC community, it will be possible.
    I am unaware of any 'off the shelf' app that will allow you to open a project in Logic Pro.. but again, I could be wrong?

  • How do I use hotmail via Blackberry services and not via phone network so not using up my data?

    Hi,
    I have a new Blackberry 9360 and am having trouble with it. They said in the shop that I can access my yahoo mail without using up my 250mb of internet data, so can access it using the Blackberry services rather than the internet. I can't work out how to do this and can only seem to use the email through the internet where the messages come into my 'Messages' on the 'Home' screen, therefore I'm using up my data every time I open an email message when it comes in.
    Can anyone please help me as I'm wishing I could go back to Nokia at the mo!
    Many thanks.

    Hi, thanks for your reply.
    They gave me the impresssion in the shop that I could access my existing yahoo hotmail, send and receive messages on it for free via the BlackBerry services and not use up my data allowance and they didn't mean the Blackberry email which is a different thing. Have they misled me with this?
    Many thanks for any advice.

  • How to control batch element process validation, transfer and purge

    Hello everyone
    You can protect confidential assignments from unauthorized update by setting the profile option HR: Enable Security for Batch Element Entry to Y. If you enforce additional security, you can prevent unauthorized viewing and updating of batch lines for the protected assignments.
    I have read this in a document from metalink basically what this Profile option does is that it disables the Assignment Set on the Batch Header Form.
    Now my question to you all gurus is that is there a profile option for setting up the Process button at responsibility level in a similar manner
    i.e. suppose i would like only some responsibility to Validate or Transfer or Purge the batch will that be possible?
    Kindly let me know what is the profile option for that??

    Just a quick one what is the property to be selected for a Radio button under action tab for form personalization ?
    For example one could use the following to disable the submit request button:
    Sequence: 10
    Type: Property
    Object Type: Item
    Target Object: WORK_ORDER.SCHEDULE
    Property Name: DISPLAYED
    Value: FALSE
    I want to know similarly how can a radio button be disabled???
    appreciate all your help!
    Edited by: 594647 on Jun 28, 2010 10:46 PM

  • How to control the timeout for StreamSocket.ConnectAsync(), and StreamSocketListener.AcceptAsync()?

        I can not file API to do this.Ray_ni

    Hi Ray,
    Here is a simple sample...
    async void btnGetData_Click(object sender, RoutedEventArgs e)
    // separated all this out so it is clearer:
    //Create a socket
    StreamSocket aSocket = new StreamSocket();
    //Cancellation token is inspected to determine if the async method should be cancelled
    CancellationTokenSource cts = new CancellationTokenSource();
    //In this case, after 2 seconds... signal cancel
    cts.CancelAfter(2000);
    //get the operation
    StreamSocketConnectOperation op = aSocket.ConnectAsync(new Windows.Networking.HostName("localhost"), "22112", SocketProtectionLevel.PlainSocket);
    //Create a task and pass the cancellation token
    Task aTask = op.StartAsTask(cts.Token);
    try
    //kick off the task and wait for a result!
    await aTask;
    catch(TaskCanceledException tcEx)
    string a = "Task Cancelled: " + tcEx.Message;
    catch(Exception theEx)
    string b = "Exception: " + theEx.Message;
    finally
    string c = "done, still might have had an exception though";
    Enjoy!
    -Jeff
    Jeff Sanders (MSFT)

  • How may control the volumen in microphone and speakers

    Hi all
    How may control the volumen in the microphone and speakers with JMF. What I need to do this?
    I need control this with JSliders component, for rice and lower the volument how in the microphone as in the speakers.
    Thanks for his help?

    waiting on the line

  • How to control the printer selection popup in SAP SCRIPT .

    Hi all,
    I have written a print program which is calling 5 different layouts forms and printing all the shipping related documents such as packing list, delivery note, shipping label etc . The print program is
    attached to a single output type ZEDM. 
    The issue is that for printing every document a pop-up comes for the printer selection and i want
    only one pop-up and all the document should be printed.
    Can anyone tell how to control the pop-ups.
    Thanks and Regards,
    Syed

    Hi,
    Open the form with dialog once. and then other forms pass ' ' to dialog parameter in OPEN_FORM .
    Open the form for printing
      Capture the return code
      Capture messages
    Other froms
    Open the form for printing
      Capture the return code
      Capture messages
    Whenever you have a new form use START_FORM
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device                      = 'PRINTER'
          dialog                      = 'X'
          form                        = p_fname
          language                    = sy-langu
          OPTIONS                     = p_itcpo
        EXCEPTIONS
          canceled                    = 1
          device                      = 2
          form                        = 3
          OPTIONS                     = 4
          unclosed                    = 5
          mail_options                = 6
          archive_error               = 7
          invalid_fax_number          = 8
          more_params_needed_in_batch = 9
          spool_error                 = 10
          codepage                    = 11
          OTHERS                      = 12.
      IF sy-subrc <> 0.
        w_retcode = 1.
        PERFORM protocol_update.
      ENDIF.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device                      = 'PRINTER'
          dialog                      = ' '
          form                        = p_fname
          language                    = sy-langu
          OPTIONS                     = p_itcpo
        EXCEPTIONS
          canceled                    = 1
          device                      = 2
          form                        = 3
          OPTIONS                     = 4
          unclosed                    = 5
          mail_options                = 6
          archive_error               = 7
          invalid_fax_number          = 8
          more_params_needed_in_batch = 9
          spool_error                 = 10
          codepage                    = 11
          OTHERS                      = 12.
      IF sy-subrc <> 0.
        w_retcode = 1.
        PERFORM protocol_update.
      ENDIF.
    CALL FUNCTION 'START_FORM'
        EXPORTING
          form      = w_fname
          language  = sy-langu
          startpage = 'PAGE'
          program   = sy-repid.
    Regards
    Krishna

  • How to control fan speed on Satellite A660-11M?

    please any body know how to control fan speed its always 69% and make bad noise and the cpu usage is 3% no at high processing i try advanced power settings but still runing at high speed

    > I hope u didnt expect that they were gonna stay at 0% like forever
    Of course I dont expect this. When you switch on the notebook CPU reach high temperature in few seconds only and you must not wonder if pretty high CPU temperature and fan activity will be shown very soon.
    I dont know what do you expect but it is logic that cooling fan will run. Maybe all time maybe will be cut off for short period of time but it will run permanently. I dont see any problem there. With cooling method option it can be reduced a little bit.
    And what is your question? I didnt understand what you want to know exactly.

  • How to control the line-in volume input via LabView?

    Anyone know how to control the line-in volume and balance input via LabView?

    I assume you are referring to audio line-in volume control and lerft-right balance...
    If so, then check out this thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000D83A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Look at the info near the bottom from Paul S & Spectre. They talk about "winmm.dll"
    -cheers-
    JLV

Maybe you are looking for