# Environment for MATLAB Scripts (Operators)

For MATLAB scripts (*.m), install MATLAB on the oscilloscope or PC where Infiniium is running. A simple XML configuration file identifies your measurement script. In addition to calling the script, the XML file populates the User Operator Setup dialog box.

MATLAB Applications are created using the MATLAB Compiler. The resulting *.exe file can be run without having MATLAB installed on the oscilloscope or PC. However, the MATLAB Runtime must be installed on the oscilloscope or PC where Infiniium is installed and the MATLAB Runtime version must be the same version as was targeted when the MATLAB Application was created.

When a user measurement is run, on each data acquisition:

1. Infiniium pushes standard variables and custom variables and controls into the MATLAB workspace, including the source waveform.
2. Infiniium executes the script.
3. Infiniium retrieves a number of standard output variables from the MATLAB workspace, including the output waveform.