20-5
Signal Processing Commands
MATLab
MATLab
Command :SPRocessing:MATLab {ON | OFF | 1 | 0}
Turns on and off the MATLAB Filter application. If MATLAB is not already running on the
instrument, it is automatically started and is minimized.
Query :SPRocessing:MATLab?
Returned Format [:SPRocessing:MATLab] {ON | OFF | 1 | 0}<NL>
Example 10 OUTPUT 707;":SPROCESSING:MATLAB ON”
MATLab:ETENable
Command :SPRocessing:MATLab:ETENable {ON | OFF | 1 | 0}
Enables or disables the capture of the text that is normally displayed in the MATLAB Com-
mand Window when a script is run. Use the MATlab:ETEXt command to retrieve the actual
text.
Query :SPRocessing:MATLab:ETENable?
Returned Format [:SPRocessing:MATLab:ETENable] {ON | OFF | 1 | 0}<NL>
Example 10 OUTPUT 707;":SPROCESSING:MATLAB:ETENABLE ON”
MATLab:ETEXt
Command :SPRocessing:MATLab:ETEXt?
Queries the MATLAB script engine text that is displayed in MATLAB’s Command Window.
This command is valid only when the MATLAB script engine’s text capture is turned on as
specified by the MATlab:ETENable command.
Returned Format [:SPRocessing:MATLab:ETEXt] <string><NL>
Example 10 OUTPUT 707;":SPROCESSING:MATLAB:ETEXT?"
MATLab:SCRipt
Command :SPRocessing:MATLab:SCRipt <file_name>
Selects the MATLAB script file for the MATLAB Filter application. Also, queries the selected
script file name with path. <file_name> is the name of the file, with a maximum of 254 char-
acters (including the path name, if used). If a path does not precede the file name, the file
name assumes the default directory for scripts.
Query :SPRocessing:MATLab:SCRipt?
Returned Format [:SPRocessing:MATLab:SCRipt] <file_name><NL>
Example 10 OUTPUT 707;":SPROCESSING:MATLAB:SCRIPT “d:\user files\matlab scripts\my script.m”"
OUTPut
Command :SPRocessing:OUTPut {FUNCtion<n>}
Selects the math function (F1, F2, F3, or F4) for the output of the active signal processing
application. <n> is the numeral 1, 2, 3, or 4 representing one of four math functions.