7 Calculations | 111
To edit a calculated signal
1. In the calculated signal list on the left of the window, select a calculated
signal.
2.
Click .
3. Change the data. For more information about the possible values of the
entry fields, see "To define a calculated signal" on page108.
To rename a calculated signal
1. In the calculated signal list on the left of the window, select a calculated
signal.
2.
Click .
3. Enter a new name.
Valid characters are a-z, A-Z, 0-9, underscore, point, and square brackets.
Square brackets must always occur in pairs. Other characters or blank
space are not allowed.
After saving, the new name is displayed in all instances where the cal-
culated signal is used.
To delete a calculated signal
1. In the calculated signal list on the left of the window, select a calculated
signal.
2.
Click .
The calculated signal is deleted but the assignment of the calculated sig-
nal to instruments is kept.
To duplicate a calculated signal
1. Select a calculated signal in the list on the left of the window.
2. In the context menu, select Clone calculated signal.
A new calculated signal with the given data from the selected signal is filled
in the form. The name is based on the selected signal.
7.2.3 Examples for Calculated Signals
7.2.3.1 Extracting Bits or Bit Fields from an Integer
To extract individual bits see "Extracting Bits from a Signal" on page98.
You can perform the following actions:
"To extract a single bit from an integer" below
"To extract a bit field from a signal" on the next page
To extract a single bit from an integer
1. Shift the integer such that the bit of interest is in the 0 position.
2. Apply a bit-wise AND with 1 to isolate the individual bit.
singleBit = (inputsignal >> BIT)& 1
MDA V8 | User Guide