Table Of Contents

Decrement (G Dataflow)

Last Modified: December 18, 2017

Subtracts 1 from the input value.

connector_pane_image
datatype_icon

x

The value to decrement by 1. This input accepts the following data types:

  • scalar numbers
  • enumerated type values
  • an array or cluster of numbers
  • an array of clusters of numbers
  • waveforms

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.

datatype_icon

x - 1

The result of the decrement operation.

Behavior with Timestamps and Enumerated Values

If x is a timestamp value, this node decrements the time by one second. If x is an enumerated type value and you select the first enum value, this node returns the last enum value.

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.

Behavior for Enum Data

All arithmetic functions except Increment and Decrement treat enum data the same as an unsigned integer. Decrement changes the first enumerated value to the last value.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

Web Server: Supported in VIs that run in a web application


Recently Viewed Topics