Jump to content

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

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(2 intermediate revisions by the same user not shown)
Line 71: Line 71:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''CollectNextDataBit'''
| width="90%" class="mtx-class-macrohead" | '''CollectNextDataBit'''
|-
|-
| colspan="2" | Gets the next value from the DSP buffer and attempt to add as a bit to the data queue.  
| colspan="2" | Gets the next value from the DSP buffer and attempt to add as a bit to the data queue.  
Line 85: Line 85:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountQueueData'''
| width="90%" class="mtx-class-macrohead" | '''CountQueueData'''
|-
|-
| colspan="2" | Returns the number of data bytes received and stored in the queue. 
| colspan="2" | Returns the number of data bytes received and stored in the queue. 
Line 99: Line 99:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByte'''
| width="90%" class="mtx-class-macrohead" | '''GetByte'''
|-
|-
| colspan="2" | Returns a byte value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns a byte value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 113: Line 113:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetByteArray'''
| width="90%" class="mtx-class-macrohead" | '''GetByteArray'''
|-
|-
| colspan="2" | Returns an array of byte values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns an array of byte values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 137: Line 137:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
| width="90%" class="mtx-class-macrohead" | '''GetFloat'''
|-
|-
| colspan="2" | Returns a float value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns a float value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 151: Line 151:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloatArray'''
| width="90%" class="mtx-class-macrohead" | '''GetFloatArray'''
|-
|-
| colspan="2" | Returns an array of float values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns an array of float values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 175: Line 175:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInt'''
| width="90%" class="mtx-class-macrohead" | '''GetInt'''
|-
|-
| colspan="2" | Returns an integer value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns an integer value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 189: Line 189:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIntArray'''
| width="90%" class="mtx-class-macrohead" | '''GetIntArray'''
|-
|-
| colspan="2" | Returns an array of integer values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns an array of integer values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 213: Line 213:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLong'''
| width="90%" class="mtx-class-macrohead" | '''GetLong'''
|-
|-
| colspan="2" | Returns a long value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns a long value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 227: Line 227:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLongArray'''
| width="90%" class="mtx-class-macrohead" | '''GetLongArray'''
|-
|-
| colspan="2" | Returns an array of long values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
| colspan="2" | Returns an array of long values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Line 251: Line 251:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetString'''
| width="90%" class="mtx-class-macrohead" | '''GetString'''
|-
|-
| colspan="2" | Collects a string from the receive buffer. 
| colspan="2" | Collects a string from the receive buffer. 
Line 271: Line 271:
|-
|-
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | DSP Connection Properties
| width="90%" class="mtx-class-propfolder" | DSP Connection Properties
|-
|-
|-
|-
Line 283: Line 283:
| colspan="2" | DSP component with output buffer to collect our data from. 
| colspan="2" | DSP component with output buffer to collect our data from. 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Data Queue Properties
| width="90%" class="mtx-class-propfolder" | Data Queue Properties
|-
|-
|-
|-

Latest revision as of 14:36, 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.