Teledyne T3DSO1000 Programming Manual page 202

Digital oscilloscopes
Hide thumbs Also See for T3DSO1000:
Table of Contents

Advertisement

3. Coding:
a) USBTMC:
IntUsbtmc_test() {
/* This code demonstrates sending synchronous read & write commands */
/* to an USB Test & Measurement Class (USBTMC) instrument using
/* NI-VISA
/* The example writes the "*IDN?\n" string to all the USBTMC */
/* devices connected to the system and attempts to read back
/* results using the write and read functions.
/* The general flow of the code is */
/* Open Resource Manager
/* Open VISA Session to an Instrument
/* Write the Identification Query Using viPrintf
/* Try to Read a Response With viScanf
/* Close the VISA Session
/****************************** *****************************/
ViSession defaultRM;
ViSession instr;
ViUInt32 numInstrs;
ViFindList findList;
ViUInt32 retCount;
ViUInt32 writeCount;
ViStatus status;
Char
instrResourceString[VI_FIND_BUFLEN];
Unsignedchar
Charstringinput[512];
Int
i;
/** First we must call viOpenDefaultRM to get the manager *
handle. We will store this handle in defaultRM.*/
status=viOpenDefaultRM (&defaultRM);
*/
buffer[100];
Digital Oscilloscope Series
*/
*/
*/
*/
*/
*/
*/
*/
202

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

T3dso2000

Table of Contents