Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Resource name does not match COM port number

Hi,

 

When I connect board to computer, I use

 

ResourceManager.GetLocalManager().FindResources("?*")

 

to get resource name("ASRL11::INSTR") and use this name I invoke

 

Session session = ResourceManager.GetLocalManager().Open(name);

 

to get session and get session's HardwareInterfaceName property value.

 

The problem is that the COM port number in the HardwareInterfaceName property("Com10") does not match the resource name. The COM port number is correct, it is the same as it is shown in Windows Device Manager. But why is the resource name "ASRL11::INSTR", it should be "ASRL10::INSTR".

 

Does anyone have an idea?

 

Thanks,

Eva

0 Kudos
Message 1 of 3
(3,453 Views)

As I remember, ASRL10::INSTR on NI-VISA was reserved by the legacy printer parallel port (LPT1). Likely the 10th ASRL is still reserved for the LPT1 (even if non-existing) port therefore COM10 may be mapped to the next ASRL11::INSTR.

 

Message 2 of 3
(3,408 Views)

Yes, number 10 is reserved for parallel port.

 

Thank you very much.

0 Kudos
Message 3 of 3
(3,393 Views)