PWM

Handles the PWM outputs on the VMX.

../../../../../_images/pwm-1.png
Description of PWM

vi

Attributes

PWM

PWM initialization

Write

PWM writing

PWM (vi)

../../../../../_images/pwm-2.png

Is a class that contains the code for setting the PWM value on the PWM ports on the VMX. Has only a HG_LIB output.

Write

../../../../../_images/pwm-3.png

A vi that allows for writing the PWM value to the port specified by the Create ID vi.

Inputs and Outputs

Name

I/O

Attribute

PWM in

Input

The input cluster from Create ID

PWM

Input

The duty cycle to set the PWM to

error in (no error)

Input

The error input cluster

PWM out

Output

The output cluster to go to Delete ID

error out

Output

The error output cluster

PWM Example

This example shows the writing of a PWM value to a Servo on digital port 14 to make it move.

../../../../../_images/pwm-example.png