Documentation Home Page Power Electronics Add-On for NI VeriStand Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Use the PWM Generators to generate pulse width modulated signals on the FPGA. These signals can be mapped directly to Digital Output channels or circuit model Switches

Configuration Page

In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device and select Circuit Model >> PWM Generators to display this page. Use this page to configure the PWM generators.

For each PWM Generator, the following parameters are available at edit-time. 

PWM Generator Settings

UnitsDefault ValueDescription
Frequency

Hz

0

Defines the frequency of the carrier signal that is used to generate PWM.

Duty Cycle%0%Fraction of one period for which the PWM signal is active, as a percentage. Changing this value will update the default value of the Duty Cycle channel that corresponds to the selected PWM generator. 
Dead TimeSeconds0sTime during which both the PWM signal and its complementary are held in an inactive state, immediately before the PWM signal goes active.
Phase Shift

Degrees

0 deg

Phase offset of the generated PWM relative to the other PWMs using the same frequency engine. 

Polarity
High

The polarity of the signal. 

  • Active High - Outputs a HIGH voltage when the signal is True and a LOW voltage when the signal is False. 
  • Active Low - Outputs a HIGH voltage when the signal is False and a LOW voltage when the signal is True.
Wave Mode
Asymmetric

Defines the location of the signal pulse within the PWM period. 

  • Symmetric - The pulse is centered within the PWM period. 
  • Asymmetric - The rising edge of the pulse is aligned with beginning of the PWM period. 

Update Moment
Beginning

Defines when the Duty Cycle is updated to a commanded value.

  • Beginning - The PWM duty cycle is updated to a new value at the beginning of the PWM period.
  • Middle - The PWM duty cycle is updated to a new value and the middle of the PWM period.
  • Both - The PWM duty cycle is updated to a new value at the beginning and middle of the PWM period.

PWM Generators Section Channels

In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device, then Circuit Model >> PWM Generators to display the following subsections and custom device channels. Assign values to the channels to configure the PWM Generators. The value of an input channel can be modified dynamically at execution time.

PWM Generator X

Channel NameType

Units

Default Value

Description


Duty CycleInput%0%Fraction of one period for which the PWM signal is active, as a percentage
PWM Reset

Channel NameType

Units

Default Value

Description


PWM ResetInput
0 (False)
  • False - Normal operation
  • True - Resets all PWMs
  • No labels