Forcing Relays via rs232

Hello everyone,
I’m new to Labview and i would appreciate it if someone could show me how to make, or use an existing Labview VI to operate via RS232 (ASCII or Modbus) an external Power Relay Output (Advantech ADAM 4069), in order to switch on and off a vacuum pump.
The problem is that no Labview VI or driver exists yet from Advantech. However, according to the manual I have to send simple hex command like 0x01 for Set and 0x00 for Reset, through a serial port.  
Product Page of Power Relay Output:
http://www.advantech.com/products/8-ch-Power-Relay-Output-Module-with-Modbus/mod_1-2MLDJ5.aspx
The event which will set or reset the relay is a dc voltage reading acquired by an internal PCI Multifunction Card, for which several VI’s exists.
Thanks in advance for any help!
Regards,
John

Hi Sebastian,
Have you tired contacting the manufacturer to see if they have drivers for LabVIEW and the particular model you are using? We do not have drivers available on our Instrument Driver Network but we do offer resources that can help you develop the drivers. Please refer to the following links for more information.
Developing LabVIEW Plug and Play Instrument Drivers
Development Tools and Resources
You can also submit a request for a particular driver.
Thank you,
Simran K
National Instruments
Applications Engineer

Similar Messages

  • Sending binary file via RS232 connection

    Hi,
    I want to send a binary file via RS232 connection but I have troubles reading the .bin file and then converting the data to string in order to send it via RS232. Any ideas how i can deal with this?
    Thanks in advance,
    IG. 

    It is hard to help then you do not post any code. I suggest you go to the toolbar then help. Then you select Find Examples. Search for files. Also since you are new to Labview always have context help enabled. Both tools are important if you want to learn Labview. Feel free to post again if you are stuck.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Agilent 34401A multimeter to PC with Labview driver via RS232

    Hello!
    I am trying to measure a voltage with Agilent 34401A multimeter connected to PC via RS232 cable. I installed the driver. When I am starting Read Single Measurement.vi. It gives me an error:
    Error-1073807346 occured at Visa Open in Agilent 34401.lvlib: Initialize.vi->Agilent 34401 Read Single Measurement.vi
    Possible reason(s):
    Visa: (Hex 0xbFFF000E) The given session or object reference is invalid. 
    I would like to ask, how can I adjust my system to use RS23 with Agilent 34401A, if it is possible? If not, should I get GPIB card and cable?
    Thank you!
    Yulia.

    LabVIEW already comes with a driver for the 34401 pre-installed, so I'm not sure I understand what you installed. The pre-installed driver is in the Instrument I/O >> Instrument Drivers >> Agilent 34401 functions palette.
    As for the control that Dennis is referring to, it's the VISA control.
    As for the VISA version, you should have received a set of driver CDs along with LabVIEW. That will have the minimum VISA version required. Don't remember off the top of my head which version it is. Probably something like 4.1.
    Attachments:
    visa.png ‏42 KB

  • How to communicate via RS232?

    I am trying to program an sbRIO-9606 to communicate with a Matrix Orbital LCD display via RS232.  I have NI-VISA 5.4.1 and NI-VISA Server 5.4.1 software installed on the sbRIO.  But I am not seeing any COM ports to use to communicate.  Is there other software I need?  Or is there a resource where I can find some instructions about this?
    Solved!
    Go to Solution.

    Found it!  
    I also needed the NI-Serial RT 4.0.0 installed on the sbRIO.  

  • The sampling rate of Multimeter Protek 508 via RS232

    Hi everyone. I have the multimeter Protek 508. I want to take the data from it via RS232. The default detail of RS232 is:
                    Baud rate: 1200
                    Data bit: 7
                    Stop bit: 2
                    Flow control: None
    I write the code and get the data from it. But i only have the sampling rate is 2 data per second, that mean 500 ms per data. I want the sampling rate more than that. Can anyone help me to solve this problem. 
    Thank you.
    Attachments:
    186148720-Multimeter-Protek-506-pdf.pdf ‏553 KB
    Protek 508 RS232.vi ‏35 KB

    You are probably getting everything out of this device that you can. First, it is old, make that, very old. Back in the day, it might have been quick, but that was then. This is now.
    Second it's a multimeter. Very often meters like that would do running averages to make the reading appear more stable. That averaging slows down the rate at which you get new data.
    How fast are you needing to acquire data?
    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

  • Need to control waterbath temp using labview via RS232

    HI,
    I am new to labview. I have labview 6.1. I need to control a thermo RTE7 water bath temp.  controler using labview.
    The water bath has to be connected to computer via RS232 port and the commands have to be given via binary values.
    The users manual for the bath has "hex" bytes that are to be converted
    to binary values to be passed to bath. If anyone has done this before
    or anyone can help me on this please let me know. Thanks,

    Use simply the recommandations given in the RTE manual. You don't have to convert to binary : that's something done by the hardware.
    For instance, to send the temperature setpoint to the controler, you have to send a byte string such as
    CA 00 01 F0 02 01 2C DD, where CA 00 01 is a header specific to the type of serial link you are using,
    F0 is the set temperature command,
    02 is the number of bytes expressing the temperature that you are about to send
    01 0C is the temperature in tenths of degree (here : 30°C = 300 tenth = 010C$
    DD is a check sum byte.
    The corresponding labVIEW program is as follow :
    Of course, do not forget to initialize the serial port before writing the string !
    Message Edité par chilly charly le 10-21-2005 06:21 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Water bath.png ‏4 KB
    Water bath.vi ‏28 KB

  • Comment envoyé une donnée via rs232 avec labview

    Salut, comment envoyé une donnée via rs232 avec labview ?
    Hello, how given sent via rs232 with labview?
    Solved!
    Go to Solution.

    You can use the LabVIEW example for "Basic Serial Write and Read." In the English LabVIEW it is found here:
    Vous pouvez utiliser l'exemple LabVIEW pour "SerialBasic écrire et lire." Dans le LabVIEW anglais, il se trouve ici:
    Zach P.
    Product Support Engineer | LabVIEW R&D | National Instruments

  • Communicat​ion via RS232 with a Kollmorgen Servostar 300 using LabView.

    Hello,

    Sorry I am new posting a message here and I post it before I was able to describe my problem.
    I have a Kollmorgen Servostar 300 to control an AKM24F motor and I would like to send the instructions to the controller via RS232 using LabView. I think I had achieved communication from a PC to a Servostar 300 using LabView via the serial port.
    So far I have setup in LabView the configuration of the RS232 (8 bit, no parity, baud rate 38 400), the address of the servostar (ADDR 0), the way the servostar should respond to the host (PROMPT 1) and the error flag (MSG 1), and no error had been detected when I run the program. I should mentioned that after I sent an instruction such as ADDR 0 terminated with a carriage return, I set a delay time of 150 ms, then I read the amount of bytes that are in the buffer, and then I read the buffer, as I mentioned no error message has appear and the ADDR 0 instruction is read from the buffer. Following the same procedure I sent an instruction to move the motor but nothing happens.
    So far I am not sure if the way I am trying to communicate with the servostar is the correct or if I am missing something, any guidance that anyone my give would be greatly appreciated.

  • DMM MAS345 via RS232 serial comunication

    i have a problem almost like u,and i want to know if there is someone who can help me.I want to send data from a DMM MAS-345 via Rs232(my data settings in labview are baud rate=600,data bits=7,parity=none,stop bits=2,flow control=none,delay before read=10000ms) ,and i don't know why does it showes an error when i try to run the application(error -1073807202).I use like example VISA configure serial port,and i don't know if is wrong!!!I will appreciate if someone can help me.
    Attachments:
    Basic Serial Write and Read.vi ‏34 KB

    Here is some help for you 
    MAS345
    data format: 7n2 at 600 baud (7 bits, no parity, 2 stop bits).
    Control lines:
       DTR and RTS lines are used to power the TX line: RTS is clear
       for -12 supply; DTR is set for +12 supply. Data transmission is
       solicited sending whatever character to the RX line.
    Data string format:
       MAS-345 sends a 14 bytes string with:
             <mode>< ><sign><value>< ><units><return>
       <mode>:  two bytes with the oerating mode: DC, AC, OH, CA, TE ...
       <sign>:  one byte with - or space
       <value>: five bytes with four digits and one decimal dot.
       <units>: four bytes with the units: mV, A, kOhm, nF ...
       <return>: '\r'
       One space is inserted between <mode> and <sign>, one between
       <value> and <units>.
       The data string (without the '\r') is sent to the output device.
    The next question is of course How Can I Control the DTR and RTS Serial Lines in LabVIEW? It is easy take a look here
    http://digital.ni.com/public.nsf/allkb/1ECEFAA7AD52994986256966005356EA
    Good luck
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Communicating via RS232

    Hello,In my project I have to log data from ABB SENSORS,communication is via RS232.As iam beginner,Please let me know how can I do this, any examples are welcome.
    Thank You

    Navigate to C:\Program Files\National Instruments\LabVIEW 7.1\examples\instr or wherever you have Labview installed. Look for smplserl.llb. In this library are several examples on how to use the serial port. This should help you get started.
    - tbob
    Inventor of the WORM Global

  • Steppper motor control via RS232

    hii
    i am new to this stepper motor controlss section.
    i am using vaccum compatible stepper motor .. the whole manual of this is ayyached alongwith..and the program made by
    me is also attached along with..i had run the other stepper motor with the same code..i do not know where is the problem..
    please help me..
    thanks
    do not hesitate to give kudos

    Hey Sahil,
    Thanks for posting on the forums. Hopefully this was the thread you were referring to in the Engineer Awesome ni.com/community group discussion. Sorry that you did not receive any feedback from your issue, that is fairly rare.
    Anyway, in regards to the issue at hand. The fact that you are using a stepper motor is not as significant as the fact that you are communicating to your instrument (in this case I would image that it is your motor controller/drive) via RS232. I hate to point you to another resource, but the instrument control forum may be the most appropriate location for your query.
    In the Engineer Awesome discussion, you mentioned that you were able to control the device through a third party application but you were having trouble doing so in LabVIEW. My first reaction after looking at your code is termination characters. Does your controller expect any sort of termination character? Also, are you sure that you are sending the same commands via LabVIEW as you are in the third party application? If you use a port sniffer application to monitor the traffic over your RS 232 connection when your third party application is running and compare that to when your LabVIEW code is running (you could use NI SPY for this when you are using NI VISA), how do the two situations compare.
    If I had to guess, I would think that you are not sending commands/termination characters to your instrument that it is expecting.
    Lastly, a more detailed description of what your issue is, what you have tried, and what is and isn't working would really help everyone understand what is going on and how to help. As it is, it is unclear what the issue is or what you are trying to accomplish.
    Hope this helps.
    -Ben
    WaterlooLabs

  • Fluke PM6304 controlled with LabView via RS232

    Hi,
    we're going to control our Fluke RCL Meter with Lab View via RS232.
    Does anyone has experience and show sample code?
    I failed already to make a terminal connection between my PC and the PM6304
    Thanks for comments, maximint.

    Okay, here goes. Once upon a time there was just serial and gpib. Each used completely different hardware,protocols, etc. and there were separate drivers for each. Years ago, a new instrument type was introduced. Based on a VME backplane, these were instruments on a card called VXI (VME with instrument extensions). So, a whole new low level driver was required. The makers of VXI, realizing that the first VXI instruments were the same as their GPIB instruments without a display or power supply, thought that it would be nice if the software that had been developed for the GPIB instruments could also be used for the VXI version. Several vendors, including NI, came up with something called VISA (Virtual Instrument Software Architecture). This was an API that united GPIB and VXI. If you wrote an instrument driver with VISA Writes and VISA Reads, it would work with either type of instrument. The VISA driver itself would determine the actual type of bus and handle all of the low level details. One of the goals of all these vendors was to also make it easy for users to change from GPIB to VXI instruments. While this didn't really happen, the idea of VISA caught on and became very popular and sort of a standard in many places. Eventually, other common forms of instrument busses were added to VISA. Among those are serial, ethernet, usb, pxi. All of the instrument drivers written by NI now use VISA.
    I downloaded the driver for the instrument you need and had a look at it. It really doesn't have much, it's very old, and uses the GPIB functions (not VISA). Since there were so few functions, I went ahead and replaced the GPIB Reads and Writes with VISA Reads and Writes. That will give you a start. You will also need to add some code to initialize the serial port. A great place to look to see how this is done is with an example that has shipped with LabVEIW for years. The HP34401 DMM driver that is on the instrument driver palette is a VISA driver with special support for serial. All of the serial setup is done in the initialize subVI. The type of interface is determined and if serial, baud rate, parity, etc. are setup. Another important setting is a termination character. Serial instruments usually require a CR or LF at the end of each command. You will need to determine what your instrument requires.
    Attachments:
    flpm6304.llb ‏141 KB

  • HP34970A configuration via RS232

    How do you get LabVIEW to talk to and configure and HP 34970A datalogger via RS232 connection?
    We are new to LabVIEW and need basic help with getting it to work with our equipment.

    First of all, do you have the LabVIEW driver? If not, go to http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/e4c553c139f78062862568ab005fba3c?OpenDocument and get the driver that matches your version of LabVIEW. Next, make sure you have the right serial cable. Next, configure either the instrument or HP34970A Initialize.vi so that the communication parameters are the same (i.e. parity, baud rate, etc.). Next, pick a VI under the Getting Started pallette of the instrument driver. Pick one that similar to what you need to do and what kind of hardware is inside the box. Next, change the instrument descriptor to be ASRL1::INSTR (if connected to comm 1). Next, run the VI and see what happens. I use a lot of these things but they're all GPIB because
    I'm not masochistic enough to enjoy serial communications. I do seem to recall seeing a post that the instrument driver has the wrong termination character for serial. If you can't get the LabVIEW driver to work, try talking to the instrument using hperterminal. Good Luck.

  • BUG: Forced Restart Via Creative Cloud Desktop Application Installer

    Hey guys, I was trying to install a few adobe products and have been encountering strange errors.
    The following bug has been experienced when trying to install Adobe Application Manager, Adobe Photoshop, Adobe Dreamweaver, and Adobe Illustrator.
    Program will install to about 44% or so and then say "extracting". After extraction, it displays the %installation, increases about 4-10%, then forcefully restarts my computer.
    According to my computer, no errors are present (looked in the events log)
    Here are the following things I have tried to remedy this issue.
    Running windows update for all general updates and going to intel to update graphics driver.
    1.  a. Removing all Adobe applications via control panel and using the Adobe CCleaner utility.
         b. Re-installing Creative Cloud w/ administrator privileges
         c. Attempting to reinstall application.
    2. Tries the above but in Safe mode.
    3. a. Looked at computer resources to make certain CPU wasn't somehow overheating.
        b. CPU temperature was not adversely affected nor did the utilization rate of any resources(CPU, GPU, Drive, Network) exceed 25%
        c. Viewed the event logs to determine if any errors were present. The even log displayed no errors had occurred during any of the forced restarts.
              On a side note- I found that despite Skype being told not to start-up on boot, it is actually reducing my boot time by 6 seconds!
    4. Went into advanced settings and unchecked the box that allows windows to automatically restart on error.
    I am at a loss as to why it is forcibly restarting my computer. Adobe products are the ONLY products that I have experienced any issues with during installation.
    However, in order to remedy this issue here is some information regarding computer specs.
    OS Name
    Microsoft Windows 8.1
    Version
    6.3.9600 Build 9600
    Other OS Description
    Not Available
    OS Manufacturer
    Microsoft Corporation
    System Name
    ZAYIK
    System Manufacturer
    Dell Inc.
    System Model
    Inspiron 5520
    System Type
    x64-based PC
    System SKU
    Inspiron 5520
    Processor
    Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz, 2201 Mhz, 4 Core(s), 8 Logical Processor(s)
    BIOS Version/Date
    Dell Inc. A14, 5/13/2013
    SMBIOS Version
    2.7
    Embedded Controller Version
    1.01
    BIOS Mode
    UEFI
    BaseBoard Manufacturer
    Dell Inc.
    Platform Role
    Mobile
    Secure Boot State
    On
    PCR7 Configuration
    Binding Not Possible
    Locale
    United States
    Hardware Abstraction Layer
    Version = "6.3.9600.17196"
    User Name
    Zayik\ZAYIK\David
    Installed Physical Memory (RAM)
    8.00 GB
    Total Physical Memory
    7.87 GB
    Available Physical Memory
    5.69 GB
    Total Virtual Memory
    9.12 GB
    Available Virtual Memory
    6.76 GB
    Page File Space
    1.25 GB
    Graphics Card
    Intel HD 4000
    This is quite a fatal bug and I am hoping we can find a solution so others will have a place to turn to if they encounter the same bug. 

    Hi pillguy,
    Please let us know the network environment are you in?  Which operating system are you using?  Do you utilize a proxy server or a software firewall?.
    Please try the steps mentioned in the kb: http://helpx.adobe.com/creative-suite/kb/remote-server-responding-installing-aam.html / http://helpx.adobe.com/creative-suite/kb/error-update-server-repsonding-cs4.html .
    You may even try download using different internet connection if possible.
    Regards,
    Romit Sinha

  • Add Multiple Domains as an External Relay via powershell from a list

    Hello, 
    I have a requirement to add a few hundred external domains as a relay and would like to accomplish this via powershell. I'm familiar with the command to submit 1 at a time but would like to have it read them all in from a list if possible. Any help would
    be great! 
    Thank you, 
    Eric 

    Hello Eric,
    Just replied similar question in a thread, you can refer to that...
    http://social.technet.microsoft.com/Forums/exchange/en-US/b84cd2e7-5fb3-4a1d-9bcc-41acdb7142a2/adding-multiple-accepted-domains-with-importcsv?forum=exchangesvrdeploy

Maybe you are looking for

  • Updates for Acrobat 9 Pro

    Recently had major crash.  Had to uninstall / reinstall Acrobat 9 Pro.  Where can I find updates from 9.0 to 9.5 or most recent?

  • JDBC Adapter SQL Query (DBLookup)

    Hi @all, at the moment, I try to generate an JDBC request-message (message type) via integration designer of sap xi 3.0. The target is to implement an datebase lookup with the jdbc adapter. Here the SQL-Statment to represent: select *  from <table> w

  • Ogg asm password including asterisk logon denied

    when trying to deploy extract on source database (10gr2) while asm password is passwor*d. logon by sqlplus sys/passwor*d@asm as sysdba successfully. However start extract with parameter file as follows: EXTRACT extte SETENV (ORACLE_HOME=/oracle/app)

  • Cannot set up Source for a view

    Hi, I am trying to set up a source for a view which I have created in the database. But when I try to do that I get this error. database link of same name has an open connection PL/SQL: unhandled user-defined exception PL/SQL: unhandled user-defined

  • Weird behaviour of WebI Report

    Hi All, I have created a Webi report on top of BEx Query. Report is working fine,but when we ran the first time it is throwing an error stating that  " No Data to be displayed", but if i ran again( with same prompt values) then it is showing me the d