78 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
300 PRINT ".......... Press Continue"
310 PAUSE
320 PRINT
330 LOCAL 7 ! Returns signal generator to Local control
340 ! The following print statements are user prompts
350 PRINT "Signal generator should now be in Local mode."
360 PRINT
370 PRINT "Verify that the signal generator's front-panel keyboard
is functional."
380 PRINT
390 PRINT "To re-start this program press RUN."
400 END
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.
//
*******************************************************************
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...