Component: SysBlocks (E-blocks 2)

From Flowcode Help
Jump to navigationJump to search
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.

FC6 Icon.png Sysblocks Fourier Series example


Macro reference

Initialise

Fc9-comp-macro.png Initialise
Initialise components 
Fc9-void-icon.png - VOID Return


LCDClear

Fc9-comp-macro.png LCDClear
 
Fc9-void-icon.png - VOID Return


LCDWriteString

Fc9-comp-macro.png LCDWriteString
 
Fc9-u8-icon.png - BYTE X
 
Fc9-u8-icon.png - BYTE Y
 
Fc9-string-icon.png - STRING Data
 
Fc9-void-icon.png - VOID Return


ReadEncoderCounter

Fc9-comp-macro.png ReadEncoderCounter
Reads the current dial counter This is a counter from -32768 to 32767 
Fc9-u8-icon.png - BYTE Channel
Range: 0-1 
Fc9-s16-icon.png - INT Return


ReadSwitch

Fc9-comp-macro.png ReadSwitch
Samples one of the digital switches 
Fc9-u8-icon.png - BYTE Channel
Range: 0-2 
Fc9-bool-icon.png - BOOL Return


ReadSwitches

Fc9-comp-macro.png ReadSwitches
Samples all of the digital switches and returns as a three bit value. 
Fc9-u8-icon.png - BYTE Return


ResetEncoderCounter

Fc9-comp-macro.png ResetEncoderCounter
Resets the encoder dial counter to zero 
Fc9-u8-icon.png - BYTE Channel
Range: 0-1 
Fc9-void-icon.png - VOID Return


SetDigitalPotWiper

Fc9-comp-macro.png SetDigitalPotWiper
Sets the value of one of the digital potentiometers. 
Fc9-u8-icon.png - BYTE Channel
Range: 0-5 
Fc9-u16-icon.png - UINT Value
129 Taps Range: 0-128 / 257 Taps Range: 0-256 
Fc9-void-icon.png - VOID Return


UsbGetByte

Fc9-comp-macro.png UsbGetByte
Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. 
Fc9-u16-icon.png - UINT Return


UsbGetNumberBytes

Fc9-comp-macro.png UsbGetNumberBytes
Returns the number of valid data bytes currently inside the buffer. 
Fc9-u16-icon.png - UINT Return


UsbLookForValue

Fc9-comp-macro.png UsbLookForValue
Scans the buffer for an array of specific values. Returns 0 if the value is not found. Returns 1 if the value is found. 
Fc9-string-icon.png - STRING Value
Value to look for, can be a string or byte array, 
Fc9-u8-icon.png - BYTE NumChars
The number of characters you wish to try and match 
Fc9-u8-icon.png - BYTE RemoveContent
0=Leave data alone, 1=Remove data from buffer 
Fc9-u8-icon.png - BYTE ResetFind
0=Continue the find from the last operation, 1=Start again 
Fc9-u8-icon.png - BYTE Return


UsbSendString

Fc9-comp-macro.png UsbSendString
Sends a string to the USB 
Fc9-string-icon.png - STRING Data
String to send 
Fc9-void-icon.png - VOID Return


WriteLED

Fc9-comp-macro.png WriteLED
Writes to one of the LEDs as a digital output 
Fc9-u8-icon.png - BYTE Channel
Range: 0-2 
Fc9-bool-icon.png - BOOL Value
0=Off, 1=On 
Fc9-void-icon.png - VOID Return


WriteLEDs

Fc9-comp-macro.png WriteLEDs
Writes to all of the LEDs as digital outputs 
Fc9-u8-icon.png - BYTE Values
Range: 0 (All Off) - 7 (All On) 
Fc9-void-icon.png - VOID Return


WriteVU

Fc9-comp-macro.png WriteVU
Writes to one of the 8-bit VU meters 
Fc9-u8-icon.png - BYTE Channel
0=VU_A, 1=VU_B 
Fc9-u8-icon.png - BYTE Value
Range: 0-255 
Fc9-void-icon.png - VOID Return


WriteVUBargraph

Fc9-comp-macro.png WriteVUBargraph
Outputs a bargraph to the VU allowing for level visualiusation. 
Fc9-u8-icon.png - BYTE Channel
0 = VU_A, 1=VU_B 
Fc9-u8-icon.png - BYTE Value
Range: 0 - 8 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png 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