Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When interfacing the test system with external hardware, it is important to confirm that the signals input to the real time target are properly received and interpreted by the simulation software.  In  In the case of a HIL system, we may need to validate both static digital signals and PWM gating signals acquired by the Digital Input channels.  Follow  Follow the procedure below to monitor Digital Input channel data in the Power Electronics Add-On.

  1. Follow the steps in the Prerequisite articles to create a VeriStand project with the Power Electronics Add-On and select a Hardware Configuration with support for digital input channels.

  2. Refer to the documentation for the selected Hardware Configuration to confirm the supported digital input voltage range and to associate the physical pins on the card to the Digital Input Channel names in VeriStand.

  3. Connect digital signals to the digital input channels of the FPGA board.

  4. In VeriStand, open the System Definition file and navigate to Power Electronics Add-On >> Hardware Configuration >> FPGAX >> Digital Inputs.

  5. Under Digital Input Settings, select Enable PWM Measurement Channels.

...

  1.  A folder called Advanced will be created under the Digital Inputs section of the tree.

...

  1. Image Added
  2. Save and close the System Definition File.

  3. Open or create a Screen (.nivsscr) file in the VeriStand project and add numeric indicators to monitor the desired Digital Input channels.

  4. To monitor a PWM signal acquired on a Digital Input channel, map a numeric indicator to the corresponding Duty Cycle and Frequency channels under Hardware Configuration >> FPGA X >> Digital Inputs >> Advanced.

  5. To monitor a static (non-PWM) signal acquired on a Digital Input channel, map a numeric indicator to the appropriate VeriStand channel in the Digital Inputs section of the tree (DI00, DI01, etc.).

  6. Deploy the simulation and monitor the signals in the user interface.

...

  1.  Verify that the PWM signals are operating at the expected duty cycle and frequency.

...

  1. Static signals will display a 1 when HIGH and a 0 when LOW.

...

  1. Image Added

Digital Inputs Section

Supported Hardware Configurations