Component: Slider control (Advanced Shapes)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix Ltd | 
| Version | 1.1 | 
| Category | Advanced Shapes | 
Contents
Slider control component
A simple graphical interface for a vertical meter or slider control. This can be used within custom components to give them a way to display an analogue value, or to allow setting a value by clicking and dragging with the mouse.
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications.
 Meters
Meters
Downloadable macro reference
|   | GetValue | 
| Gets the current value of the slider. This will be within the range set by the SetRange macro. | |
| [[File:]] - | Return | 
|   | SetValue | 
| Set the current value of the slider. This will override any value set by using the mouse. | |
| [[File:]] - | Value | 
| The value to set. | |
|  - VOID | Return | 
|   | SetInteractive | 
| Set whether the mouse can be used to change the slider value. | |
| [[File:]] - | Enable | 
| Set true to allow clicks to set scale | |
|  - VOID | Return | 
|   | ShowScale | 
| Set whether graduated marking are shown along the length of the slider. | |
| [[File:]] - | Show | 
| True to show scale, else false | |
|  - VOID | Return | 
|   | SetRange | 
| Set the minimum and maximum values that can be shown on the slider. | |
| [[File:]] - | Min | 
| Min (start) value | |
| [[File:]] - | Max | 
| Maximum (end) value | |
|  - VOID | Return | 
|   | GetDeviceCount | 
| Returns the number of devices found by the last ScanBus operation. | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the 1-Wire output pin ready for communications. | |
|  - VOID | Return | 
|   | GetDeviceCount | 
| Returns the number of devices found by the last ScanBus operation. | |
|  - BYTE | Return | 
|   | Initialise | 
|  - VOID | Return | 
|   | GetDeviceCount | 
| Returns the number of devices found by the last ScanBus operation. | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the 1-Wire output pin ready for communications. | |
|  - VOID | Return | 
|   | SetAnalogInput | 
| Sets the state of a single analogue input. | |
|  - UINT | Address | 
| Coil Address | |
|  - UINT | Value | 
| Analogue Value range 0 - 65535 | |
|  - VOID | Return | 
|   | Initialise | 
| Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. | |
|  - VOID | Return | 
|   | Initialise | 
| Initialises the MIDI component and sets up the UART. | |
|  - VOID | Return | 
|   | CommsBaud | 
| Sets the Baud rate of the alt communications channel | |
|  - BYTE | Baud | 
| Range: 0-7 : 0=1200 / 7=115200 | |
|  - VOID | Return | 
|   | LCDOptions | 
| Controls some of the LCD options | |
|  - BYTE | Foreground | 
| Range: 0-1 | |
|  - BYTE | Background | 
| Range: 0-1 | |
|  - BYTE | Transparent | 
| Range: 0-1 | |
|  - VOID | Return | 
|   | ReadDigitalInput | 
| Reads a single digital input. | |
|  - BYTE | Channel | 
|  - BYTE | Return | 
|   | PWMDuty | 
| Sets a single PWM channel duty. Channel = 0 - 5 : 0=EN_AB, 1=A, 2=B, 3=C, 4=D, 5=EN_CD Duty = 0 - 65535 | |
|  - BYTE | Channel | 
| Range 0-5 | |
|  - UINT | Duty | 
|  - VOID | Return | 
|   | LCDCursor | 
| Sets the cursor position for the MIAC display | |
|  - BYTE | X | 
| Range: 0-21 | |
|  - BYTE | Y | 
| Range: 0-4 | |
|  - VOID | Return | 
|   | WriteTran | 
| Allows a single transistor output to be switched on or off. | |
|  - BYTE | Channel | 
| Range 1-4 | |
|  - BYTE | Value | 
| 0 = Off, 1 = On | |
|  - VOID | Return | 
|   | Initialise | 
|  - VOID | Return | 
|   | LCDClear | 
| Clears the MIAC display | |
|  - VOID | Return | 
|   | LCDClear | 
| Clears the LCD | |
|  - VOID | Return | 
Property reference
|   | Properties | 
|   | Connections | 
|   | Simulations | 
