Component: Circular Buffer Free Sim (Buffer)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 1.5 |
Category | Buffer |
Contents
Circular Buffer Free Sim component
Circular buffer component allowing easy and efficient first in first out (FIFO) style data byte storage. Useful when used with a comms component to capture data as it comes in ready for processing when we have time. Also features macros to allow you to check for specific incoming responses such as "OK" or "ERROR".
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CircularBuffer_FreeSim.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CircularBuffer_FreeSim.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
FlushBuffer
![]() |
FlushBuffer |
Clears the contents of the buffer and re-initialises the index locations. | |
![]() |
Return |
GetByte
![]() |
GetByte |
Reads the next available byte from the circular buffer, Returns 255/512 if the buffer is empty. | |
![]() |
Return |
GetConsoleHandle
![]() |
GetConsoleHandle |
Gets the handle to the console allowing data displaying on the panel etc. | |
![]() |
Return |
GetIndexedByte
![]() |
GetIndexedByte |
Gets the value of a single byte at a known location in the buffer. Leaves the buffer contents and pointers untouched. | |
![]() |
address |
![]() |
Return |
GetNumberBytes
![]() |
GetNumberBytes |
Returns the number of valid data bytes currently inside the buffer. | |
![]() |
Return |
LookForValue
PeekByte
![]() |
PeekByte |
Reads the next available byte from the circular buffer without advancing the current index, Returns 255/512 if the buffer is empty. | |
![]() |
Return |
PutByte
WaitForValue