153
153
153
153
PviOpen_usb
= (signed long (__stdcall*)(unsigned long, char*,
unsigned long,
unsigned
long,
unsigned
long*))GetProcAddress(hUSBTMCLIB, (LPCSTR)"viOpen");
PviWrite_usb = (signed long (__stdcall*)(unsigned long, unsigned
char*, unsigned long,
unsigned long*))GetProcAddress(hUSBTMCLIB,
(LPCSTR)"viWrite");
PviRead_usb
= (signed long (__stdcall*)(unsigned long,
unsigned char*, unsigned long,
unsigned long*))GetProcAddress(hUSBTMCLIB,
(LPCSTR)"viRead");
PviSetAttribute_usb = (signed long (__stdcall*)(unsigned long, unsigned
long, unsigned long))GetProcAddress(hUSBTMCLIB, (LPCSTR)"viSetAttribute");
if (PviOpenDefaultRM_usb == NULL ||
PviFindRsrc_usb
== NULL ||
PviClose_usb
== NULL ||
PviOpen_usb
== NULL ||
PviWrite_usb
== NULL ||
PviRead_usb
== NULL ||
PviSetAttribute_usb == NULL
)
{
FreeLibrary (hUSBTMCLIB);
hUSBTMCLIB = NULL;
MessageBox(NULL, "NIVISA for USBTMC library not ready.", "M3510
multimeter device test", MB_OK);
return;
}
printf("\n ###### Start C++ Example program. ######\n");
printf(" We check the M3510 multimeter on USB port and\n");
printf(" identify the first connected M3510 device.\n\n");
// Open Device -- Resource Manager
status = PviOpenDefaultRM_usb(&m_defaultRM_usbtmc);
Содержание M3500
Страница 6: ......
Страница 10: ......
Страница 12: ...w a r ...
Страница 13: ......
Страница 14: ......
Страница 16: ......
Страница 29: ......
Страница 37: ......
Страница 41: ......
Страница 42: ...In Short Condition ...
Страница 43: ......
Страница 44: ......
Страница 109: ...104 104 104 104 651 Panel Program Checksum Error The checksum from the panel is incorrect ...
Страница 110: ...K U S A M ME C O ...
Страница 148: ...K U S A M M E C O K U S A M M E C O ...
Страница 155: ...K U S A M M E C O ...
Страница 163: ...158 158 158 158 m_nCount 0 m_defaultRM_usbtmc 0 FreeLibrary hUSBTMCLIB hUSBTMCLIB NULL return ...
Страница 164: ......