instrDescriptor);
if (status < 0L)
{
// Find the USBTMC device USB[0-9]*::0x05E6::0xM3500::?
*INSTR ( Dec )
status = PviFindRsrc_usb (m_defaultRM_usbtmc, "USB[0-
9]*::1510::8448::?*INSTR",
&m_findList_usbtmc,
&m_nCount,
instrDescriptor);
if (status < 0L)
{
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
}
else
{
PviOpen_usb(m_defaultRM_usbtmc, instrDescriptor, 0, 0,
&m_instr_usbtmc);
status
=
PviSetAttribute_usb(m_instr_usbtmc,
VI_ATTR_TMO_VALUE, m_Timeout);
}
}
else
{
PviOpen_usb(m_defaultRM_usbtmc, instrDescriptor, 0, 0,
&m_instr_usbtmc);
status
=
PviSetAttribute_usb(m_instr_usbtmc,
VI_ATTR_TMO_VALUE, m_Timeout);
}
}
if (!hUSBTMCLIB)
{
printf("M3500 device connect failed.\n");
return;
}
198