Main Content

Configure Block Parameters

The block parameters define values for blocks in your model. For example, block parameters include channel numbers for multichannel boards, input and output voltage ranges, and sample time. For information about configuring block parameters for Speedgoat I/O modules, see the Speedgoat documentation at www.speedgoat.com/help.

This procedure uses the Simulink® model slrt_ex_osc . To open this model, in the MATLAB Command Window, type:

open_system(fullfile(matlabroot, 'toolbox', 'slrealtime', ...
'examples', 'slrt_ex_osc'))
  1. In the Simulink Editor, double-click the File Log block.

  2. Fill in the File Log dialog box. For example, enter a decimation value to reduce file logging data collection.

    Image of File Log block parameters dialog box

When you change block parameter values through the block parameters dialog box, the changes take effect when you build the real-time application. You can also change parameter values in a real-time application without rebuilding the application. For more information, see Tunable Block Parameters and Tunable Global Parameters.

Related Topics