Computes the difference between numbers, timestamps, or waveforms.
You cannot subtract a timestamp from a numeric value.
x
The value to subtract from.
This input supports scalar numbers, enumerated type values, timestamps, waveforms, and any data type that contains only these data types, such as an array or cluster of numbers.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.
y
The value to subtract from the other input.
This input supports scalar numbers, enumerated type values, timestamps, waveforms, and any data type that contains only these data types, such as an array or cluster of numbers.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.
error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
This input appears only when you wire a waveform to
input.
Many nodes provide an
error in
input and an
error out
output so that the node can respond to and communicate errors that occur while code is running. The value of
error in
specifies whether an error occurred before the node runs. Most nodes respond to values of
error in
in a standard, predictable way.
error in
does not contain an error
|
error in
contains an error
|
|
|
If no error occurred before the node runs, the node begins execution normally.
If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as
error out.
|
If an error occurred before the node runs, the node does not execute. Instead, it returns the
error in
value as
error out.
|
x - y
The difference between the two inputs.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.
error out
The node produces this output according to standard error behavior.
This output appears only when you wire a waveform to
input.
Many nodes provide an
error in
input and an
error out
output so that the node can respond to and communicate errors that occur while code is running. The value of
error in
specifies whether an error occurred before the node runs. Most nodes respond to values of
error in
in a standard, predictable way.
error in
does not contain an error
|
error in
contains an error
|
|
|
If no error occurred before the node runs, the node begins execution normally.
If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as
error out.
|
If an error occurred before the node runs, the node does not execute. Instead, it returns the
error in
value as
error out.
|
Where This Node Can Run:
Desktop OS: Windows
FPGA:
All devices (only within an optimized FPGA VI)
Web Server: Supported in VIs that run in a web application