Component: Data Queue to Bits (DSP Inputs): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 97: | Line 97: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CountQueueData''' | ||
|- | |- | ||
| colspan="2" | Returns the number of data bytes/bits remaining in the queue. The bit count includes start/stop bits. | | colspan="2" | Returns the number of data bytes/bits remaining in the queue. The bit count includes start/stop bits. | ||
| Line 116: | Line 116: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FetchNextDataBit''' | ||
|- | |- | ||
| colspan="2" | Gets the next stored bit from the data queue. If the data queue is empty then returns the default state. | | colspan="2" | Gets the next stored bit from the data queue. If the data queue is empty then returns the default state. | ||
| Line 130: | Line 130: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueByte''' | ||
|- | |- | ||
| colspan="2" | Adds a single byte value to the data buffer. | | colspan="2" | Adds a single byte value to the data buffer. | ||
| Line 149: | Line 149: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueByteArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of byte values to the data buffer. | | colspan="2" | Adds an array of byte values to the data buffer. | ||
| Line 173: | Line 173: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueFloat''' | ||
|- | |- | ||
| colspan="2" | Adds a single float value to the buffer. A 32-bit Float value occupies 4-bytes in the buffer. | | colspan="2" | Adds a single float value to the buffer. A 32-bit Float value occupies 4-bytes in the buffer. | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueFloatArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of float values to the data buffer. A 32-bit Float value occupies 4-bytes in the buffer. | | colspan="2" | Adds an array of float values to the data buffer. A 32-bit Float value occupies 4-bytes in the buffer. | ||
| Line 216: | Line 216: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueInt''' | ||
|- | |- | ||
| colspan="2" | Adds a single integer value to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | | colspan="2" | Adds a single integer value to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | ||
| Line 235: | Line 235: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueIntArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of integer values to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | | colspan="2" | Adds an array of integer values to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | ||
| Line 259: | Line 259: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueLong''' | ||
|- | |- | ||
| colspan="2" | Adds a single long value to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | | colspan="2" | Adds a single long value to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | ||
| Line 278: | Line 278: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueLongArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of long values to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | | colspan="2" | Adds an array of long values to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | ||
| Line 302: | Line 302: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''QueueString''' | ||
|- | |- | ||
| colspan="2" | Adds an string of characters to the data buffer. | | colspan="2" | Adds an string of characters to the data buffer. | ||
| Line 322: | Line 322: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | DSP Inputs |
Data Queue to Bits component
Allows data to be loaded into a buffer and then output a bit at a time into the DSP system. Useful for things like communications where data is modulated and sent out a bit at a time.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DSP_DataToBits.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DSP_DataToBits.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
CountQueueData
| CountQueueData | |
| Returns the number of data bytes/bits remaining in the queue. The bit count includes start/stop bits. | |
| CountBits | |
| 0=Return Byte Count, 1=Return Bit Count | |
| Return | |
FetchNextDataBit
| FetchNextDataBit | |
| Gets the next stored bit from the data queue. If the data queue is empty then returns the default state. | |
| Return | |
QueueByte
| QueueByte | |
| Adds a single byte value to the data buffer. | |
| Data | |
| Return | |
QueueByteArray
| QueueByteArray | |
| Adds an array of byte values to the data buffer. | |
| Data | |
| Count | |
| Return | |
QueueFloat
| QueueFloat | |
| Adds a single float value to the buffer. A 32-bit Float value occupies 4-bytes in the buffer. | |
| Data | |
| Return | |
QueueFloatArray
| QueueFloatArray | |
| Adds an array of float values to the data buffer. A 32-bit Float value occupies 4-bytes in the buffer. | |
| Data | |
| Count | |
| Return | |
QueueInt
| QueueInt | |
| Adds a single integer value to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | |
| Data | |
| Return | |
QueueIntArray
| QueueIntArray | |
| Adds an array of integer values to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. | |
| Data | |
| Count | |
| Return | |
QueueLong
| QueueLong | |
| Adds a single long value to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | |
| Data | |
| Return | |
QueueLongArray
| QueueLongArray | |
| Adds an array of long values to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. | |
| Data | |
| Count | |
| Return | |
QueueString
| QueueString | |
| Adds an string of characters to the data buffer. | |
| Data | |
| Return | |