pwm_ctrl

Purpose:

Control an actuator using pulse width modulation based on command inputs and error calculations.

Enter:

pwm_ctrl <actuator> <priority> <interval> [+c]

Where:

actuator

Specify the CyFlex label assigned to the actuator that will be controlled via pulse width modulation.

priority

Specify the priority level.

interval

Specify an existing process interval to set the master scheduler rate such as SLO.

+c

Optional. Specify this flag to indicate that the task should be registered as a critical task. If the task dies, CyFlex will stop the test being run.

Example:

pwm_ctrl exh_rest 10 SLO +c
The above command applies pwm control to the exhaust restriction. The task is also registered as watchdog-critical. If it stops responding CyFlex will stop the active test.

pwm_ctrl DilFlow 8 SLO +c
The above command starts the PWM control task for the dilution flow actuator with a priority of 8 and a master scheduler process interval of the slow rate. The task is watchdog-critical. If it stops responding, CyFlex will stop the active test.

Notes:

After starting pwm_ctrl, the task must be configured via the pwm_specs command.

See Also:

Pulse With Modulation Control, pwm_specs