|
|
| (21 intermediate revisions by 2 users not shown) |
| Line 14: |
Line 14: |
| ==Base2dGauge component== | | ==Base2dGauge component== |
| A base component for creating 2d gauges and indicators. | | A base component for creating 2d gauges and indicators. |
| | |
| | ==Component Source Code== |
| | |
| | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Base2dGauge.fcfx FC_Comp_Source_Base2dGauge.fcfx] |
| | |
| | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Base2dGauge.fcfx FC_Comp_Source_Base2dGauge.fcfx] |
|
| |
|
| ==Detailed description== | | ==Detailed description== |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|
| |
|
| ''No detailed description exists yet for this component'' | | ''No detailed description exists yet for this component'' |
| Line 21: |
Line 51: |
| ==Examples== | | ==Examples== |
|
| |
|
| ''<span style="color:red;">No additional examples</span>''
| |
|
| |
|
| ==Downloadable macro reference==
| |
|
| |
|
| {| 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;" | '''GetValue'''
| |
| |-
| |
| | colspan="2" | Returns the current value of the component.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -
| |
| | 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;" | '''SetValue'''
| |
| |-
| |
| | colspan="2" | Sets the component to the specified value.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | value
| |
| |-
| |
| | colspan="2" | A new value for the component.
| |
| |-
| |
| | 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;" | '''SetMode'''
| |
| |-
| |
| | colspan="2" | Select the mode of operation
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | bUseArrays
| |
| |-
| |
| | colspan="2" | True if data points are added to a hidden buffer; False if data is drawn directly onto chart.
| |
| |-
| |
| | 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;" | '''ClearData'''
| |
| |-
| |
| | colspan="2" | Removes all datapoints from the chart.
| |
| |-
| |
| |-
| |
| | 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;" | '''SetValue'''
| |
| |-
| |
| | colspan="2" | Sets the component to the specified value.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | value
| |
| |-
| |
| | colspan="2" | A new value for the component.
| |
| |-
| |
| | 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;" | '''RefreshChart'''
| |
| |-
| |
| | colspan="2" | Redraws the chart.
| |
| |-
| |
| |-
| |
| | 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;" | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | ''<span style="color:red;">No additional examples</span>'' |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | ==Macro reference== |
| | |
| | ===GetValue=== |
| | {| 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;" | '''GetData''' | | | width="90%" class="mtx-class-macrohead" | '''GetValue''' |
| |- | | |- |
| | colspan="2" | Gets a data point from the specified series. | | | colspan="2" | Returns the current value of the component. |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| |
| | width="90%" | Series
| |
| |-
| |
| | colspan="2" | Which series to add to (1-8)
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | Index
| |
| |- | | |- |
| | colspan="2" | The data point index (1 - 32767)
| |
| |- | | |- |
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
| |} | | |} |
|
| |
|
|
| |
|
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | ===SetValue=== |
| | {| 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;" | '''AddDataCXYY1''' | | | width="90%" class="mtx-class-macrohead" | '''SetValue''' |
| |- | | |- |
| | colspan="2" | Adds a data point to a bubble chart. | | | colspan="2" | Sets the component to the specified value. |
| |- | | |- |
| |- | | |- |
| | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT |
| | width="90%" | Series | | | width="90%" | value |
| |- | | |- |
| | colspan="2" | Which series to add to (1-8) | | | colspan="2" | A new value for the component. |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| |
| | width="90%" | Category
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | Y
| |
| |-
| |
| | colspan="2" | Y coordinate
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | X
| |
| |-
| |
| | colspan="2" | X coordinate
| |
| |-
| |
| | width="10%" align="center" | [[File:]] -
| |
| | width="90%" | Value
| |
| |-
| |
| | colspan="2" | The value of the data point
| |
| |- | | |- |
| | 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'' | | | 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 193: |
Line 134: |
| |- | | |- |
| | colspan="2" | | | | colspan="2" | |
| | |- |
| | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] |
| | | width="90%" class="mtx-class-propfolder" | Range |
| | |- |
| |- | | |- |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] |
| Line 213: |
Line 158: |
| |- | | |- |
| | colspan="2" | The scale value between consecutive minor tick marks. | | | colspan="2" | The scale value between consecutive minor tick marks. |
| |-
| |
| | 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'''
| |
| |-
| |
| |} | | |} |
| Author
|
Steve Tandy
|
| Version
|
1.0
|
| Category
|
Development
|
Base2dGauge component
A base component for creating 2d gauges and indicators.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Base2dGauge.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Base2dGauge.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetValue
|
GetValue
|
| Returns the current value of the component.
|
- FLOAT
|
Return
|
SetValue
|
SetValue
|
| Sets the component to the specified value.
|
- FLOAT
|
value
|
| A new value for the component.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Value
|
|
|
|
Range
|
|
Lower Bound
|
| The bottom value of the scale.
|
|
Upper Bound
|
| The top value of the scale.
|
|
Major Tick Step
|
| The number of minor tick marks to show a major tick mark value.
|
|
Minor Tick Step
|
| The scale value between consecutive minor tick marks.
|