Local Lockout Using Ni-488.2 And C - 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
300
310
320
330
340
350
360
370
is functional."
380
390
400

Local Lockout Using NI-488.2 and C++

This example uses the NI-488.2 library to set the signal generator local lockout
mode. Launch Microsoft Visual C++ 6.0, add the required files, and enter the
following code into your .cpp source file. niex2.cpp performs the following
functions:
— all front panel keys, except the contrast key
— places the signal generator into remote
— prompts the user to verify the signal generator is in remote
— places the signal generator into local
The following program example is available on the signal generator
Documentation CD-ROM as niex2.cpp.
//
*******************************************************************
// PROGRAM NAME: niex2.cpp
//
// PROGRAM DESCRIPTION: This program will place the signal generator
into
// LOCAL LOCKOUT mode. All front panel keys, except the Contrast
key, will be disabled.
// The local command, 'ibloc(sig)' executed via program code, is the
only way to
// return the signal generator to front panel, Local, control.
//
*******************************************************************
78
PRINT ".......... Press Continue"
PAUSE
PRINT
LOCAL 7
! Returns signal generator to Local control
! The following print statements are user prompts
PRINT "Signal generator should now be in Local mode."
PRINT
PRINT "Verify that the signal generator's front-panel keyboard
PRINT
PRINT "To re-start this program press RUN."
END
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents