Difference between revisions of "Component: Input Digital (DSP)"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==Input Digital component== | ==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. | 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 Pack== | ||
+ | |||
+ | DSP | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 26: | Line 32: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 45: | Line 53: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddByte''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddByte''' | ||
|- | |- | ||
− | | colspan="2" | Adds a single byte value to the current location in the specified | + | | 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. |
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | Data | | width="90%" | Data | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" | Data | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
+ | | width="90%" | Count | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
Line 63: | Line 94: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddByteArray''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddByteArray''' | ||
|- | |- | ||
− | | colspan="2" | Adds an array of byte values to the specified | + | | 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 86: | Line 117: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddLong''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddLong''' | ||
|- | |- | ||
− | | colspan="2" | Adds a single | + | | 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 104: | Line 135: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddInt''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddInt''' | ||
|- | |- | ||
− | | colspan="2" | Adds a single | + | | 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 122: | Line 153: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddLongArray''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddLongArray''' | ||
|- | |- | ||
− | | colspan="2" | Adds an array of long values to the specified | + | | 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 145: | Line 176: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddIntArray''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddIntArray''' | ||
|- | |- | ||
− | | colspan="2" | Adds an array of integer values to the specified | + | | 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 155: | Line 186: | ||
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| width="90%" | Count | | width="90%" | Count | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" | Data | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | |
Revision as of 16:18, 7 January 2022
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
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 Pack
DSP
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.
Delay
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.
Downloadable macro reference
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
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 |