EasyManuals Logo
Home>Keithley>Multimeter>2100

Keithley 2100 User Manual

Keithley 2100
157 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #148 background imageLoading...
Page #148 background image
B-36 Return to Section Topics 2100-900-01 Rev. D / September 2011
Appendix B: Remote Interface Reference Model 2100 6 1/2-Digit Resolution Digital Multimeter User’s Manual
NOTE This example depends on the presence of VISA include files. These files are available by
downloading this example from www.keithley.com or by installing the full development
version of VISA.
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)
{
MessageBox(NULL, "NIVISA for USBTMC library not found.", "2100 multimeter
device test", MB_OK);
return;
}
// Link the libraries
signed long (__stdcall *PviOpenDefaultRM_usb)(unsigned long *vi);
signed long (__stdcall *PviFindRsrc_usb)(unsigned long sesn, char *expr,
unsigned long *vi, unsigned long *retCnt, char far desc[]);
signed long (__stdcall *PviOpen_usb)(unsigned long sesn, char *name,
unsigned long mode, unsigned long timeout, unsigned long *vi);
signed long (__stdcall *PviClose_usb)(unsigned long vi);
signed long (__stdcall *PviWrite_usb)(unsigned long vi, unsigned char *name,
unsigned long len, unsigned long *retval);
signed long (__stdcall *PviRead_usb)(unsigned long vi, unsigned char *name,
unsigned long len, unsigned long *retval);
signed long (__stdcall *PviSetAttribute_usb)(unsigned long vi, unsigned long
viAttr, unsigned long attrstat);

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2100 and is the answer not in the manual?

Keithley 2100 Specifications

General IconGeneral
BrandKeithley
Model2100
CategoryMultimeter
LanguageEnglish

Related product manuals