Table Of Contents

Displaying the State of a Trigger Line as an Array

Last Modified: September 15, 2017

You can assess the state of a trigger line by using niSync Properties to display the state of a trigger line.

  1. Place niSync Properties on the diagram.
  2. Click on niSync Properties, select Trigger State, and select the trigger line you would like to evaluate as the first property. You can select the following trigger lines:
    • PXI_Star Line State
    • PXI_Trig Line State
    • PXIe_DStarC Line State
    • PFI Line State
    • PFI_LVDS Line State
    • PXI_Star Peripheral Line State
    • PXIe_DStarB Peripheral Line State
  3. Place the Number to Boolean Array function from the Conversion palette ( Data Types» Numeric» Conversion ) on the diagram. Wire the Number to Boolean Array function to the first parameter of niSync Properties.
  4. Wire an indicator to the output of Number to Boolean Array. A Boolean array can be placed on the front panel.
  5. Resize the array on the front panel so that the number of rows matches the number of lines in the chassis. For example, if you are trying to display the state of PXI_Star lines in a chassis with eight PXI_Star lines, the array should have eight Boolean indicators.
When you run the program, you can display the state of a single or multiple trigger lines. By default, the right-most bit of the binary value corresponds to the first element in the Boolean array. The corresponding Boolean indicator activates when the trigger line is in a high logic state, and deactivates in a low logic state.

You can place the Reverse 1D Array function ( Data Types» Array ) on the diagram to reverse the Boolean array. This displays the array with the left-most bit of the bitmap as the first element of the array instead of the last.

Recently Viewed Topics