Displaying the State of a Trigger Line as an Array
You can asses the state of a trigger line by using the niSync Property Node to display the state of a trigger line. Complete the following steps to display the state of a trigger line:
- Place the niSync Property Node on the block diagram.
- Click on the niSync Property Node, select Trigger State Properties, and select the trigger line you would like to evaluate from the context menu. You can select the following trigger lines:
- PXI_Star
- PXI_Trig
- PFI
- PFI_LVDS
- PXIe_DStarC
- Place the Number to Boolean Array function on the block diagram by selecting Boolean»Num to Array from the Functions Palette and wire it to the first parameter of the niSync Property Node.
- Wire an indicator to the output of the Number to Boolean Array function. A Boolean array appears 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 complete the preceding steps and run the program, you can display the state of a trigger line. 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 with a low logic state. Refer to Trigger State Properties to determine which bit corresponds to which trigger line.
 |
Tip You can place the Reverse 1D Array function (Array»Reverse 1D Array) on the block 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. |