Difference between revisions of "Component: Sensor Library Component (Misc)"
From Flowcode Help
Jump to navigationJump to search| (4 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
==Sensor Library Component component== | ==Sensor Library Component component== | ||
A simple library component designed to create a panel presence for any components that have a numerical value and associated slider, for example a sensor. Compatible with linking icons. | A simple library component designed to create a panel presence for any components that have a numerical value and associated slider, for example a sensor. Compatible with linking icons. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Detailed description== | ==Detailed description== | ||
| Line 85: | Line 79: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==Macro reference== | ||
===FlashRx=== | ===FlashRx=== | ||
| Line 153: | Line 136: | ||
| − | === | + | ===GetValue=== |
{| 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;" | '''GetValue''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Gets the value of one of the Sliders / Text fields. |
|- | |- | ||
|- | |- | ||
| Line 167: | Line 150: | ||
| colspan="2" | Range: 0 to (Value Count - 1) | | colspan="2" | Range: 0 to (Value Count - 1) | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
| − | | width="90%" | | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
| + | |} | ||
| + | |||
| + | |||
| + | ===SetConsoleHandle=== | ||
| + | {| 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;" | '''SetConsoleHandle''' | ||
| + | |- | ||
| + | | colspan="2" | Sets the link to the component console allowing for click through and for panel console viewer linkage. | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
| + | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 201: | Line 198: | ||
| − | === | + | ===SetValue=== |
{| 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;" | '''SetValue''' |
| + | |- | ||
| + | | colspan="2" | Sets the value of one of the Sliders / Text fields. | ||
| + | |- | ||
|- | |- | ||
| − | | | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
| + | | width="90%" | Index | ||
|- | |- | ||
| + | | colspan="2" | Range: 0 to (Value Count - 1) | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT |
| − | | width="90%" | | + | | width="90%" | Value |
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 218: | Line 220: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| − | |||
| − | |||
| Line 312: | Line 312: | ||
| colspan="2" | | | colspan="2" | | ||
|} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_SensorComponent.fcfx FC_Comp_Source_SensorComponent.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_SensorComponent.fcfx FC_Comp_Source_SensorComponent.fcfx] | ||
Latest revision as of 08:48, 21 June 2024
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Misc |
Contents
Sensor Library Component component
A simple library component designed to create a panel presence for any components that have a numerical value and associated slider, for example a sensor. Compatible with linking icons.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
FlashRx
| FlashRx | |
| Flashes the receive icon for a set period of time. Automatically clears the icon once time period is up. | |
| Return | |
FlashTx
| FlashTx | |
| Flashes the transmit icon for a set period of time. Automatically clears the icon once time period is up. | |
| Return | |
GetLinkHandle
| GetLinkHandle | |
| Gets the handle of the source object we are pointing to. Returns 0 for not valid. | |
| Index | |
| 0=Source, 1=Reference | |
| Return | |
GetValue
| GetValue | |
| Gets the value of one of the Sliders / Text fields. | |
| Index | |
| Range: 0 to (Value Count - 1) | |
| Return | |
SetConsoleHandle
| SetConsoleHandle | |
| Sets the link to the component console allowing for click through and for panel console viewer linkage. | |
| Handle | |
| Return | |
SetLinkHandle
| SetLinkHandle | |
| Sets the handle of the source object we are pointing to. | |
| Index | |
| 0=Source, 1=Reference | |
| Handle | |
| Return | |
SetValue
| SetValue | |
| Sets the value of one of the Sliders / Text fields. | |
| Index | |
| Range: 0 to (Value Count - 1) | |
| Value | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_SensorComponent.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_SensorComponent.fcfx