Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA VXI-11 TCP Port numbers

Hello,

I am writing a device driver for a spectrum analyzer that supports the instrument protocol via TCP. My test device is available to me overthe internet, but it is behind a firewall. I need to know what  IP ports need to be open for me to talk to this device.

Thanks

 Glenn
0 Kudos
Message 1 of 2
(11,471 Views)
All the SUN ONC RPC servers including VXI-11 instruments use the port 111 for portmapper service when the server starts up.  However, actual VXI-11 port numbers are dynamically assigned by the portmapper when your app connects the server, therefore the client app will have no info about what port numbers are actually assigned, if it utilizes VISA TCPIP support. If your client PC is WinXP SP2, the firewall "hole" settings can be configured with WinXP Security Center as by process name rather than by specific port#.
 
If your app directly accesses the VXI-11 instrument by using ONC RPC library without VISA -- actually by clnt_create() call passing the server-address/program#/version#/protocol, there may be a hint around the returned CLIENT struct.  Here is the sample code for directly accessing the VXI-11 instrument.  Sorry but I am not enough familiar with ONC RPC, so I am not sure if the port number info can be acquired or not.
 
CLIENT* pCliCore;
CLIENT* pCliAbo;
// core
pCliCore = clnt_create( "192.168.1.50", 0x607af, 1, "tcp");
if( pCliCore == NULL) {
   printf( "clnt_create(0x607af) failed \n");
}
 
// abort
pCliAbo  = clnt_create( "192.168.1.50", 0x607b0, 1, "tcp");
if( pCliAbo  == NULL) {
  printf( "clnt_create(0x607b0) failed \n");
}

...

 
 

このメッセージは 03-08-2007 10:48 AMに Makoto が編集しています。

0 Kudos
Message 2 of 2
(11,451 Views)