Creating a User-Defined Comparison VI
- Updated2025-11-07
- 2 minute(s) read
- Select File»New VI to create a new, blank VI.
- On the Controls palette, select to display the Variant & Class palette.
- Add a variant to the front panel and label the variant Resulting Value.
- Right-click the variant and select Change to Control from the shortcut menu.
- Add another variant to the front panel and label the variant Expected Value.
- Right-click the Expected Value variant and select Change to Control from the shortcut menu.
- On the Controls palette, select to display the Boolean palette.
- Add a Round LED or Square LED Boolean indicator to the front panel and label the Boolean indicator Comparison Result.
- Right-click the connector pane and select Patterns from
the shortcut menu. Select the following connector pane pattern
. - Assign each of the following connector pane terminals to a front panel control
or indicator.
- Top left terminal to the Resulting Value variant control.
- Bottom left terminal to the Expected Value variant control.
- Right terminal to the Comparison Result Boolean indicator.
Note You must configure the connector pane properly in order for the user-defined comparison VI to work properly. - Display the block diagram by selecting .
- Add or define your own comparison to the block diagram.
- Wire the Resulting Value and Expected Value variant controls to the comparison.
- Wire the result of the comparison to the Comparison
Result Boolean indicator.Note The comparison must return a Boolean data type.
- Select to save this user-defined comparison VI in an easily accessible location.