Author
|
Matrix TSL
|
Version
|
1.5
|
Category
|
Advanced Shapes
|
Meter Square component
Square analogue panel meter. A simulation only component - the needle value is set solely by the 'SetValue' macro.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|
SetValue
|
Set the meter needle to a new position based on the current scaling properties.
|
[[File:]] -
|
Value
|
Needle position between min and max
|
- VOID
|
Return
|
|
TurnOff
|
De-activate the solenoid
|
- VOID
|
Return
|
|
DisableMotor
|
Turn off the motor. It will no longer respond to any other macros.
|
- VOID
|
Return
|
|
SetTrim
|
Allows the level of trim for each servo channel to be adjusted progmatically.
|
- BYTE
|
Channel
|
The channel to set the position for. First channel is zero.
|
- BYTE
|
Trim
|
Legacy: 0=0us, 1=+25us, 2=+50us, 3=+75us, 4=+100us, 5=-25us, 6=-50us, 7=-75us, 8=-100us or Smooth: 0-200
|
- VOID
|
Return
|
|
IsAutoMoving
|
Is the AutoMoveToPosition movement complete. Returns 1 if the servos are still moving. Returns 0 if all servo movement is complete.
|
- BYTE
|
Return
|
|
SetAutoMoveSpeedInt
|
Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property.
|
- UINT
|
Speed
|
1=Slowest (Default), 2= Double, 3=Triple, 4=Quadruple
|
- VOID
|
Return
|
|
IsServoAutoMoving
|
Is the AutoMoveToPosition movement complete for a specific servo output. Returns 1 if the servo is still moving. Returns 0 if the servo movement is complete.
|
- BYTE
|
Channel
|
Servo Motor Output Range: 0-7
|
- BYTE
|
Return
|
|
AutoMoveToPosition
|
Automatically moves towards the new position at a fixed rate determined by the AutoMoveSpeed.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- BYTE
|
Position
|
Position to automatically move to. Range: 0-255
|
- VOID
|
Return
|
|
EnableServo
|
Enables a servo channel effectivly setting the position of the motor to the value in the local position variable.
|
- BYTE
|
Channel
|
The channel to set the position for. First channel is zero.
|
- VOID
|
Return
|
|
SetAutoMoveSpeed
|
Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property.
|
- BYTE
|
Speed
|
1=Slowest (Default), 2= Double, 3=Triple, 4=Quadruple
|
- VOID
|
Return
|
|
AutoMoveToPositionInt
|
Automatically moves towards the new 16-bit position at a fixed rate determined by the AutoMoveSpeed.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- UINT
|
Position
|
Position to automatically move to. Range: 0-65535
|
- VOID
|
Return
|
|
Initialise
|
Sets up the servo motor interrupts
|
- VOID
|
Return
|
|
WriteLEDs
|
Allows control of all 8-LEDs on the front of the Formula Flowcode.
|
- BYTE
|
LED_Byte
|
|
- VOID
|
Return
|
|
Initialise
|
Starts up the formula flowcode PWM for motor control and performs the wait for button press
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Minimum
|
Minimum value to show on the meter.
|
|
Maximum
|
Maximum value to show on the meter.
|
|
BG Color
|
Color of the meter scale background.
|
|
Positive Color
|
Color of the scale gradations for positive values.
|
|
Negative Color
|
Color of the scale gradations for negative values.
|
|
Label Color
|
Color of the meter's title label.
|
|
Divisions
|
Number of large scale divisions..
|
|
Subdivisions
|
Number of sub-divisions in between each major division.
|
|
Show
|
Show or hide the scale markings.
|
|
Decimals
|
Number of decimal points to show on scale values.
|
|
Text Size %
|
Text height of the scale values.
|
|
Font
|
Font for the scale value numbers.
|
|
Show
|
Show or hide the scale number values.
|
|
Text
|
A title label to make the meter easier to identify.
|
|
Text Size %
|
Height of the label text.
|
|
Font
|
Font for printing the label.
|
|
Show
|
Show or hide the title label.
|
|
Connections
|
|
Simulations
|