Pacific Power Source AFX Series Operation Manual page 421

Programmable power source
Hide thumbs Also See for AFX Series:
Table of Contents

Advertisement

10.7.7.3
Managing multiple script files.
Script files can be saved to the PC or device on which the browser runs, i.e. Windows PC, Tablet,
or Smartphone. Use the OPEN and SAVE buttons in the upper right corner of the Editor window
to save and retrieve scripts. Scripts are saved in Comma Separated File format, which can be
edited in Excel or any text editor like Notepad. The sample script csv file content
(scpi_script.cvs) is shown below. When saving a new script, replace the default scpi_script file
name with a more descriptive file name.
// Available commands are:
// - WAIT MILISECONDS, example -> WAIT 2000
// - PRINT "TEXT", example -> PRINT "Test started"
// - SCPI COMMAND/s, example -> OUTP OFF; VOLT 0
// Comments starts with // as this line
// The following is an example
// Add a mark in the log
PRINT "Test started"
// Turn off output and set voltage to 0
OUTP OFF; VOLT 0
// Turn on output
OUTP 1
// Wait three seconds
WAIT 3000
// Set output voltage to 10 volts
VOLT 10
// Get output voltage measurement
MEAS:VOLT?
// Turn off
OUTP OFF
PRINT "Test completed
10.7.7.4
Script Execution Output
The OUTPUT window located in the bottom half of the browser window shows all script output,
including any user comments, events like script start and stop as well as any PRINT commands.
Each output entry is date and time stamped.
The content of the OUTPUT window can be saved to a Rich Text File using the SAVE button in
the upper right corner of the OUTPUT window. (Do not confuse with the SAVE button in the
script EDITOR window.) The default output file name is "scpi_script_output.rtf". A sequence
number (1), (2) etc will be appended each time the output window content is saved.
A sample RFT file is shown below.
8/21/2019 8:48:02.172 AM: Test started
8/21/2019 8:48:02.184 AM: Waiting 3000ms.
8/21/2019 8:48:05.190 AM: MEAS:VOLT?
8/21/2019 8:48:05.260 AM: 120.143,118.176,122.147
8/21/2019 8:48:05.262 AM: OUTP OFF
8/21/2019 8:48:05.579 AM: Test completed
Note:
All output files are saved to the default Download directory determined by the Browser setting.
Entire Contents Copyright
2018 by Pacific Power Source, Inc. (PPS) • All Rights Reserved • No reproduction without written authorization from PPS.
AFX Series Power Source Operation Manual
AFX SERIES® OPERATION MANUAL
LAN Interface Configuration
SECTION 10:
Page 421 of 485

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents