I am using NI-VISA 2.6 on Solaris 2.x. I am attempting to connect to 2 Tektronix TDS7154 scopes with VXI-11. I have no problem connecting to 1 scope. When I attempt to connect a 2nd scope, the 1st connected scope drops its session. It seems that Tektronix has only allowed "gpib0" ("gpib0,1" works but seems to be the same as "gpib0" and "gpib", "gpib1" does not work) as a LAN Device Name. I have tried opening a DefaultRM for each device, then using viOpen with each DefaultRM. Having a separate DefaultRM seemed to have no affect. Below is an example of my code.
/* xxx.xxx.xxx.xxx is an IP address, each one is unique and on the same network */
status = viOpenDefaultRM(&defaultRM1);
if(status < VI_SUCCESS)
exit (EXIT_FAILURE);
status = viOpenDefaultRM(&defaultRM2);
if(status < VI_SUCCESS)
exit (EXIT_FAILURE);
status = viOpen(defaultRM1, "TCPIP::xxx.xxx.xxx.xxx::gpib0::INSTR", VI_NULL, VI_NULL, &instr1);
if(status < VI_SUCCESS)
{
/* Close Resorce Manager and exit */
}
status = viOpen(defaultRM2, "TCPIP::xxx.xxx.xxx.xxx::gpib0::INSTR", VI_NULL, VI_NULL, &instr2);
if(status < VI_SUCCESS)
{
/* Close Resorce Manager and exit */
}
/* At this point the initial connection to instr1 dies, but the new connection seems fine */
Any help would be great.
Thanks,
Ryan Lange
L-3 IS