Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

PWM Express VI

LabVIEW 2013 for myRIO Module Help

Edition Date: June 2013

Part Number: 373925A-01

»View Product Info

Owning Palette: myRIO VIs

Requires: myRIO Module

Generates a pulse width modulation (PWM) signal.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
NameSpecifies 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.
ChannelSpecifies the channel you want to use for generating the PWM signal.
FrequencySpecifies the frequency settings for the PWM signal. Frequency contains the following options:
  • Set using input to Express VI—Specifies to set the frequency by using the Frequency (Hz) block diagram input. This option allows you to set the frequency at run time.
  • Set constant—Specifies to use a constant frequency value.
    • Frequency value—Specifies the value of the frequency. The default is 1000.
    • Frequency unit—Specifies the unit of the frequency. The default is Hz.
    • Validate—Validates whether this Express VI can generate the frequency that you specify. If the specified frequency is not valid, this Express VI coerces the specified value to the nearest valid value.

      Related Information

      FPGA Clock Generation
Duty cycleSpecifies the percentage of time the PWM signal remains high over one PWM cycle. Duty cycle contains the following options:
  • Set using input to Express VI—Specifies to set the duty cycle by using the Duty Cycle (0-1) block diagram input. This option allows you to set the duty cycle at run time.
  • Set constant—Specifies to use a constant duty cycle value.
    • Duty cycle value—Specifies the value of the duty cycle. The default is 0.5.
Output previewDisplays a preview of the output PWM signal.
View CodeDisplays the underlying code of this Express VI.

Block Diagram Inputs

ParameterDescription
Duty Cycle (0-1)Specifies the percentage of time the PWM signal remains high over one PWM cycle.
Frequency (Hz)Specifies the frequency of the PWM signal, in hertz.
error in (no error)Describes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
error outContains error information. This output provides standard error out functionality.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit