Keithley 2100 User Manual page 147

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

Advertisement

Model 2100 6 1/2-Digit Resolution Digital Multimeter User's Manual
len, &nRead);
&nWritten);
&nWritten);
&nWritten);
&nWritten);
&nWritten);
&nWritten);
2100-900-01 Rev. B / July 2007
// Read data from device
len = 64;
if (hUSBTMCLIB)
{
}
// Set sample count to 1
strcpy(pStrout, "SAMP:COUN 1");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 12,
Sleep(30);
// Set configure Voltage AC, range 0.1A
strcpy(pStrout, "CONF:VOLT:AC 0.1,0.01");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 22,
Sleep(3000);
// Set configure frequency, range Auto
strcpy(pStrout, "CONF:FREQ");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 10,
Sleep(3000);
// Set configure Current DC, range 0.1A
strcpy(pStrout, "CONF:CURR:DC 1,0.01");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 20,
Sleep(3000);
// Fetch the 2100 measure value ( screen value )
// Set Voltage DC measure
strcpy(pStrout, "CONF:VOLT:DC 0.1,0.1");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 21,
Sleep(1000);
// Send read command
strcpy(pStrout, "READ?");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 6,
Sleep(30);
printf(" output : READ?\n");
status = PviRead_usb(m_instr_usbtmc, pStrin, 64, &nRead);
if (nRead > 0)
{
Return to
status = PviRead_usb(m_instr_usbtmc, pStrin,
if (nRead > 0)
{
for (len=0; len < (long) nRead; len++)
{
buffer[len] = pStrin[len];
}
}
buffer[nRead] = '\0';
printf(" input : %s\n\n",buffer);
for (len=0; len < (long) nRead; len++)
{
Section Topics
Appendix B: Remote Interface Reference
B-33

Advertisement

Table of Contents
loading

Table of Contents