151
151
151
151
LISTING C.3.
THE DEVQUERY FUNCTION.
// devquery.cpp : Defines the entry point for the console application.
//
// Call the NI-VISA library visa32.dll
//
//
#include "stdafx.h"
#include "visa.h"
//standard include for a Microsoft Visual C++ project
#include "stdio.h"
#include "windows.h"
void main(int argc, char* argv[])
{
// TODO: Add your control notification handler code here
HINSTANCE hUSBTMCLIB; // for USBTMC HANDLE
unsigned long m_defaultRM_usbtmc, m_instr_usbtmc;
unsigned long m_findList_usbtmc;
unsigned long m_nCount;
ViStatus status;
int m_Timeout = 7000;
char *pStrout; // Write out data buffer
BYTE pStrin[64]; // Read in data buffer
int len;
ULONG nWritten;
ULONG nRead = 0;
char buffer[256];
char instrDescriptor[256];
// Load the NI-VISA library for USBTMC device
hUSBTMCLIB = LoadLibrary ("visa32.dll");
if (!hUSBTMCLIB)
Содержание 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: ......