Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232

how to communicate with rs232
0 Kudos
Message 1 of 3
(2,630 Views)
In a very general way, communication through RS-232 is quite simple:

1. Open and configure the port
2. Write a request to some external device
3. Wait the appropriate time for the device to answer to the request
4. Read the answer from the serial port or decide what to do in case a response is not arrived
5. At the end of all or at the end of the program close the serial port opened

Actual implementation differs depending on the development environment used (LV, CVI, Visual Basic, C++...): to be more specific we need to know which is yours.

Basic problem of communicating with the device is to study the protocol used by the device itsel: it's your program that must adapt to it, and if the syntax is incorrect either the response will be some wa
rning message or nothing at all.
Going a little further, for some instruments there are drivers already made by the manufacturer or third party.
Again, if we know the device you need to communicate to maybe someone can help you indicating a specific driver.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,630 Views)
Hello;

I'm assuming you are referring to how to access the RS232 serial port of your computer, by using Labview.

If that is the case, you can refer to a LabVIEW shipping example that show how to accomplish that.

You can find that example at Search Examples->I/O Interface->Serial Communication->Labview<->Serial.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,630 Views)