Incorrect Pulse Width Measured When Using NI 9361 in LabVIEW FPGA

Updated Nov 24, 2022

Reported In

Hardware

  • NI-9361

Software

  • LabVIEW FPGA Module

Issue Details

I am using a cRIO(CompactRIO) 9054 with an NI 9361 module to acquire the pulse width of my waveform. However, when I am reading the value of pulse width, I am getting a junk value. Why is this happening?

Solution

An incorrect value of pulse width most likely indicates an issue with the module configuration. You will need to set the right measurement mode for the module by following the steps below:
  1. Open the Project Explorer Window for your specific project
  2. Expand the Options under the Chassis option under your compact RIO target, following which also expand the FPGA Target tree                                                                                                                                             image.png
  3. Right Click on your NI 9361 module and select Properties
  4. Select the channel from which you are acquiring the data and use the drop-down menu to configure the measurement mode to Pulse widthimage.png
  5. Click OK to save the changes.

Additional Information

The value that you will receive for the Pulse on and off times as will be in terms of ticks. In order to get the value in seconds, you will need to multiply the value in ticks with a factor of 1/onboard clock frequency.