Defining Derived Signals
Overview
A derived signal is a result calculated from signals registered in the Catalog. It differs from a bus signal, which directly extracts specific bits from the bus. You can create numeric conversions, comparisons, and combinations of multiple conditions.
Creation Procedure
- Stop monitoring and select the Set to use in Signal Catalog.
- Click “+ Derived.”
- Enter Signal name.
- Find an input signal under Signals on the right of the Formula tab and double-click it to insert it into the formula. Add operators or Functions as needed.
- Check Detected result and the validation results at the bottom of the screen. For numeric results, configure Unit and Decimal places.
- Check input signals, dependencies, and channel assignments in Inputs and Details.
- Configure Display settings and Alert as needed, then confirm with OK.
- Check membership, Current Set, and display destinations in the Catalog, then save with Save.
Figure 1. Checking available functions under Functions in the creation screen.
Figure 1 shows Functions for New Signal Set. The signal name and formula are still blank, so the derived signal has not yet been confirmed. Inputs at the bottom also shows Not checked.
Screen Reference
| Item | Description |
|---|---|
| Signal name | Name of the derived signal. |
| Detected result | Result type inferred from the formula, such as Number or Boolean. |
| Unit | Display unit for numeric results. The unit name alone does not convert values. |
| Formula | Build a formula using input signals, operators, constants, and functions. |
| Decimal places | Number of decimal places displayed. Check the format under Example. |
| Signals / Search | Find and select input candidates to insert into the formula. |
| Functions | Insert functions such as ABS, MIN, MAX, and IF into the formula. |
| Examples | View formula examples. |
| Inputs / Details | Check required inputs, dependencies, and availability. |
| Display settings | Configure destinations such as the value list and graphs. |
| Alert | Configure alert conditions for the derived result. |
| OK / Cancel | Confirm this edit or discard unconfirmed changes. |
Formula Examples
Signal references inserted from Signals have the form “SIG(number).” The number is an identifier in the Catalog. Do not enter the example numbers unchanged; insert the actual signal you use from the list.
| Purpose | Example formula | Result |
|---|---|---|
| Convert speed from km/h to m/s | SIG(number) / 3.6 | Input 36 km/h gives 10. Set Unit to m/s. |
| Test whether a value reaches an upper limit | SIG(number) >= 10 | Produces a Boolean result. |
| Absolute value | ABS(SIG(number)) | Absolute value of a number. |
| Smaller of two signals | MIN(SIG(number1), SIG(number2)) | Numeric comparison. |
| Select a number by condition | IF(SIG(number) >= 10, 1, 0) | 1 if the condition is true, otherwise 0. |
Use AND/OR/NOT for Boolean conditions. The IF condition must be Boolean, and its true/false values must have the same type. You can also insert comparison symbols and parentheses using the on-screen buttons.
Example: Converting Speed to m/s
Figures 2 and 3 use Speed from the sample LDF in a Set named LIN Sensor. This differs from New Signal Set in Figure 1, so check which Set you are editing.
- Select
LIN Sensorin the Catalog, click + Derived, and set Signal name to Speed_mps. - Search for Speed under Signals, select Speed belonging to LIN SensorFrame, insert it into the formula, and append
/ 3.6. If several signals are named Speed, compare their Protocol, frame, ID, and CH. - Check that Detected result is Number, then set Unit to m/s and Decimal places to 3.
- Check that Inputs is Ready and that the input in Details is Speed belonging to LIN SensorFrame. Also check the input Speed's channel assignment in the Catalog. This example uses CH1-1. Turn on Values under Display settings and click OK to register it.
Figure 2. Creating Speed_mps to convert Speed to m/s.
Figure 2 selects Speed | LIN | CatalogId 46 under Signals, so the formula is SIG(46) / 3.6. Here, 46 is the identifier within this Catalog, not the LIN frame ID. In actual operation, insert the target signal from Signals rather than copying the number in the figure.
- Check Current Set and the Values display targets, start monitoring, and compare the input Speed with the derived Speed_mps on the same screen. Figure 3 shows Speed at 10 km/h and Speed_mps at 2.778 m/s, matching 10 ÷ 3.6 = 2.777… displayed to 3 decimal places.
Figure 3. Comparing input Speed and derived Speed_mps in Values.
In Figure 3's Time/Value view, Speed, State, and Speed_mps all have Time +0000177.002582 and Status Received. This example was captured by actually transmitting ID 0x10 with data “1E 01” as Tx using Master Sim. on CH1-1. Input Speed is 10 km/h converted from Raw value 30; the derived formula divides this 10 by 3.6. For source-byte extraction and transmission/reception direction, also see the basic operations. Do not compare unavailable No Data as though it were 0.
Derived values are used for display and analysis, but are not direct bit-editing targets for transmission data or selectable targets for Signal Trigger.
Input Signals and Sets
Adding a derived signal to a Set also brings its required input signals under management. Do not estimate limits using only the number of derived signals; count required input signals too.
Input bus signals require definitions matching the target frames and channel assignments. Do not treat the result as a normal number if an input has not been received, is unassigned, cannot be referenced, or is otherwise unavailable to the formula. Check validation messages and correct circular references or type mismatches.
If the input channel cannot be verified during automatic restoration of a saved Current Set, derived signals depending on that input also remain pending. Reconnect the target device and use “Device” → “Refresh” to recheck assignments.
When using multiple signals, inputs may update at different frame intervals. Check not only the calculated result but also the input update states and source frames.
Checking Edited Results
Check the input and derived signals in Current Set and compare results against manual calculations using known input values. Recheck Signals references and Inputs after renaming a signal or replacing source definitions.
See Figure 3 for an actual display example. Place input Speed and derived Speed_mps together in Values and compare Time, Value, and Status.
Save the configuration to MPXSIG, including derived signals.