Instructions
Strona 174 z 185
Dystrybucja Conrad Electronic Sp. z o.o., ul. Kniaźnina 12, 31-637 Kraków, Polska
Copyright © Conrad Electronic 2012, Kopiowanie, rozpowszechnianie, zmiany bez zgody zabronione.
www.conrad.pl
www.conrad.pl
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.", "2100 multimeter
device test", MB_OK);
return;
}
printf("\n ###### Start C++ Example program. ######\n");
printf(" We check the 2100 multimeter on USB port and\n");
printf(" identify the first connected 2100 device.\n\n");
// Open Device -- Resource Manager
status = PviOpenDefaultRM_usb(&m_defaultRM_usbtmc);
if (status < 0L)
{
PviClose_usb(m_defaultRM_usbtmc);
hUSBTMCLIB = NULL;
m_defaultRM_usbtmc = 0;
MessageBox(NULL, "USBTMC resource not found.", "2100 multimeter device test",