EasyManua.ls Logo

Picotest M3500A - Page 188

Picotest M3500A
192 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
188
188188
188
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;
}
// Write command "*IDN?" and read the M3500 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.", "M3500 multimeter
device test", MB_OK);
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
return;
}
else
{
printf(" output : *IDN?\n");
}
Sleep(1000);
// Read data from device
len = 64;

Table of Contents

Other manuals for Picotest M3500A

Related product manuals