You can assess the state of a trigger line by using
to display the state of a trigger line.
on the diagram.
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
Number to Boolean Array
function from the Conversion palette ( ) on the diagram. Wire the Number to Boolean Array function to the first parameter of
Wire an indicator to the output of
Number to Boolean Array.
A Boolean array can be placed on the front panel.
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 ( ) 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.