PWM Express VI
- Updated2023-02-21
- 2 minute(s) read
Requires: myRIO Toolkit or roboRIO Toolkit
Generates a pulse width modulation (PWM) signal to an external peripheral through the PWM channels on the myRIO or the roboRIO.
The roboRIO uses a 6 V voltage rail on the PWM port for powering servos and provides 5 V DIO lines for generating PWM signals.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
Dialog Box Options
| Parameter | Description |
|---|---|
| Node name | Specifies the name of this Express VI. You can also double-click the name of this Express VI on the expandable node to edit the name. |
| Channel | Specifies the channel to generate the PWM signal. |
| Frequency | Specifies the frequency settings for the PWM signal. If you specify a frequency that is invalid, this Express VI coerces the specified value to the nearest valid value when you click the Validate button. Frequency contains the following options:
|
| Duty cycle | Specifies the percentage of time the PWM signal remains high over one PWM cycle. Duty cycle contains the following options:
|
| Output preview | Displays a preview of the output PWM signal. |
| View Code | Displays the underlying code of this Express VI. |
| Connection Diagram | Shows the I/O connector pinouts on the myRIO or the roboRIO. The highlighted pinouts represent the channels that you configure. |
Block Diagram Inputs
| Parameter | Description |
|---|---|
| Duty Cycle | Specifies the percentage of time the PWM signal remains high over one PWM cycle. Valid values must be within the range [0, 1]. |
| Frequency [Hz] | Specifies the frequency in hertz of the PWM signal. |
| error in (no error) | Describes error conditions that occur before this node runs. |
Block Diagram Outputs
| Parameter | Description |
|---|---|
| error out | Contains error information. This output provides standard error out functionality. |
PWM Details
Related Information
I/O Connectors (myRIO Toolkit)
I/O Connectors (roboRIO Toolkit)
Generating FPGA Clocks (myRIO Toolkit)
Generating FPGA Clocks (roboRIO Toolkit)