Component: Input Digital (DSP Inputs): Difference between revisions
Appearance
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 81: | Line 81: | ||
===AddByte=== | ===AddByte=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddByte''' | ||
|- | |- | ||
| colspan="2" | Adds a single byte value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds a single byte value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 100: | Line 100: | ||
===AddByteArray=== | ===AddByteArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddByteArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of byte values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds an array of byte values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 124: | Line 124: | ||
===AddFloat=== | ===AddFloat=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddFloat''' | ||
|- | |- | ||
| colspan="2" | Adds a single float value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds a single float value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 143: | Line 143: | ||
===AddFloatArray=== | ===AddFloatArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddFloatArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of float values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds an array of float values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 167: | Line 167: | ||
===AddInt=== | ===AddInt=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddInt''' | ||
|- | |- | ||
| colspan="2" | Adds a single integer value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds a single integer value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 186: | Line 186: | ||
===AddIntArray=== | ===AddIntArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddIntArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of integer values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds an array of integer values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 210: | Line 210: | ||
===AddLong=== | ===AddLong=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddLong''' | ||
|- | |- | ||
| colspan="2" | Adds a single long value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds a single long value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 229: | Line 229: | ||
===AddLongArray=== | ===AddLongArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddLongArray''' | ||
|- | |- | ||
| colspan="2" | Adds an array of long values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | | colspan="2" | Adds an array of long values to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | ||
| Line 254: | Line 254: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | DSP Inputs |
Input Digital component
Allows the values from a buffer to be assigned. Either a value at a time or from an array. The input signal would usually take the form of an ADC reading or raw data values.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DSP_Input.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DSP_Input.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example demonstrating how to pass a value into the DSP chain.
The input value in the example uses an ADC reading but this can be taken from anything such as a reading from a CSV file on a SD card or a value passed by a sensor on a I2C bus etc.
Macro reference
AddByte
| AddByte | |
| Adds a single byte value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | |
| Data | |
| Return | |
AddByteArray
AddFloat
| AddFloat | |
| Adds a single float value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | |
| Data | |
| Return | |
AddFloatArray
AddInt
| AddInt | |
| Adds a single integer value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | |
| Data | |
| Return | |
AddIntArray
AddLong
| AddLong | |
| Adds a single long value to the current location in the specified buffer. Auto increments current location if output buffer size is greater than 1. | |
| Data | |
| Return | |
AddLongArray
Property reference
| Properties | |
| Buffer Size | |
| Number of individual elements the buffer can store, default 1. | |
| Buffer Type | |
| Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. | |