Local Lockout Using Hp Basic And Gpib - Keysight Technologies X-Series Programming Manual

Signal generators
Hide thumbs Also See for X-Series:
Table of Contents

Advertisement

Programming Examples
GPIB Programming Interface Examples
device
&vi);
display\n");
}

Local Lockout Using HP Basic and GPIB

This example demonstrates the Local Lockout function. Local Lockout disables
the front panel signal generator keys. basicex2.txt performs the following
functions:
— resets instrument
— places signal generator into local
— places signal generator into remote
The following program example is available on the signal generator
Documentation CD-ROM as basicex2.txt.
10
!******************************************************************
20
76
ViStatus viStatus = 0;
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viOpen(defaultRM, "GPIB::19::INSTR", VI_NULL, VI_NULL,
if(viStatus){
printf("Could not open ViSession!\n");
printf("Check instruments and connections\n");
printf("\n");
exit(0);}
viPrintf(vi, "*RST\n");
printf("The signal generator should now be in REMOTE. The remote
printf("annunciator R should appear on the signal generator
printf("\n");
viClose(vi);
viClose(defaultRM);
!
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
// Opens a session to the GPIB
// at address 19
// initializes signal generator
// prints to the output window
indicator\n");
// closes session
// closes default session

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents