Macros are executable programs that contain a list of SCPI remote commands which are then loaded and run from PLTS.
PLTS supports macros created in the following formats:
In this topic:
In PLTS, click Run,
then Run....
Click on the Browse button and navigate to the macro file.
Note: If using a text file (.txt) to run SCPI commands, you must type SCPI before the text file path and enclose the path in double quotes as shown in the following dialog. This is not required when using any of the other formats.
Click on the Run button to test the macro.
Click on the Save...
button to have the macro name appear in the Run
menu.
To remove or modify a macro name, click Run, then Run...
then click on the Remove/Modify
tab in the Run... dialog.
To change the macro name that appears in the Run menu, click on the Modify... button, select the macro to modify (if more than one is listed), then enter the changes in the text field.
To remove the macro name that appears in the Run menu, select the macro to remove (if more than one is listed), then click on the Delete button.
The following is a macro program example created as a *.txt file using Notepad.
Note: The first line is the Visa address of PLTS and started with a '#'. Also, note that there is one SCPI command per line and blank lines are ignored.
Save the file on your hard drive.
Close Notepad
#TCPIP0::localhost::hislip1::INSTR
FILE1:CLOS
*OPC?
FILE2:CLOS
*OPC?
OPEN 'C:\tfPLTS\Tests\API\PLTS.ScpiParser.Test\data\[DEMO] E8358B BTL 10MHz-9GHz.dut','Time
Domain (Differential)'
*OPC?
OPEN 'C:\tfPLTS\Tests\API\PLTS.ScpiParser.Test\data\[DEMO] E8362B BTL 10MHz-20GHz.dut','Time
Domain (Differential)'
*OPC?
FILE1:VIEW1:CLEar
*OPC?
FILE1:VIEW1:NPLot 'TDD21'
*OPC?
FILE1:VIEW1:NPLot:ALL:FILE2
*OPC?
FILE1:VIEW1:NPLot 'TDD21'
*OPC?
FILE1:VIEW1:PLOT:SCALe 0, 2.7, -0.2, 0.5
*OPC?
FILE1:VIEW1:PLOT2:SCALe 0.03, 2, -0.5, 0.5
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:INITialize
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:TYPE SINGle
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:TRACe 'TDD21','2:TDD21'
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:REFerence:TYPE PERCentage
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:REFerence:VALue 50
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:LIMit:VALue 60
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:LIMit:STATe ON
*OPC?
FILE1:VIEW1:PLOT1:MEASure:SKEW:STATe ON
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:INITialize
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:TYPE SINGle
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:TRACe 'TDD21'
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:LIMit:VALue 60
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:LIMit:STATe ON
*OPC?
FILE1:VIEW1:PLOT2:MEASure:RTIMe:STATe ON
*OPC?