
157
short
timeout=10000;
short
count;
printf("\n ###### Start C++ Example program. ######\n");
printf(" We check the M3500A multimeter on USB port and\n");
printf(" identify the first connected M3500A device.\n\n");
//Initialize
COM
CoInitialize(NULL);
//Create the INS001 IOUtils component
hr
=
CoCreateInstance(CLSID_INS001IOUtils,NULL,CLSCTX_INPROC_SERVER,
IID_IOUtils,(LPVOID *)&IIO);
if
FAILED(hr)
{
printf("CoCreateInstance
failed\n");
return
0;
}
IIO->Refresh();
IIO->Count(&count);
if ( count == 0 )
{
printf("\n
M3500A
USB
connect failed (USB).\n");
return
0;
}
// Assigned the first M3500A device (USB port) for command test
IIO->Index(dev_idx);
IIO->TimeOut(&timeout);
// Write command "*IDN?" and read the M3500A identification string
myCmd = "*IDN?";
IIO->Output(_bstr_t(myCmd));
IIO->Input(&bstr);
Summary of Contents for M3500A
Page 1: ...An ISO 9001 2000 Company 6 Digit Multimeter M3500A Operation Manual ...
Page 2: ...Operation Manual M3500A DMM ...
Page 6: ......
Page 7: ......
Page 8: ......
Page 9: ......
Page 10: ......
Page 11: ......
Page 26: ...1 2 3 4 5 6 ...
Page 33: ......
Page 34: ......
Page 35: ......
Page 37: ......
Page 38: ......
Page 39: ......
Page 40: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 47: ......
Page 48: ...48 Figure 3 18 5 ...
Page 95: ......
Page 104: ......
Page 151: ......
Page 155: ......