Serial RS-232 Comunicati​on in LABVIEW

I would like to know how to use the VISA blocks in LABVIEW 7.1 to perform a serial comunication using RS-232. I have a pH sensor that sends the pH level using the RS232 interface, how do I read this sensor with LABVIEW ?

What kind of ph-sensor are you using(manufacter)? Search on their homepage for LabView serial drivers
for the ph-sensor you are using, or earch for it on this website. If there are no Labview drivers
for this sensor you would need a programming handbook with all information about programming the
serial interface and write a LabView driver yourselve... better search for it first!
Greetings
Tom

Similar Messages

  • Need to build communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer

    Hi - I would like to build the logic in which it should accomodate the communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer.
    I want to do data transfer b/w host and RT through RS232 VISA portal whenever TCP/IP ethernet cable has been unplugged from the controller continuosly , it should keep on checking for TCP/IP link re-establishing also , when ever the tcp/ip link established again that time the communication should be using in that link only. This is accomplished by deploying the RT vi as execuatbale file. I made some logic regards to the above said logic , bur it was not working as much I expected.
    I request you to go through the attached two VI's and let me know , what I did wrong in that,
    Please do the needful.
    Attachments:
    TCP_Serial_Host.vi ‏33 KB
    TCP_Serial_RT.vi ‏41 KB

    even i am new to this topic and i am trying to get familiar with these protocols
    refer to tcp server/client examples in labview examples

  • Serial rs-232

    I have Keithley 6514 and trying to get data over rs-232. If you have same Labview VIs which cab be can modified, please send it to me. This VI will help me to get current data taken. Thanks.
    S. Saygi

    I still having problem. I wrote my VI and it seems to me ok. Basically, when I run it after reset the instrument and the VI it gives me the word following.’’ KEITHLEY INSTRUMENTS INC.,MODEL 6514,0893334,A07 Nov 29 2000 11:08:20/A02 /? ’’. But in the second run ıt gives me the time error. Meaning that I can communicate with the instrument. How can I read the correct values from the buffer through the serial rs-232? I run the loopback.vi that having no problem.
    In the VI, the read character is *IDN and termination is done by \r .Timeout value on VISA CONFIGURE SERİAL PORT is 500ms.
    On the other hand my serial connection is done by HAND MADE cable that ıt has all pins go trougth like 1 to 1, 2 to 2 ....
    Attachments:
    screenLook.doc ‏76 KB

  • When trying to work with Agilent 34401A multimeter (serial RS-232 connection), HP34401A Getting Started.vi gives always the message: "Error 1073807369 occurred at Old VISA Open ".

    Baud rate and parity are set correctly, RS-232 cable is also connected correctly. My QuickBasic program has no problems to read and write to the Multimeter. It is obviously a software problem: the same error is persistent if I disconnect RS-232 cable.
    I downloaded NI-VISA 2.6 for Windows 95/98/NT/ME/2000/XP frorm digital.ni.com and installed it. But it did not help.
    Thank you in advance
    Best regards
    Alexei Soloviev

    Hi Steve
    I have problems with the 34401A and serial communication. Do you remember
    where the error was in the code ?
    Thanks
    Klaus
    wrote in message
    news:[email protected]..
    > Alexei,
    > This may or may not help, I was tasked to do something similar
    > recently and found an error in their driver. The GPIB VISA worked
    > fine, but when I tried it on serial it played up. There was an errant
    > carriage return (or CR/LF I can't remember). GPIB liked one and Serial
    > liked the other. It always amuses me that we never have problems with
    > Quickbasic!.
    > If you want me to dig deeper give me a shout.
    >
    > Steve Watts
    >
    > On Thu, 24 Jan 2002 06:16:55 -0800 (PST), "Alexei V. Soloviev"
    > wrote:
    >
    > >When trying
    to work with Agilent 34401A multimeter (serial RS-232
    > >connection), HP34401A Getting Started.vi gives always the message:
    > >"Error 1073807369 occurred at Old VISA Open ".
    > >
    > >Baud rate and parity are set correctly, RS-232 cable is also connected
    > >correctly. My QuickBasic program has no problems to read and write to
    > >the Multimeter. It is obviously a software problem: the same error is
    > >persistent if I disconnect RS-232 cable.
    > > I downloaded NI-VISA 2.6 for Windows 95/98/NT/ME/2000/XP frorm
    > > digital.ni.com and installed it. But it did not help.
    > >Thank you in advance
    > >Best regards
    > >Alexei Soloviev
    >

  • Where is the serial key on the pack of Labview 7 Express??

    Where is the serial key on the pack of Labview 7 Express??

    Hi
    It can be found on a card within the box , there are usually two stickers (Self adhesive) to be attatched to the CD Pack or filed away for reference. It is not printed on the pack itself.
    Chris

  • Interfacing of RS232 serial devices through USB ports within LabVIEW 6.1 and Windows 2000 Pro?

    I have a data acqusition requirement of using 5 RS232 devices, but the motherboard i use only has two serial ports. However, it does have 4 USB ports. Does anyone know if it is possible to use these USB ports to input data from an RS232 device through a serial to USB converter?
    Does LabVIEW 6.1 support this under Windows 2000 Pro?
    Thanks in advance,
    Fraser

    Hi Fraser,
    I just moved an app to a new laptop and had to use a USB to serial comm adapter. At first try the app did not find the comm port.
    After sleeping on it, we downlaoded the most up-to-date driver for the device and upgraded VISA to the latest and gretest version.
    Everything worked fine after that.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • BUILDING A SERIAL RS-232 TO GPIB CONVERTER

    I am using an agilent hp-8648B signal generator and a hp-E4403B spectrum analyzer,both of them have a GPIB connector only.
    I want to control them by the serial connection-so I need to build a VI to connect by the serail and I need hardware to convert from the serial connection to the GPIB.
    Anybody have and idea how to do that? or reference to schematics of this circuit and software if needed?
    Thanks
    Tzviel

    And may I inquire as to the serial number of your LabView software? After all it is cheaper to....
    With all that high ticket Agilent equipment, a few hundred bucks for a GPIB card is a drop in the bit bucket.
    Just my rant, but why expend all that time building someone else's design, doing PWA artwork, debugging, writing drivers, etc.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Loss serial input with re install of Labview

    I have an existing VI that is trying to connect through Com 1 to an Emveco testing machine. The hard drive crashed and I am trying to re install LabView on a new hard drive. When I run the VI in the new installation, it does not seem to communicate to the testing machine. I have opened hyperterminal and can see the data coming in the serial port. I am not sure if I loaded the correct driver for serial communications and also I not not sure how to check to see if the serial comm. settings are right in LabView

    Hello -
    It appears that your hardware is working, as verified by hyperterminal. Therefore, the problem most likely is with the software.
    Are you receiving any error messages? Or does the serial port just appear to not communicate when the VI is run?
    What version of LabView are you using? Did you install the same version on the new hard drive?
    Does your program use VISA? You may not have VISA installed on the new machine and this may be causing the problem. You can verify that VISA is installed by opening Measurement and Automation Explorer and expanding the software list in the left column by clicking on the "+".
    Have you tried to verify serial communication in LabView by running one of
    the example VIs? Try to run the LabVIEW <-> Serial.vi found in the Example Finder >> Hardware Input and Output >> Serial folder.
    Additional Resources:
    The current serial driver for your Operating System is located here.
    This KnowledgeBase discusses some common problems with serial communication and possible solutions.
    Let me know if any of these suggestions solve your problem. If not, please provide more information and I will continue to research the issue. Have a great day!
    Becky B.
    Applications Engineer
    National Instruments
    Becky Linton
    National Instruments
    Field Engineer
    Office: 734-464-2463
    Cell: 248-709-2822
    Email: [email protected]

  • CAN I use the crio chassis serial rs-232 in the fpga interface?

    Is it possible to talk directly to the serial interfaces on a cRIO chassis (like the RS-232 port on the 9074) from the FPGA interface, or is this resource only accessible from the RT environment?
    Many thanks!
    -Will Berstche

    Hi,
    it is only accessible over RT.
    Kind regards
    Heinz

  • Serial Communication using Labview with Tiva C launchpad ARM cortex M4

    I am able  to comunicate perfectly  between labview and launchpad at 9600 baudrate..When i trying to communicate with bauadrate of 115200 labview gives error "specifed state of attribute is not valid"
    I tried to communicate with serial monitor comes with arduino and its well work with it at 115200 baudrate...
    Awaiting for your replay!!!

    piZviZ wrote:
    Only data rate working is 9600  between labview and launchpad(arm cortex m4).Where all data rates work between Arduino serial port monitor and launchpad(arm cortex m4).
    Since the only thing that changed is the Launchpad, then that must be the issue.  Are you sure this device can handle more than just the 9600 baud rate?  Are you sure you are even setting the baud rate on this device?

  • I am trying to reset a serial device through serial port ,MAX is able to do it but the same command is not working in labview

    max can do it but labview cant

    - Run NI Spy Tutorial
    - Reset the serial device in MAX
    - Run the LabVIEW code
    - Post the *.spy file.
    The spy capture will show any difference in function calls to the driver.

  • Reading controller data into LabVIEW through serial connections to controllers?

    I'd like to read data from environmental chamber controllers (System Plus) into LabVIEW through RS232 connections.  Has anyone done something similar?
    I see interfacing with the serial controllers as the biggest obstacle and although not directly related to LabVIEW programming, I'm hoping someone here can give me some advice or resources on how best to do so now days.
    My first thought is to write a program with VB or C++ to act as a terminal and write the data to a text file for LabVIEW to poll.  Aside from using Telix decades ago to work with BBSes, my only other serial experience consists of interfacing with a Kiethly multimeter using a C++ program. 
    I would rather not use multiple PCs but I have never worked with more than one serial port on a computer before in the past.  Perhaps LabVIEW itself already provides for multiple serial card communications (wouldn't that be perfect)?
    Any info would be great.
    Regards,
    Dave

    Thanks Dennis.
    I spoke with Envirotronics and they do not provide the driver for the System Plus controller any longer since there were issues with changing hardware and software.  Their IT department may be able to put something together for me.
    Using USB->RS232 connections would be nice given the abundant number of USB ports available on modern PCs.
    Without a driver I see parsing the serial text as a challenge in LabVIEW.  I know how to approach this with a traditional programming language but are there any examples around here of how this is done with LV (most recent version is fine)?
    Dave

  • How to display the serial waveform on Labview

    Hi,
    I'm a newbie in Labview Programming. Is it possible to display the serial waveform on the display using Labview?
    From
    Don

    RS232 transmits binary. If you transmit the character A, that gets converted to hex 41 or 01000001 (assuming 8 data bits). There is also start, stop, parity bits. The logic levels for RS232 can between +3 to +12 volts or -3 to -12 volts. When you use LabVIEW to read a serial port, the UART in the pc will convert that digital data back into the character A and that's what LabVIEW or any other communications program like Hyperterminal will read. What exactly do you have hooked up to the serial port of the pc? Is it some kind of instrument or what? If it's an instrument sending data, then how the data is interpreted is dependent on the instrument. It might send back a reading as text. A 1 volt measurment might be transmitted as the ASCII characters "1" and "v". Other instruments might encode the data differently. Measurements made over a serial port can be easily visualized. Plain text received over a serial port is usually displayed as text.

  • Serial to parallel converter in labview

    Hi. Does anybody know how to convert serial data to parallel data using labview? I already used shift registers but it's not working.

    Ralp wrote:
    I want to convert it to parallel boolean (true or false) by storing one bit of binary data in every registers so i can combine it in 1D array.
    You still need to be much clearer. LabVIEW does not have "registers". LabVIEW is a programming language, not a circuit simulator.
    What is the datatype of the serial data? booleans, bits, bytes, U8, etc.
    What is the datatype of the parallel data? 1D array of what? How big can it get? What do you want to do with it?
    Do you get one boolean at a time and simply want to append it to a boolen array? That would be trivial. What have you tried?
    LabVIEW Champion . Do more with less code and in less time .

  • Does Labview do a Serial to Ethernt/TC​PIP Conversion​?

    Does Labview do a Serial to Ethernt/TCPIP Conversion?  I am already using Serial ports transmisson and I used Labview to do simulations and collected data with it.  I don't want to redesign the entire program from scratch just yet. 
    Is there some time of tool inside of Labview will allow a Serial to Ethernet, or Serial to TCPIP conversion before transmitting or receiving? Thanks
    Master Student

    I'm not aware of a single utility that does serial to TCP conversion, however if you programmed in VISA there's a chance that you could create a TCP resource and just do all of your communication still through VISA without needing to change your code.  In MAX you can right click on Devices and Interfaces and choose to create a VISA TCP Resource.  If you have the IP address and the TCP port, you can create a resource that links to your device and from that point, you should be able to access that resource with your program that is written using VISA.  However, this depends on your original program using VISA.
    Logan S.

Maybe you are looking for