Add a calculated Boolean channel to produce a high or low Boolean digital signal based on an analog channel.
In the Channel Specification, click the Add Calculation button and select Boolean Formula from the pull-down options. A calculated channel appears in the Channel Specification under its host system.
Configure the calculated channel.
Specify a name and description for the calculated channel.
For examples of formula syntax and a list of supported operators, constants, and functions, refer to the Calculation Formula Options topic.
Within the formula, enter the name of a hardware channel whose data you want to manipulate, ensuring that the channel name is enclosed in single quotes (for example, 'ai 0'). Available channel suggestions appear when you begin typing (‘).
In Formula, specify a formula to apply to data from an existing analog channel. Suggested formulas appear when you begin typing.
After you configure the calculated channel, you can see the live value reflecting whether the signal is Low or High. You can use the formula-based calculated channel as an input for a trigger event, or like any other channel defined in the Channel Specification.
Calculated channel data is logged with all other channels configured in your Channel Specification. For more information on logging data, refer to the Logging Data topic.