EasyManua.ls Logo

Tektronix TDSUSB2 - Page 155

Tektronix TDSUSB2
233 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
R-GPIB Commands Sample Program
the application.
3
*/
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "decl-32.h"
/* Forward Declarations */
int start_application(int scope);
int exit_application(int scope);
int do_single_test (int scope);
int recall_setup( int scope, char *filename);
void display_results(int scope);
/* parameters needed to access
the device driver handler */
#define BDINDEX 0 // Board Index
#define PRIMARY_ADDR_OF_DMM 1 // Primary addre ss of device
#define NO_SECONDARY_ADDR 0 // Secondary address of device
#define TIMEOUT T10s // Timeout value = 10 seconds
#define EOTMODE 1 // Enable the END message
#define EOSMODE 0 // Disable the EOS mode
char ErrorMnemonic[21][5] = {"EDVR", "ECIC", "ENOL", "EADR", "EARG",
"ESAC", "EABO", "ENEB", "EDMA", "",
"EOIP", "ECAP", "EFSO", "", "EBUS",
"ESTB", "ESRQ", "", "", "", "ETAB"};
/*
After e ach GPIB call, the application checks whether the call
succeeded. If an NI-488.2 call fails, the GPIB driver sets the
corresponding bit in the global status variable. If the call
failed, this procedure prints an error m essage, takes
the device offline and exits.
*/
void GPIBCleanup(int ud, char* ErrorMsg)
TDSUSB2 Universal Serial Bus Measurements Package 143

Table of Contents