Difference between revisions of "Component: Console Writer (Indicators)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
==Component Source Code==  | ==Component Source Code==  | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/  | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/ConsoleWriter.fcfx FC_Comp_Source_temp/ConsoleWriter.fcfx]  | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/  | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/ConsoleWriter.fcfx FC_Comp_Source_temp/ConsoleWriter.fcfx]  | 
==Detailed description==  | ==Detailed description==  | ||
| Line 74: | Line 74: | ||
{{Fcfile|Logging_Example.fcsx|Logging Example}}  | {{Fcfile|Logging_Example.fcsx|Logging Example}}  | ||
| + | |||
| + | |||
| Line 81: | Line 83: | ||
==Macro reference==  | ==Macro reference==  | ||
| − | ===  | + | ===AddString===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddString'''  | 
| + | |-  | ||
| + | | colspan="2" | Adds text string to the console window.   | ||
| + | |-  | ||
|-  | |-  | ||
| − | |   | + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING  | 
| + | | width="90%" | Data  | ||
|-  | |-  | ||
| + | | colspan="2" |    | ||
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
| Line 95: | Line 102: | ||
| − | ===  | + | ===Clear===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Clear'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Clears the contents of the console tab.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | + | | 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''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| − | ===  | + | ===CountLines===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountLines'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Counts the number of lines in the console.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u32-icon.png]] - ULONG  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| − | ===  | + | ===GetTextLine===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTextLine'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Gets the string data from a specific line in the console.   | 
|-  | |-  | ||
|-  | |-  | ||
| Line 142: | Line 144: | ||
| colspan="2" | Line number, -1 for the last line.   | | colspan="2" | Line number, -1 for the last line.   | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-string-icon.png]] - STRING  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 200: | Line 197: | ||
| − | ===  | + | ===SetTextLine===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTextLine'''  | 
| + | |-  | ||
| + | | colspan="2" | Sets the string data from a specific line in the console.   | ||
| + | |-  | ||
| + | |-  | ||
| + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG  | ||
| + | | width="90%" | Line  | ||
| + | |-  | ||
| + | | colspan="2" | Line number, -1 for the last line.   | ||
|-  | |-  | ||
| − | |   | + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING  | 
| + | | width="90%" | Data  | ||
|-  | |-  | ||
| + | | colspan="2" |    | ||
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
| Line 214: | Line 221: | ||
| − | ===  | + | ===ShowConsole===  | 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
|-  | |-  | ||
| 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]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowConsole'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Pops up the console window and shows the correct tab.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
Revision as of 11:59, 3 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Indicators | 
Contents
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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/ConsoleWriter.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/ConsoleWriter.fcfx
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 console window. | |
| Data | |
| Return | |
Clear
| Clear | |
| Clears the contents of the console tab. | |
| 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 | |
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 | |