![Picotest M3510A Скачать руководство пользователя страница 155](http://html1.mh-extra.com/html/picotest/m3510a/m3510a_user-manual_1555486155.webp)
155
155
155
155
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("M3510 device connect failed.\n");
return;
}
// Write command "*IDN?" and read the M3510 identification string
len = 64;
pStrout = new char[len];
ZeroMemory(pStrout, len);
strcpy(pStrout, "*idn?");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 6,
&nWritten);
Sleep(30);
if (status != VI_SUCCESS)
{
MessageBox(NULL, "Write to device error.", "M3510 multimeter
device test", MB_OK);
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
return;
}
else
{
printf(" output : *IDN?\n");
}
Sleep(1000);