Control solenoid from labview

Hi all,
I am having a solenoid valve to be controlled from my labview program from a computer.
I already have an interface that is built to switch the solenoid valve on/off.
But I dont have any information on the interface. The interface is provided with a PCI DIO 96 card to communicate with the computer.
The interface has a "ni sc 2054"  (24 VDC) accessory and its connected to a "Grayhill 16 channel rack". I couldn't really understand the interface.
I need to switch the solenoid on/off using the PCI DIO 96 card. Can I do that without the knowledge of what's in the interface? The interface is working with a Windows 98 system but there is no way to view its code or make it work on the system with Windows XP. Does labview provide with this abstraction so that I can use DAQ and operate the solenoid without knowing what it actually does?
Or its ok even if I have to purchase a new hardware to control the solenoid. Any solution which doesn include the interface or with a new setup in the middle is also appreciated.
I have attached a snapshot of the circuit inside the interface, but I dont think if it will be really useful.
Thanks for your help.  
VJ 
Attachments:
Picture 048.jpg ‏1101 KB

Hi Vijay,
Looks like you've got an opto isolation board populated with "output" opto relays. (Those are the red blocks on the Grayhill board) 
Your Opto board is connected to a "Breakout" board, and that is connected to your DIO 96 card. 
This is a setup we use all the time.  You shouldn't need new hardware to operate your solenoid valve.  
I'm not sure from your question if you want to add a new solenoid to your existing hardware, or if you just want to control an existing one.
If you've already got your solenoid wired up, you need to know what channel (line) it's on.  The numbers beside the red blocks on the Grayhill board indicate which line each block is on. 
An easy way to test your wiring connection without writing any code is to start Measurement and Automation Explorer.  There should be a link to it from your National Instruments Start menu. 
Start that program, and look for something called "Devices and Interfaces" on the left hand side.  Under that menu, you should see some reference to your DIO 96 card.  If you select that, on the top of the right hand pane you should see something called "Test Panels".   When you click on Test Panels you should see something similar to the image below.  (Your's may look different if you're running an older version)
Click the "All Output" button, and then click "Start".  Then move the switch sliders to select On or Off.  Make sure you aren't going to damage anything by turning on the wrong output if you don't know exactly which one your solenoid is connected to. 
As you turn outputs on and off, you should see the little red LEDs on your Grayhill board lighting up.  Once you know which Port and which Line your solenoid is on, you can then write LabVIEW code to turn it on and off. 
Good luck.
Message Edited by pallen on 03-05-2009 09:34 AM
Patrick Allen
Attachments:
testpanel.jpg ‏36 KB

Similar Messages

  • Control OpenOffice from LabVIEW

    Does anyone know how to automate OpenOffice applications from LabVIEW?

    Are you wanting to have labview automate open excel or word or access. If this is what you are asking then here is an example for word.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    View_word_document_file.vi ‏29 KB

  • Control keypad from labview

    Hi,
    I would like to connect a keypad 4x4 and monitor it from Labview.
    In the past I implemented a simple algorithm which scans the rows and coloumns of the matrix, but is there an easier way to do this in Labview?
    I don't mean a virtual keypad, but an actual one. I would like to use Crio with RT as my controller
    Thanks,
    Eyal.

    Hi Braxat.  WHy don't you use the parallel port of your computer?  it's a mini-DIO port.  Just to give you an idea. 
    To just read a keypad, it's a really expensive solution to use c-Rio
    Kind regards,
    BJorn Conjaerts
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • Control exe from labview

    I was wondering is there a way that I can run and pass parameters to exe file from the labview program. If yes then please enlighten me..
    In anticipation of reply
    cheers
    Priiyank

    On the Communication palette, select System Exec. The on-line should explain how to use it.

  • Control a LabVIEW GUI exe from LabVIEW

    I have a vendor supplied LabVIEW.exe application, it's used to control a device that's part of an automated manufacturing process.   At present we need to manually run the exe from the control PC , read data, make a decision, then input a few values, button clicks etc.   I'd like to automate this step.  Without having the source code for the application, what options do I have for controlling this application from LabVIEW?
    I tried using System Exec.vi, but I got beat when I needed to right-click on a graph indicator to retrieve data.  LabVIEW applications don't accept SHIFT+f10 for right-click.
    What other methods can I use to communicate with this application?

    Dennis_Knutson wrote:
    On the other hand, if the specifications that you provided to the software vendor did not include these requirements, then the vendor would be quite reasonable in asking for additional money to make the changes. You should also have required that the source code be provided.
    Of course, this is true. I was making an assumption, that since the OP has experience in LabVIEW, these sort of things had already been taken into consideration by the buyer.
    Would source code normally be provided when someone purchases an EXE? If there are proprietary pieces in there (algorithms, etc.), I thought it would be more common for the vendor to just provide hooks to the control and data functions.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • How to access the Custom Data type variable given in Expression edit control To and From LabVIEW

    Hello, I would like to know how to access the custom data type variable given in the Espression Edit Control from LabVIEW and vice-versa
    Say, the FileGlobals.Reference_Handle (Custom Data Type Variable) contains the
    VISA I/O session (Which in turn contains VISA_DeviceName: String, Session: Number),
    Channel1: Number and
    Channel2: Number
    I am expecting the user to give FileGlobals.Reference_Handle as the input at the ExpressionEdit Control in the edit screen of the VI Call.
    I would like to know how to get the values of this custom data type to LabVIEW?
    Say, if I have the Cluster in LabVIEW like VISA I/O session (Deive Name and Session Number), Channel1 and Channel2
    how do i need to set this cluster to the Custom Data type variable in TestStand?
    Thanks and Regards
    Prakash 

    Hi,
    TestStand to LabVIEW: i didnt understand what you r trying to achieve. But if you are using references, Use Property nodes and Invoke nodes to achieve what you want in LabVIEW.
     LabVIEW to TestStand: check the image below: You need to click the button next to 'container'. I have used a cluster output in the VI.
    Hope this helps
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/
    Attachments:
    1.JPG ‏187 KB

  • Controlling Tera Term from labview

    Hi guys
    In my new project I would like to send commands to Tera Term Pro. Tera Term then responds to the commands from Labview the same way as I would type the commands directly into Tera Term.
    I'm able to use cmd.exe with the SystemExecute Vi, but for my program I would like to do the same with Tera Term.
    I would like to send commands with a stringcontrol and get the respond in a string indicator, all in labview. Tera Term should run invisible in the background.
    So for this I thought using ActiveX would be the best. I have downloaded tera term pro.
    In Labview I create this from the ActiveX Palette and select browse on the ActiveX Class.
    In the Tera Term folder I find many .dll's:
    I have tried to open them all, but I only get this message:
    Does this mean it's impossible to use Tera Term with Labview like I described?
    I'm not so familiar with ActiveX, only with Excel (which is in the ActiveX Class list), so I might have missed something.
    My goal was to create a sub-vi which does the communication with Tera Term, the same way SystemExecute VI is built.
    Regards,
    Even
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Solved!
    Go to Solution.

    Sorry for this late reply. I have been using Teraterm Macro (not Teraterm Pro serial terminal) to interface with my previous provisioning app written in LabVIEW.
    Teraterm Macro is such a lifesaver in that it can easily interface with your development boards that need: (1) RS-232C, (2) FTP, (3) TFTP or (4) SSH connections. The plain-vanilla 'serial' VI's are just that - serial port only and those need additional code to work reliably. If you need a good serial port VI try Prabhakant Patil's Hyper Terminal for LV 2009 and newer. You will find an ZIP or VIPM package from LAVA (lava.org). I have used his versions countless of times and is 10x more reliable than provided in LV examples.
    You will indeed use the System-Exec.VI to call Teraterm Macro since *sigh* no one has written a wrapper for the DLLs (as you mentioned they are built for .Net framework. I have talked with the current developers and they are willing to give anyone the pass to extend Teraterm for LabVIEW so C++ devs out there with good LabVIEW knowledge should re-build the DLLs as static libraries that can be called from within LabVIEW. For now, this is the only way and it is a kludge - but it works - just not in a way you expect.
    Here you can see that I am building the command line arguments before I call the system-exec node. Refer to the excellent how-to instructions at:
    http://ttssh2.sourceforge.jp/manual/en/macro/commandline.html
    Teraterm Macro will be spawned (opened) like it would when called from the command line. Its std input & output are not tied to your VI. You can merely pass arguments to the system-exec node. This is the reasons why we need someone to recompile the Teraterm Macro DLL as a static library (anyone?) so we can build a wrapper VI around the functions. Then its std inputs and outputs can be tied to LabVIEW's controls and indicators - hence, it becomes LV native.
    -Relativity

  • I am using Activex controls from Labview to log the data into Excel spreadshee​t. My applica

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?I use Excel Active X control frequently to save and then analysis test data. In order to properly destroy the "Excel.exe" process it is important to close all the automation refnums opened when using the Excel active x controls. After completing your desired Excel task wire all the refnums in reverse order they were created into the Automation Close function in Functions->Communication->Active X pallette. This includes all Application, Workbook, Worksheet, or Range refnum. Missing even one of these refnums will mean that Excel.exe will still persist in the task manager and cause problems when excel is opened from outside LabVIEW. I hope this helps.
    Stephan

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • Controlling multiple signal generators from labview

    Hi,
    Is it possible to control more than one signal generator at the same time from labview through the 10 MHz clock signal(or any other possibility) on a 33250 signal generator ? I need to maintain the same frequency on both of them but be able to change the phase on one.
    I understand this is possible via ethernet.
    Any suggestions...
    Thanks
    Sri

    Hi Sri,
    Thanks for posting on the NI forums.
    As gwd noted this device has an RS-232 port and indeed does have a GPIB interface, but no ethernet port as per the page three of the 33250A's spec sheet (link below). This means that the instrument can be controlled from your desktop PC via an RS-232 (COM) port (one port per instrument), or via a GPIB card in your PC. As GPIB is a 'multidrop' communication method you will only need one GPIB card to control both instruments in this case.
    http://cp.literature.agilent.com/litweb/pdf/5968-8807EN.pdf
    I assume you are programming in LabVIEW as this post in the LabVIEW section. There is an instrument driver provided for the LabVIEW environment on the NI website which should make it easier to control your instrument(s) (see link below).
    http://sine.ni.com/apps/we/niid_web_display.drv_results?p_app_area=&p_man=agilent&p_keywords=33250&p...=
    I hope this helps. all the best,
    Rob
    Field Sales Engineer | National Instruments | UK & Ireland

  • Using LabVIEW to control an object in Blender/ importing an object from Blender and controlling it in LabVIEW

    Hi, 
    I'm just trying to start a new aspect to my project whereby I would control a 3D graphic of a human character using inertial and magnetic sensors. 
    2 potential options I am considering are to create the character in blender, import it to labview (.stl, .dae or any other suggestions?) and control it from there using my 3D orientation algorithms. Has anybody done anything like this?
    OR
    Export the 3D orientation data to blender perhaps using UDP sockets or any other suggested technique anybody has(?) and then control the orientation of the bones of a 'rigged' character.
    So basically if anybody has any experience of controlling a 3D graphic with LabVIEW data all help would be appreciated, better again if it was using Blender! Thanks in advance 

    Looks like an interesting project. I don't have experience with either of your suggestions, but I think the second one is more practical. My understanding is that the 3D display in LV isn't that great (although I don't have actual experience with it). The only modification I would make is to use TCP instead of UDP, which seems to make a lot more sense.
    I'm assuming there should be quite a few examples online for how to write Python code in Blender to receive external commands and translate them to something in your blender scene (movement, in your case) and then you simply have to write the corresponding code on the LV side and make sure the protocols match. I would suggest you create a simple ASCII protocol. One thing to note about TCP protocols is that it's useful to have the beginning of the message encode the length of the rest of the message (let's say the first 4 bytes to encode a U32 number). That way, you read N bytes for the length and then know exactly how many bytes you have to read for the rest of the message.
    Try to take over the world!

  • Can I control Unholtz-Dickie VWIN ver. 4.61 software from Labview?

    Unholtz-Dickie VWIN is a Window-based application that controls a vibration system. I want to coordinate the vibration control with the acquisition of data from the unit under test.

    Hello,
    I just did a quick websearch and wasn't able to find any information on getting LabVIEW to work with this VWIN software of which you speak. If this software has ActiveX capabilities, you should be able to communicate with it from LabVIEW without any problems...LabVIEW has the ability to control other programs with its ActiveX tools. If your VWIN software does not support ActiveX, however, your options are rather limited...you could use the "System Exec" VI in LabVIEW to launch the VWIN software from LabVIEW, but you would have no control over it from LabVIEW.
    There are other ways of communicating between programs (DLL calls, simple ASCII text file writing, etc.), but these would not be as easy as ActiveX. You may want to contact the manufacturer of this softwar
    e and ask them if they known of any of their customers attempting to control the software externally, and if so, what methods they used.
    I wish you luck with your application. Also, in the future please post LabVIEW-related question in the appropriate LabVIEW forum.
    Have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How can I control a base ACCESS from labview ?

    Hi,
    I'm working on a projet on labview and ACCESS and I want to say how can I do to control a database from labview ???
    Thanks in advance
    Cordially,
    Hasna

    On Tue, 9 Jul 2002 02:50:12 -0700 (PDT), kiki wrote:
    >could you give me more informations about Database Connectivity
    >Toolset ???
    >
    >I notice that we can write data in excel file thanks to an ActiveX but
    >is it possible with a table ACCESS ??
    DCT it's a suite of VIs (I think Optionals) the contains anything you
    need to connect to to a DB.
    I used them with access... since I'm not really happy with performance
    (read/write max 50 records/sec) it's quite quick to develop
    applications that read/write DB.
    (Write a Cluster it's trivial.... plug the cluster, prepare a table
    with fields of the same type and the same order, yo've did it)
    I think you can also use ActiveX, but I've never did.

  • Controlling dialog boxes in a DIAdem script from LabVIEW

    I have a DIAdem script that prompts the user for the data file it will process. The datafile was created from a labview test routine.   I can now run the script from LabVIEW using the "DIAdem Run Script.VI", but in the interest of automation, I would like to have LabVIEW place the filename in this dialog.  I would like to keep the dialog in the script, since sometimes we run this script manually. (without LabVIEW)
    Bill W.

    Bill,
    Which dialog are you using to prompt for the file name?  It
    appears that you cannot send any information to the script through the
    Run Script.vi.  However, you can call automation commands using
    the "DIAdem Run Automation Command.vi".  If you want to pass data
    to the script, then you can set a Global Variable, or a DIAdem Script
    Variable.  As an example, you could use the global variable, T1,
    and send "T1 := 'myfile'".  When the script is executed, that
    variable will be accessible within the script and it will be set to
    "myfile".  You could also set the FileDlgName variable to your
    file name.  Then it may be possible to send those variables to
    your dialog so that they are automatically populated.
    Good Luck!
    Tyler Tigue
    NI

  • What is the easiest way to open an application from Labview?

    I need to open an application from labview and depending on a user's selection, load one out of a group of files for the application that is opened. I need to know what is the best or easiest way to open an application and load a file that is used by the application based on a selection.

    Here is the response that I got from Cognex when I asked them about how to do this. Do you understand what they are talking about?
    In order to do something like this you will probably want to look into the Display Control/SDK for In-Sight. The Display Control gets installed along with In-Sight Explorer and includes a control that can be used in an environment like Labview to communicate with In-Sight sensors while the SDK is an enhanced version of the Display Control that gives you more control and functionality. I am not very familiar with the Labview environment so I will give some code snippets in VB.Net and hopefully you can adjust them as necessary. Specifically I see 3 possible avenues to do this:
     1) Using the Display Control you have access to many of the dialog boxes that are used in In-Sight Explorer including the Load Job dialog box. You can spawn this dialog box through a line of code similar to cvsInSightDisplay1.Edit.OpenJob.Execute(). I am not certain if the Labview environment will be able to spawn and display this dialog though. 2) With the addition of the SDK (additional purchase) you can directly access sensor properties including the job. There is a method called LoadJobFile to load jobs from on the sensor and LoadJobFileLocally to load jobs from the host machine. A typical line of code might be cvsInSightDisplay1.InSight.File.LoadJobFile("myjob1.job").3) If Labview cannot handle the dialogs and the SDK is not an option for you then you may still be able to do this using Native Mode commands. Native Mode commands are sent through a socket on the telnet port (typically port 23). Keep in mind that you will need to handle the username/password prompt and response when you first open the socket before issuing any Native Mode commands. The command to load a job file from the sensor would be the Load File command which would be a string similar to "LF myjob1.job". The Native Mode commands are documented in the In-Sight Explorer help file. 

Maybe you are looking for

  • How do I transfer an imovie from one mac to another and be able to edit it?

    I need to transfer an iMovie project from another mac onto mine and be able to edit it in its components...help!

  • Problem playing video made from final cut

    In my digital media class we use intel mac pros with the newest version of final cut pro. I made a 4 minute horror movie using a sony FX-1 HDV camera. When i exported it from final cut, i exported it as a quicktime using the HDV 1080i60 video codec.

  • Payment made

    My payment was made three days back and still the account shows zero minutes...seems quite unfair and unreasonable. Can Skype help?

  • Help me about the input data

    I have a input data(.txt) in form of: 0. 12,45,23 1. 23,10,15,21 2. 15,32,25 3. 1,25,36 how can I get the input stream such as for(i=2;i<=10;i++){ for(j=0;j<i;j++){ every line of input file that (the column_index mod i) =j for example i=2 j=0 then i

  • OAF personalization(adding a DFF)

    hi, i am trying to add a flex (descriptive) in a web page through oaf personalization . i refered OAF personalization guide . i cant able get the solution . the steps i tried , 1.click personalize page /cliclk on create item , in the personalize give