Jump to content

Component: Sensor Library Component (Misc): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 20: Line 20:


==Detailed description==
==Detailed description==




Line 38: Line 40:


==Examples==
==Examples==




Line 97: Line 101:
|-
|-
| 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
| 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;" | '''GetLinkHandle'''
|-
| colspan="2" | Gets the handle of the source object we are pointing to. Returns 0 for not valid. 
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Index
|-
| colspan="2" | 0=Source, 1=Reference 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-h32-icon.png]] - HANDLE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}
Line 116: Line 138:
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Value
| width="90%" | Value
|-
| colspan="2" |  
|-
| 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;" | '''SetLinkHandle'''
|-
| colspan="2" | Sets the handle of the source object we are pointing to.  
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Index
|-
| colspan="2" | 0=Source, 1=Reference 
|-
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
| width="90%" | Handle
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 166: Line 211:
|-
|-
| colspan="2" |  
| colspan="2" |  
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Source Icon
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
Line 171: Line 220:
|-
|-
| colspan="2" |  
| colspan="2" |  
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Reference Icon
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| width="90%" | Output Icon
| width="90%" | Output Icon
|-
| colspan="2" |  
|-
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| width="90%" | LinkTo
|-
|-
| colspan="2" |  
| colspan="2" |  

Revision as of 14:42, 16 January 2023

Author MatrixTSL
Version 1.0
Category Misc


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.

Component Source Code

Please click here for the component source code: FC_Comp_Source_SensorComponent.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Downloadable macro reference

GetValue
Gets the value of one of the Sliders / Text fields. 
- BYTE Index
Range: 0 to (Value Count - 1) 
- FLOAT Return


FlashRx
Flashes the receive icon for a set period of time. Automatically clears the icon once time period is up. 
- VOID Return


FlashTx
Flashes the transmit icon for a set period of time. Automatically clears the icon once time period is up. 
- VOID Return


GetLinkHandle
Gets the handle of the source object we are pointing to. Returns 0 for not valid. 
- BYTE Index
0=Source, 1=Reference 
- HANDLE Return


SetValue
Sets the value of one of the Sliders / Text fields. 
- BYTE Index
Range: 0 to (Value Count - 1) 
- FLOAT Value
 
- VOID Return


SetLinkHandle
Sets the handle of the source object we are pointing to.  
- BYTE Index
0=Source, 1=Reference 
- HANDLE Handle
 
- VOID Return


SetConsoleHandle
Sets the link to the component console allowing for click through and for panel console viewer linkage. 
- HANDLE Handle
 
- VOID Return



Property reference

Properties
Title
 
Peripheral
Text to display 
Show Comms Indicators
 
Source Icon
Input Icon
 
Reference Icon
Output Icon
 
LinkTo
 
Num Decimal Places
 
Value Count
 
Value 0
Label
 
MaxValue
 
MinValue
 
Major Tick
 
Minor Tick