Jump to content

Component: Is Sim (Matrix Tools): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(6 intermediate revisions by 2 users not shown)
Line 14: Line 14:
==Is Sim component==
==Is Sim component==
A simple component designed to aid in detecting if the current code is running in simulation or on a microcontroller.
A simple component designed to aid in detecting if the current code is running in simulation or on a microcontroller.
==Component Source Code==
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/IsSim.fcfx FC_Comp_Source_temp/IsSim.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/IsSim.fcfx FC_Comp_Source_temp/IsSim.fcfx]


==Detailed description==
==Detailed description==
Line 40: Line 34:


''<span style="color:red;">No additional examples</span>''
''<span style="color:red;">No additional examples</span>''




Line 50: Line 48:


===Check===
===Check===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Check'''
| width="90%" class="mtx-class-macrohead" | '''Check'''
|-
|-
| colspan="2" | Returns 0 if running on an embedded target or 1 if running in simulation runtime.&nbsp;
| colspan="2" | Returns 0 if running on an embedded target or 1 if running in simulation runtime.&nbsp;
Line 61: Line 59:
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
Line 78: Line 74:
| colspan="2" | &nbsp;
| colspan="2" | &nbsp;
|}
|}
==Component Source Code==
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_IsSim.fcfx FC_Comp_Source_IsSim.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_IsSim.fcfx FC_Comp_Source_IsSim.fcfx]

Latest revision as of 14:23, 13 July 2026

Author Matrix TSL
Version 1.0
Category Matrix Tools


Is Sim component

A simple component designed to aid in detecting if the current code is running in simulation or on a microcontroller.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

Check

Check
Returns 0 if running on an embedded target or 1 if running in simulation runtime. 
- BOOL Return


Property reference

Properties
Sim
 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_IsSim.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_IsSim.fcfx