Jump to content

Component: Bits to Data Queue (DSP Outputs): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 70: Line 70:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CollectNextDataBit'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CollectNextDataBit'''
|-
|-
Line 84: Line 84:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountQueueData'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountQueueData'''
|-
|-
Line 98: Line 98:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByte'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByte'''
|-
|-
Line 112: Line 112:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByteArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByteArray'''
|-
|-
Line 136: Line 136:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
|-
|-
Line 150: Line 150:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloatArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloatArray'''
|-
|-
Line 174: Line 174:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInt'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInt'''
|-
|-
Line 188: Line 188:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIntArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIntArray'''
|-
|-
Line 212: Line 212:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLong'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLong'''
|-
|-
Line 226: Line 226:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLongArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLongArray'''
|-
|-
Line 250: Line 250:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetString'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetString'''
|-
|-

Revision as of 14:17, 13 July 2026

Author Matrix Ltd
Version 1.2
Category DSP Outputs


Bits to Data Queue component

Allows data to be input a bit at a time from the DSP system and passed into a buffer. 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_BitsToData.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_BitsToData.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples









Macro reference

CollectNextDataBit

CollectNextDataBit
Gets the next value from the DSP buffer and attempt to add as a bit to the data queue.  
- VOID Return


CountQueueData

CountQueueData
Returns the number of data bytes received and stored in the queue. 
- UINT Return


GetByte

GetByte
Returns a byte value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- BYTE Return


GetByteArray

GetByteArray
Returns an array of byte values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- BYTE Data
 
- UINT Count
 
- VOID Return


GetFloat

GetFloat
Returns a float value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- FLOAT Return


GetFloatArray

GetFloatArray
Returns an array of float values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- FLOAT Data
 
- UINT Count
 
- VOID Return


GetInt

GetInt
Returns an integer value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- UINT Return


GetIntArray

GetIntArray
Returns an array of integer values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- UINT Data
 
- UINT Count
 
- VOID Return


GetLong

GetLong
Returns a long value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- ULONG Return


GetLongArray

GetLongArray
Returns an array of long values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
- ULONG Data
 
- UINT Count
 
- VOID Return


GetString

GetString
Collects a string from the receive buffer. 
- UINT MaxLength
Maximum number of characters to try and receive 
- STRING Return


Property reference

Properties
DSP Connection Properties
Connect To
DSP component with output buffer to collect our data from. 
Data Queue Properties
Buffer Size
Sets the number of byte elements inside the circular buffer. 
Logic Threshold
If the DSP value is >= the threshold value then a logic 1 will be stored, otherwise a logic 0 will be stored. 
Tick Divider
Sometimes you will not want a new data bit every DSP tick. The Tick Divider property allow you to set how many DSP ticks to wait before writing the next bit from the data buffer. 
Data Order
Selects the bit order to allow the most significant or least significant bit to be sent first. 
Default State
Value used when the data queue is empty 
Data Format
Decides if each byte is sent out as 8-bit, 9-bit or 10-bit packets. The 9-bit and 10-bit packet types will include a start bit that is opposite to the default state. The 10-bit packet types will also include a stop bit that is the same as the default state.