LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA

I have 8 serial ports (COM5 - COM12) installed in a PC through 2 PCI cards.
Each one with 4 serial ports.

However, when I use the "Find Resources" VI from the VISA toolset, it show
me just six ports (COM5 - COM10).
I've tested all of them and they seem OK (I've used Hyperterminal).

What could be the problem ?

Thanks in advance for any help.
0 Kudos
Message 1 of 4
(3,352 Views)
LabVIEW can address as many as 256 serial ports. The default port number parameter
is 0 for COM1, 1 for COM2, 2 for COM3 and so on. The file labview.ini contains
the LabVIEW configuration options. To set the devices which will be used
by the serial port VIs, set the configuration option serialDevices to the
list of devices to be used. For example, to set up your devices to support
up to COM16:

serialDevices="COM1; COM2; COM3; COM4; COM5; COM6; COM7; COM8; COM9;\\.\COM10;\\.\COM11;\\.\COM12;\\.\COM13;\\.\COM14;\\.\COM15;\\.\COM16;LPT1;LPT2;"

The above should appear as a single line in your configuration. Names of
COM ports greater than COM9 should begin with "\\.\".



"Tabosa, Domingos [CMPS:0B25:EXCH]" wrote:
>I have 8 serial ports (COM5 -
COM12) installed in a PC through 2 PCI cards.>Each
one with 4 serial ports.>>However, when I use the "Find Resources" VI from
the VISA toolset, it show>me just six ports (COM5 - COM10).>I've tested all
of them and they seem OK (I've used Hyperterminal).>>What could be the problem
?>>Thanks in advance for any help.>>
0 Kudos
Message 2 of 4
(3,352 Views)
[posted and mailed]

dtabosa@americasm02.nt.com (Tabosa, Domingos [CMPS:0B25:EXCH]) wrote in
<91qdrs$3ja$1@nrchh45.us.nortel.com>:

>I have 8 serial ports (COM5 - COM12) installed in a PC through 2 PCI
>cards. Each one with 4 serial ports.
>
>However, when I use the "Find Resources" VI from the VISA toolset, it
>show me just six ports (COM5 - COM10).
>I've tested all of them and they seem OK (I've used Hyperterminal).
>
>What could be the problem ?
>
>Thanks in advance for any help.

To access serial ports above 10 you need to include a line in your labview
ini file. The basic line is:

serialDevices="COM1;COM2;COM3;COM4;COM5;COM6;COM7;COM8;COM9;\\.\COM10;LPT1;
LPT2;LPT3;LPT4"

and will need to be modified to take into account ports 11 and 12.

--

Alexander C. Le Dain,
PhD
ICON Technologies Pty Ltd
http://www.icon-tech.com.au

******************************************************************
* The LabVIEW FAQ http://www.icon-tech.com.au/thelabviewfaq.html *
******************************************************************
0 Kudos
Message 3 of 4
(3,352 Views)
To find the COM ports 10-13, you need to delete the default bindings
that NI-VISA 1.2x or 2.0x has from ASRL10-13 to LPT1-4. You can use
T&M Explorer and just highlight each of those bindings and delete them
with the Delete key. Then VISA will find the real COM ports.

Or you can upgrade to NI-VISA 2.5 (ships as part of LabVIEW 6i or
orderable separately from NI) which has fixed this behavior.
Regardless of the default parallel port bindings, NI-VISA 2.5 and the
Measurement&Automation Explorer will find the COM ports that the
earlier versions missed.

Dan Mondrik
Senior Software Engineer, VISA
National Instruments


Sent via Deja.com
http://www.deja.com/
0 Kudos
Message 4 of 4
(3,350 Views)