LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial VISA problems

Hello,

I keep having problems with VISA serial driver. The problem
is that VISA seems to reserve the serial port even after the
VISA session has been closed. Also, if I open COM1 with visa,
I cannot use hyperterminal with COM2. I have to shut donw LabVIEW
in order to use _any_ COM ports after I've used one with VISA.
If i use old serial vi's i don't have to close LV in order to
use COM ports with terminal hyperterminal or procomm
etc.

Has anybody else encountered this kind of behaviour with VISA serial?
I run LabVIEW 5.1f1 in WinNT4.0

timo


--
***************************************************
*Timo Miettunen *
* *
*Senior Test Designer
*
*Fincitec Oy Production Department *
*e-mail: timo.miettunen@fincitec.fi *
***************************************************
*Address: * *
*Lumikontie 2 *Tel: +358-16-2151245 *
*PO BOX 11 *Fax: +358-16-221561 *
*FIN-94600 KEMI Finland * *
***************************************************
0 Kudos
Message 1 of 3
(2,727 Views)
Timo Miettunen writes:

> Hello,
>
> I keep having problems with VISA serial driver. The problem
> is that VISA seems to reserve the serial port even after the
> VISA session has been closed. Also, if I open COM1 with visa,
> I cannot use hyperterminal with COM2. I have to shut donw LabVIEW
> in order to use _any_ COM ports after I've used one with VISA.
> If i use old serial vi's i don't have to close LV in order to
> use COM ports with terminal hyperterminal or procomm
> etc.
>
> Has anybody else encountered this kind of behaviour with VISA serial?
> I run LabVIEW 5.1f1 in WinNT4.0

Timo,

An easy workaround might be using the "close all visa sessions" option
in the preferences/Misc tab. Before this option was introduced I used
the
visa sessions.vi in .../Labview/vi.lib/visa.llb .

Do you use "find visa resources" and maybe you do some homemade "plug
and play" by retrieving info strings from all ports? I'd look for
sessions not getting closed in your programm.

I'm using LV 5.1f0 on NT4.0SP3 and didn't see your kind of problem. I
doubt it is an NT permissions problem.

Johannes Niess
0 Kudos
Message 2 of 3
(2,727 Views)
Hi Timo,

I have the same trouble in LabView 6.1
There is a very awful workaround: After using the Visa-functions in my Vi (including the close-visa-vi), I open and close the serial port with the old Vi's.
After doing that, the port is 'realy' closed ....

Marco
0 Kudos
Message 3 of 3
(2,727 Views)