Exporting Data

Channels

You can export this information to the MATLAB® workspace, a figure, or a MAT-file.

You export channel data with the Channel Exporter GUI, which you open by selecting the File > Export > Channels menu.

Channel data is data associated with a hardware channel, a math channel, or a reference channel.

The GUI shown below is configured to export 1000 samples for both hardware channels to the workspace as a structure, which contains horizontal and vertical scaling information. The variable name for the CH0 data is c0 and the variable name for the CH1 data is c1.

The saved structure is shown below, where t0 is the time of the first stored sample. Note that the time is negative because pretrigger data was acquired.

c0
c0 = 
     horizontalScale: 0.0050
    horizontalOffset: 0
       verticalScale: 2.5730
      verticalOffset: 0
                data: [1000x1 double]
                  t0: -0.0200
          samplerate: 5000

Measurements

You can export this information to the MATLAB workspace, a figure, or a MAT-file.

You export measurement data with the Measurement Exporter GUI, which you open by selecting the File > Export > Measurement menu item.

Measurements data is associated with a defined measurement. Note that some measurements such as the horizontal and the vertical cursor have no data to save.

The GUI shown below is configured to export the peak-to-peak and absolute value measurements for CH0 to the workspace. The maximum number of measurements exported depends on the BufferSize property value for each measurement type. The variable name for the peak-to-peak measurement is m0 and the variable name for the absolute value measurement is m1.

Was this topic helpful?