![Picotest M3510A User Manual Download Page 157](http://html1.mh-extra.com/html/picotest/m3510a/m3510a_user-manual_1555486157.webp)
157
157
157
157
&nWritten);
Sleep(3000);
// Fetch the M3510 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,
&nWritten);
Sleep(1000);
// Send read command
strcpy(pStrout, "READ?");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 6,
&nWritten);
Sleep(30);
printf(" output : READ?\n");
status = PviRead_usb(m_instr_usbtmc, pStrin, 64, &nRead);
if (nRead > 0)
{
for (len=0; len < (long) nRead; len++)
{
buffer[len] = pStrin[len];
}
}
buffer[nRead] = '\0';
printf(" input : %s\n\n", buffer);
// Set device to local mode
strcpy(pStrout, "system:local");
status = PviWrite_usb(m_instr_usbtmc, (unsigned char *)pStrout, 13,
&nWritten);
free(pStrout);
// Close device
if (!hUSBTMCLIB)
return;