Discrete System Tab

The Run Properties Editor can be used to edit the sample frequency of a discrete-time system in the model. 20-sim automatically detects the existence of discrete systems in a model. For each discrete system, one extra tab (Discrete System) is shown in the Run Properties Editor.

The Discrete Systems tab.

Items

 

  1. sample

  2. hold

  3. next

  4. previous

  5. sampletime

 

When a function has been found, the elements of the corresponding discrete system are identified by propagation of the equations. In order of appearance in the model, the discrete system is assigned a unique identifier:

 

  1. sample -> the variable that is assigned to the output of the sample function.

  2. hold -> the variable that is assigned to the output of the hold function.

  3. previous -> the discrete state corresponding with the previous function.

  4. next -> the discrete state corresponding with the next function.

  5. sampletime -> the variable that is equal to the sampletime.