LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial port problem

Hi again!
First of all, I want to thank all of you that helps me all the time, you
have saved my day a lot of times this summer!

Second, I have a problem with a serial port.
I´ve made a VI that uses VISA to control and read an instrument using 9600,
8bit, non parity and 1 stop bit.
Works just fine ( I think 🙂 )
But now I need to control an instrument that uses 19200, 8 bit, non parity,
1 stop bit and XOn/XOff.
I thougt that my old VISA VI would do the job, that it somehow should
recognise all this in the VISA OPEN VI.
Is there an easy way to solve this problem with VISA, or must I use the
SERIAL VIs? I tried them on my old VI, but I did not like them. VISA is more
simple I think.
Thank you again!
--
/Peter Jansson,
Teracom Systemser
vice Malmoe Sweden
http://www.teracom.se
0 Kudos
Message 1 of 2
(2,843 Views)
I think you were just lucky with the first instrument. You need to configure
the serial port before using it. Nothing in VISA (or anywhere else) allows
for autodetecting an instrument's communications parameters. If there were
serial instruments wouldn't be such a pain to use. Use a VISA attribute node
to set the serial port parameters. Easy VISA Serial Write & Read.vi shows
how to use it.

"Peter Jansson, Teracom Malmoe" wrote:
>Hi again!>First of all, I want to thank all of you that helps me all the
time, you>have saved my day a lot of times this summer!>>Second, I have a
problem with a serial port.>I´ve made a VI that uses VISA to control and
read an instrument using 9600,>8bit, non parity and 1 stop bit.>Works just
fine ( I think 🙂 )>Bu
t now I need to control an instrument that uses 19200,
8 bit, non parity,>1 stop bit and XOn/XOff.>I thougt that my old VISA VI
would do the job, that it somehow should>recognise all this in the VISA OPEN
VI.>Is there an easy way to solve this problem with VISA, or must I use the>SERIAL
VIs? I tried them on my old VI, but I did not like them. VISA is more>simple
I think.>Thank you again!>-->/Peter Jansson,>Teracom Systemservice Malmoe
Sweden>http://www.teracom.se>>
0 Kudos
Message 2 of 2
(2,843 Views)