Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect a machine to pc using RS 232

Hello,

 

         I have been working on labVIEW for a few months but this is for the first time I am trying to connect a machine with PC(LabVIEW) using an RS 232 port. I want to connect a medical analyzer, having an RS 232 port to my pc. Can anyone tell me what all are the basic steps.

 

Regards,

 

Nitzy

 

P.S. : I tried it using the basic read and write VISA example in labview lib. I connected the machine to pc and tried running the VI but I got no signal. 

0 Kudos
Message 1 of 2
(3,307 Views)

First, you have to make sure that you have the correct type of serial cable (null modem or straight-through) and that the com settings (baud rate, parity, etc.) of the VI match what the instrument is set for. Then, you have to know whether the instrument requires a specific command before it will return anything or whether it streams data. All of this should be in the manual. Since you have not attached the manual or even mentioned the make and model of the instrument, it's impossible to provide many more details.

 

I would recomend that you first try a program such as Hyperterminal and get communication working there before trying any programming.

0 Kudos
Message 2 of 2
(3,300 Views)