Component: Console Writer (Indicators): Difference between revisions
Appearance
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 395: | Line 395: | ||
| colspan="2" | Automatically adds a timestamp to the console after a newline character has been received. | | colspan="2" | Automatically adds a timestamp to the console after a newline character has been received. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Timestamp | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 2.0 |
| Category | Indicators |
Console Writer component
A simple component to aid in creating and wiriting data to a console tab. Allows text to be coloured and automatically appended with a timestamp.
Version information
Library Version, Component Version, Date, Author, Info 4, 2.0, 02-07-24, BR, Added a load more functionality to the component related to cursor control
Detailed description
No detailed description exists yet for this component
Examples
A basic example using two circular knobs to simulate data e.g., temperature. Both xy chart and Console, log the data.
Macro reference
AddString
| AddString | |
| Adds text string to the end of the console window. | |
| Data | |
| Return | |
AddStringAtCursor
| AddStringAtCursor | |
| Adds text string to the current cursor position. | |
| Data | |
| Return | |
Clear
| Clear | |
| Clears the contents of the console tab. | |
| Return | |
ClearFromCursorToLineEnd
| ClearFromCursorToLineEnd | |
| Clears the contents of the current selected line from the cursor position to the end of the line. | |
| Return | |
ClearFromLineStartToCursor
| ClearFromLineStartToCursor | |
| Clears the contents of the current selected line from the start of the line to the cursor position. Sets the Column position to 0. | |
| Return | |
ClearLine
| ClearLine | |
| Clears all data from a specific line. Automatically sets the cursor to the start of the line. | |
| Line | |
| Line number, -1 for the last line. | |
| Return | |
ClearXCharsFromCursorPosition
| ClearXCharsFromCursorPosition | |
| Clears the specified number of characters starting from the cursor position. | |
| CharacterCount | |
| Number of characters to remove | |
| Return | |
CountLines
| CountLines | |
| Counts the number of lines in the console. | |
| Return | |
GetTextLine
| GetTextLine | |
| Gets the string data from a specific line in the console. | |
| Line | |
| Line number, -1 for the last line. | |
| Return | |
SetColour
| SetColour | |
| Allows for full RGB colour selection | |
| R | |
| Colour channel, Range: 0-255 | |
| G | |
| Colour channel, Range: 0-255 | |
| B | |
| Colour channel, Range: 0-255 | |
| Return | |
SetColourIdx
| SetColourIdx | |
| Sets the text colour from the properties selection of colours. | |
| Index | |
| Range: 0-3 | |
| Return | |
SetCursorPosition
| SetCursorPosition | |
| Sets the position of the cursor | |
| Column | |
| Character position along the line, starting from 0 | |
| Line | |
| Line number, -1 for the last line. | |
| Return | |
SetTextLine
| SetTextLine | |
| Sets the string data from a specific line in the console. | |
| Line | |
| Line number, -1 for the last line. | |
| Data | |
| Return | |
ShowConsole
| ShowConsole | |
| Pops up the console window and shows the correct tab. | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ConsoleWriter.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ConsoleWriter.fcfx