Difference between revisions of "Component: Console Writer (Indicators)"

From Flowcode Help
Jump to navigationJump to search
 
(4 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
==Console Writer component==
 
==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.
 
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 Pack==
 +
 +
FREE
  
 
==Detailed description==
 
==Detailed description==
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 28: Line 40:
  
  
 +
A basic example using two circular knobs to simulate data e.g., temperature.
 +
Both xy chart and Console, log the data.
  
 
+
{{Fcfile|Logging_Example.fcsx|Logging Example}}
''<span style="color:red;">No additional examples</span>''
 
 
 
  
 
==Downloadable macro reference==
 
==Downloadable macro reference==
Line 87: Line 99:
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:]] -  
+
| width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 
| width="90%" | Line
 
| width="90%" | Line
 
|-
 
|-
Line 142: Line 154:
 
|-
 
|-
 
| colspan="2" | Range: 0-3&nbsp;
 
| colspan="2" | Range: 0-3&nbsp;
 +
|-
 +
| 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''
 +
|}
 +
 +
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowConsole'''
 +
|-
 +
| colspan="2" | Pops up the console window and shows the correct tab.&nbsp;
 +
|-
 
|-
 
|-
 
| 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 156: Line 181:
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:]] -  
+
| width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 
| width="90%" | Line
 
| width="90%" | Line
 
|-
 
|-
Line 215: Line 240:
 
|-
 
|-
 
| colspan="2" | Automatically adds a timestamp to the console after a newline character has been received.&nbsp;
 
| colspan="2" | Automatically adds a timestamp to the console after a newline character has been received.&nbsp;
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Timestamp
 +
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
Line 245: Line 274:
 
|-
 
|-
 
| colspan="2" | Defines the colour of the time stamp text&nbsp;
 
| colspan="2" | Defines the colour of the time stamp text&nbsp;
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
 
|-
 
 
|}
 
|}

Latest revision as of 17:22, 9 November 2022

Author Matrix TSL
Version 1.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.

Component Pack

FREE

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.

FC6 Icon.png Logging Example

Downloadable macro reference

Fc9-comp-macro.png Clear
Clears the contents of the console tab. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png CountLines
Counts the number of lines in the console. 
Fc9-u32-icon.png - ULONG Return


Fc9-comp-macro.png AddString
Adds text string to the console window. 
Fc9-string-icon.png - STRING Data
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetTextLine
Sets the string data from a specific line in the console. 
Fc9-s32-icon.png - LONG Line
Line number, -1 for the last line. 
Fc9-string-icon.png - STRING Data
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetColour
Allows for full RGB colour selection 
Fc9-u8-icon.png - BYTE R
Colour channel, Range: 0-255 
Fc9-u8-icon.png - BYTE G
Colour channel, Range: 0-255 
Fc9-u8-icon.png - BYTE B
Colour channel, Range: 0-255 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetColourIdx
Sets the text colour from the properties selection of colours. 
Fc9-u8-icon.png - BYTE Index
Range: 0-3 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ShowConsole
Pops up the console window and shows the correct tab. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetTextLine
Gets the string data from a specific line in the console. 
Fc9-s32-icon.png - LONG Line
Line number, -1 for the last line. 
Fc9-string-icon.png - STRING Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-10-icon.png Console Name
Textual name of the console shown as the tab name at the top of the console window. 
Fc9-type-1-icon.png Colour 0
Used to define a colour channel referenced by the SetColourIdx component macro call. 
Fc9-type-1-icon.png Colour 1
Used to define a colour channel referenced by the SetColourIdx component macro call. 
Fc9-type-1-icon.png Colour 2
Used to define a colour channel referenced by the SetColourIdx component macro call. 
Fc9-type-1-icon.png Colour 3
Used to define a colour channel referenced by the SetColourIdx component macro call. 
Fc9-type-7-icon.png New Line After Data
Automatically append a newline character after any data has been written to the console using the AddString component macro. 
Fc9-type-7-icon.png Clear On Sim Start
Automatically clear the console tab when the simulation is started. 
Fc9-type-7-icon.png Add Timestamp
Automatically adds a timestamp to the console after a newline character has been received. 
Fc9-conn-icon.png Timestamp
Fc9-type-16-icon.png Date Format
Specifies the format of the date string. No - "DD/MM/YY" Yes - "MM/DD/YY"  
Fc9-type-10-icon.png Time Separator
Characters that are used in between the time digits 
Fc9-type-10-icon.png Date Separator
Characters that are used in between the date digits 
Fc9-type-10-icon.png TimeStamp Separator
Characters that are used between the time and date strings when returning a full time stamp. 
Fc9-type-7-icon.png Override Colour
Overrides the current selected colour when writing the timestamp. 
Fc9-type-1-icon.png Timestamp Colour
Defines the colour of the time stamp text