Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to acquire and display data from an instrument using RS 232 port

I wish to acquire the data displayed on my instrument using LabVIEW 6i and RS 232 port.How do I acquire the reading of the instrument and display it on the front panel of the PC in LabVIEW using serial rs232 port. Is there any driver for RS232 port, what VI are needed for getting the final reading of the instrument???
0 Kudos
Message 1 of 2
(3,024 Views)
First of all, you must check with your instrument's manufacturer: maybe he has a driver for LV ready to use. If this is true, your work is greatly simplified.

If not, he has to give you the communications protocol for the instruments itself (that is: parameters for opening the serial port, commands recognized by the instrument, syntax for each of them, expected response time expected for response and so on); don't be afraid of asking him: he MUST give it to you!
Once you have all these details, you can open serial port an write and read to it using vis in Instrument I/O >> Palette. I suggest you to look at the examples shipped with LV (I/O interfaces >> Serial communication) and on the NI site.
Basically serial communication is simple: write a c
ommand to the instrument, wait the appropriate time, read the answer from the instrument. The problem is to speak and listen with the correct language (the protocol I said before).

Sorry if my response seems too general: the true fact is that 'serial communication' is quite too general a matter: once you have defined your instrument requirement, we will be able to orient you in the correct direction.

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?
Message 2 of 2
(3,024 Views)