Synchronizing The Form C Switch; Example: Synchronizing The Form C Switch (Basic) - Agilent Technologies E1463A User's Manual And Scpi Programming Manual

32-channel, 5 amp, form c switch scpi programming guide
Hide thumbs Also See for E1463A:
Table of Contents

Advertisement

Synchronizing the Form C Switch

Example:
Synchronizing the
Form C Switch
(BASIC)
46 Using the Form C Switch
int error_handler (int error, char *routine)
{
char ch;
if (error != NOERR)
{
printf ("\n Error %d %s \n", error, errstr(error));
printf (" in call to GPIB function %s \n\n", routine);
printf ("Press 'Enter' to exit: ");
scanf ("%c", &ch);
exit(0);
}
return 0;
}
This section gives guidelines to synchronize a Form C switch module with a
measurement instrument.
This BASIC program shows one way to synchronize a Form C switch
module with a measurement instrument. In this example, the Form C
switch module switches a signal to a multimeter. The program then verifies
the channel is closed before the multimeter begins its measurement.
10 OUTPUT 70915; "CLOS (@105)"
20 OUTPUT 70915; "*OPC?"
30 ENTER 70915; Opc_value
40 OUTPUT 70915; "CLOS? (@105)"
50 ENTER 70915;A
60 IF A=1 THEN
70
OUTPUT 70903;"MEAS:VOLT:DC?" !When channel is closed,
80
ENTER 70903; Meas_value
90
PRINT Meas_value
100 ELSE
110
PRINT "Channel did not close"
120 END IF
130 END
!Close channel 5
!Wait for operation complete
!Check to see if channel closed
measure the voltage
!Print the measured voltage
Chapter 2

Advertisement

Table of Contents
loading

Table of Contents