Number to / from Bits Processors¶
The “Number to Bits” and “Bits to Number” processors are installed with the Dataristix Application. The “Number to Bits” processor converts a number input into separate bit value outputs, and the “Bits to Number” processor converts a number of bit value inputs into a number. These processors are available in Dataristix version 3 and later.
Add to Task¶
Add the respective processor to a task by dragging it from the “Build” panel onto the task’s “Task Builder” panel.
Processor Configuration¶
Select the respective processor item in the “Task Builder” panel to view its properties.
You can change the following properties.
Processor Topic Name
You can change the processor topic name to suit.
Number of Bits
Select 8, 16, 32, or 64 bits. The processor adapts to the chosen number of bits and increases or decreases the number of input or output tags accordingly. For the “Bits to Number” processor, the data type of the number output is adapted to Byte, UInt16, UInt32, or UInt64 respectively for these four values. A value outside this set of four is not rejected - any whole number of bits between 8 and 64 is accepted - but the “Bits to Number” output type in that case is always a 64-bit number, rather than one of the four listed types.
The number value tag (input for “Number to Bits”, output for “Bits to Number”) has the fixed name “Number”. The individual bit tags have fixed, zero-padded two-digit names in the form “Bit 00”, “Bit 01”, … “Bit 09”, “Bit 10”, … up to “Bit 63” for the chosen number of bits, where “Bit 00” is the least significant bit.
The two processors emit differently. “Number to Bits” emits a given bit’s output tag only when that specific bit’s value changes, not on every change of the “Number” input; bits that do not flip produce no output for that update. “Bits to Number” instead re-emits the combined “Number” output whenever any bit input is received, even if the recombined number is unchanged from the previous output.