User-Defined Measurements
Click the User tab to create user-defined measurements. User-defined measurements are custom scalar measurements that you create using Python, MATLAB, or Compiled MATLAB. Like Infiniium's standard measurements, user measurements perform a scalar measurement on an input waveform. The result is displayed in the measurement results table just like Infiniium's standard measurements. You can create up to 8 user measurements.
User measurements support custom variables which are set from within a dialog box and can run standard Infiniium (dependent) measurements whose measurement results are made available to the script. These are the basic steps required to create a user measurement:
- Write a MATLAB or Python script that performs your measurement.
- Write an XML file that describes the measurement and identifies the script.
- Import the XML file into the User Measurement Setup dialog box.
- Click on the User Meas button to run your measurement.
It is possible to open the script file directly in the User Measurement Setup dialog box without using an XML configuration file. However, without a configuration file you will not be able to initialize unique script variables or specify dependent Infiniium measurements.