Component: SysBlocks (E-blocks 2): Difference between revisions
Appearance
No edit summary |
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
||
| Line 32: | Line 32: | ||
===Initialise=== | ===Initialise=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 46: | Line 46: | ||
===LCDClear=== | ===LCDClear=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 60: | Line 60: | ||
===LCDWriteString=== | ===LCDWriteString=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 89: | Line 89: | ||
===ReadEncoderCounter=== | ===ReadEncoderCounter=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 108: | Line 108: | ||
===ReadSwitch=== | ===ReadSwitch=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 127: | Line 127: | ||
===ReadSwitches=== | ===ReadSwitches=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 141: | Line 141: | ||
===ResetEncoderCounter=== | ===ResetEncoderCounter=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 160: | Line 160: | ||
===SetDigitalPotWiper=== | ===SetDigitalPotWiper=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 184: | Line 184: | ||
===UsbGetByte=== | ===UsbGetByte=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 198: | Line 198: | ||
===UsbGetNumberBytes=== | ===UsbGetNumberBytes=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 212: | Line 212: | ||
===UsbLookForValue=== | ===UsbLookForValue=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 246: | Line 246: | ||
===UsbSendString=== | ===UsbSendString=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 265: | Line 265: | ||
===WriteLED=== | ===WriteLED=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 289: | Line 289: | ||
===WriteLEDs=== | ===WriteLEDs=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 308: | Line 308: | ||
===WriteVU=== | ===WriteVU=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 332: | Line 332: | ||
===WriteVUBargraph=== | ===WriteVUBargraph=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 357: | Line 357: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
Revision as of 14:15, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | E-blocks 2 |
SysBlocks component
Detailed description
Please click here for a Sysblocks getting started guide.
More information on the Sysblocks component can be found here.
Examples
Here is an example of Sysblocks in action, here we are generating the fourier series.
Sysblocks Fourier Series example
Macro reference
Initialise
| Initialise | |
| Initialise components | |
| Return | |
LCDClear
| LCDClear | |
| Return | |
LCDWriteString
| LCDWriteString | |
| X | |
| Y | |
| Data | |
| Return | |
ReadEncoderCounter
| ReadEncoderCounter | |
| Reads the current dial counter This is a counter from -32768 to 32767 | |
| Channel | |
| Range: 0-1 | |
| Return | |
ReadSwitch
| ReadSwitch | |
| Samples one of the digital switches | |
| Channel | |
| Range: 0-2 | |
| Return | |
ReadSwitches
| ReadSwitches | |
| Samples all of the digital switches and returns as a three bit value. | |
| Return | |
ResetEncoderCounter
| ResetEncoderCounter | |
| Resets the encoder dial counter to zero | |
| Channel | |
| Range: 0-1 | |
| Return | |
SetDigitalPotWiper
| SetDigitalPotWiper | |
| Sets the value of one of the digital potentiometers. | |
| Channel | |
| Range: 0-5 | |
| Value | |
| 129 Taps Range: 0-128 / 257 Taps Range: 0-256 | |
| Return | |
UsbGetByte
| UsbGetByte | |
| Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. | |
| Return | |
UsbGetNumberBytes
| UsbGetNumberBytes | |
| Returns the number of valid data bytes currently inside the buffer. | |
| Return | |
UsbLookForValue
UsbSendString
| UsbSendString | |
| Sends a string to the USB | |
| Data | |
| String to send | |
| Return | |
WriteLED
| WriteLED | |
| Writes to one of the LEDs as a digital output | |
| Channel | |
| Range: 0-2 | |
| Value | |
| 0=Off, 1=On | |
| Return | |
WriteLEDs
| WriteLEDs | |
| Writes to all of the LEDs as digital outputs | |
| Values | |
| Range: 0 (All Off) - 7 (All On) | |
| Return | |
WriteVU
| WriteVU | |
| Writes to one of the 8-bit VU meters | |
| Channel | |
| 0=VU_A, 1=VU_B | |
| Value | |
| Range: 0-255 | |
| Return | |
WriteVUBargraph
| WriteVUBargraph | |
| Outputs a bargraph to the VU allowing for level visualiusation. | |
| Channel | |
| 0 = VU_A, 1=VU_B | |
| Value | |
| Range: 0 - 8 | |
| Return | |
Property reference
| Properties |
==Component Source Code==
Please click here to download the component source project: FC_Comp_Source_SysBlocks.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_SysBlocks.fcfx