BitwiseEncoder

Top  Previous  Next

CIRCON~1_img322

Takes in up to 32 numeric values and constructs (‘encodes’) a 32‑bit integer setting each bit to 1 or 0 based on the value (True or False respectively) of each corresponding input slot. Note that by default, only 8 input slots are shown. Input slots can be shown or hidden using the Format Slots dialog box

Inputs



 

 

Slots

Type

Default

Description

 

Bit0

Digital

Null

The first digital input whose value the block will interpret and use to set the corresponding bit in the Out integer.

 

Bit1

Digital

Null

The second digital input whose value the block will interpret and use to set the corresponding bit in the Out integer.

 

 

Bit7

Digital

Null

The eighth digital input whose value the block will interpret and use to set the corresponding bit in the Out integer.

 

Outputs


 

Slots

Type

Description

 

Out

Digital

The 32‑bit integer which the block has encoded from the input slots.