Keithley 2100 User Manual page 150

6 1/2-digit resolution digital multimeter
Hide thumbs Also See for 2100:
Table of Contents

Advertisement

Appendix B: Remote Interface Reference
"USB[0-9]*::1510::8448::?*INSTR", &m_findList_usbtmc, &m_nCount,
instrDescriptor);
if (status < 0L)
{
instrDescriptor, 0, 0, &m_instr_usbtmc);
VI_ATTR_TMO_VALUE, m_Timeout);
instrDescriptor, 0, 0, &m_instr_usbtmc);
VI_ATTR_TMO_VALUE, m_Timeout);
}
if (!hUSBTMCLIB)
{
}
// Write command "*IDN?" and read the 2100 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)
{
"2100 multimeter device test", MB_OK);
}
else
{
}
Sleep(1000);
// Read data from device
len = 64;
if (hUSBTMCLIB)
{
len, &nRead);
B-38
Model 2100 6 1/2-Digit Resolution Digital Multimeter User's Manual
status = PviFindRsrc_usb (m_defaultRM_usbtmc,
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
}
else
{
PviOpen_usb(m_defaultRM_usbtmc,
status = PviSetAttribute_usb(m_instr_usbtmc,
}
}
else
{
PviOpen_usb(m_defaultRM_usbtmc,
status = PviSetAttribute_usb(m_instr_usbtmc,
}
printf("2100 device connect failed.\n");
return;
MessageBox(NULL, "Write to device error.",
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
return;
printf(" output : *IDN?\n");
status = PviRead_usb(m_instr_usbtmc, pStrin,
Section Topics
Return to
2100-900-01 Rev. D / September 2011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents