From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

Rotate (Clock-Driven Logic)

Last Modified: July 25, 2018

Rotates the specified input (x) the number of specified bits (y).

connector_pane_image
datatype_icon

y

The number of bits to rotate x by.

If y is greater than 0, the node rotates x left y bits in the positive direction (from least significant to most significant bit) and inserts the high-order bits in the low-order bits. If y is less than 0, the node rotates x right y bits (from most significant to least significant bit) and inserts the low-order bits in the high-order bits.

datatype_icon

x

An input to this operation.

If x is an 8-, 16-, 32-, or 64-bit integer, then for any value of y, y ± 8, y ± 16, y ± 32, or y ± 64 yields the same output value, respectively, as y.

For example, if x is an 8-bit integer, y = 1 and y = 9 yield the same result.

datatype_icon

x rotated left by y

The result of the rotation. The data type of this output is determined by the input data types.

Where This Node Can Run:

Desktop OS: none

FPGA: All devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics