next up previous
Next: Difficult Example Up: Examples Previous: Simplest Example

Simple Example

This example creates a second column with parameters. There is a vertical line separating both columns. There are two inputs, two outputs, and four data points per cycle are transferred to the reactive tasks from the embedded tasks.

Figure 3.2: Simple example. Two columns are displayed with all labeled spin buttons
\includegraphics[]{Figures/simple.eps}

# Example project. This places two columns on the screen

# first lets put in the required tokens
inputs 2
outputs 2
data_size 4

# now let's define the two columns
start_col h
      label  'Radial Controller'
      spin_with_label 'Kp',-100,100,10,0    # Proportional Gain
      spin_with_label 'Kd',-200,200,20,1    # Derivative Gain
      spin_with_label 'Wn',0,2000,100,2     # Low pass corner frequency
      spin_with_label 'DL', 0,20,3,3        # Derivative Limit
      spin_with_label 'AW', 0, 100, 5, 4    # Integrator anti-windup
end_col

v_separator

start_col h
      label  'Axial Controller'
      spin_with_label 'Kp',-100,100,10,5    # Proportional Gain
      spin_with_label 'Kd',-200,200,20,6    # Derivative Gain
      spin_with_label 'Wn',0,2000,100,7     # Low pass corner frequency
      spin_with_label 'DL', 0,20,3,8        # Derivative Limit
      spin_with_label 'AW', 0, 100, 5, 9    # Integrator anti-windup
end_col

# this is another comment with lots of #'s, *'s, @$%@$&^#%&, etc.



Michael Barabanov 2001-06-19