Behavior Control
This control is developed by:
Avatarleversofpower
Created October 29 2015
Updated November 12 2015
Help Index

EZ Gauge Chart

How To Download and Use This Control

  1. Make sure you have the latest version of EZ-Builder installed.
  2. Select Download This Control button below to download the file.
  3. Double click the downloaded file to open it.
  4. The installer will automatically add this control to EZ-Builder.
Download This Control

This plugin is the most complex of leversofpower's chart plugins. Enjoy.

Red Zone Chart

Code:


#Red Zone Chart
ControlCommand("EZ Gauge Chart", SetRangeMaximum, 255)
ControlCommand("EZ Gauge Chart", SetRangeMinimum, 0)

ControlCommand("EZ Gauge Chart", ScaleLinesMajorStep, 15)
ControlCommand("EZ Gauge Chart", ScaleLineMinorCount, 2)

ControlCommand("EZ Gauge Chart", SetRangeArcStart, 135)
ControlCommand("EZ Gauge Chart", SetRangeArcSweep, 270)

ControlCommand("EZ Gauge Chart", SetTitle, "EZ Robot Sensors")
ControlCommand("EZ Gauge Chart", SetTitlePosition, 80, 150)

ControlCommand("EZ Gauge Chart", SetRedZoneVisible, "y")
ControlCommand("EZ Gauge Chart", SetRedZoneRange, 210, 255)

$RandomGaugeValue = 0
:loop
$RandomGaugeValue = GetRandom(105, 150)
ControlCommand("EZ Gauge Chart", SetValue, $RandomGaugeValue)
Sleep( 10 )
Goto (loop)


360 Circle Gauge

Code:


#360 Gauge Chart
ControlCommand("EZ Gauge Chart", SetRangeMinimum, 0)
ControlCommand("EZ Gauge Chart", SetRangeMaximum, 360)

ControlCommand("EZ Gauge Chart", ScaleLinesMajorStep, 20)
ControlCommand("EZ Gauge Chart", ScaleLineMinorCount, 3)

ControlCommand("EZ Gauge Chart", SetRangeArcStart, 270)
ControlCommand("EZ Gauge Chart", SetRangeArcSweep, 360)

ControlCommand("EZ Gauge Chart", SetTitle, "DIRECTIONAL HEADING")
ControlCommand("EZ Gauge Chart", SetTitlePosition, 55, 0)

$RandomGaugeValue = 0
:loop
$RandomGaugeValue = GetRandom(0, 360)
ControlCommand("EZ Gauge Chart", SetValue, $RandomGaugeValue)
Sleep( 10 )
Goto (loop)


1024 Gauge Chart

Code:


ControlCommand("EZ Gauge Chart", SetRangeMinimum, 0)
ControlCommand("EZ Gauge Chart", SetRangeMaximum, 1024)

ControlCommand("EZ Gauge Chart", ScaleLinesMajorStep, 64)
ControlCommand("EZ Gauge Chart", ScaleLineMinorCount, 3)

ControlCommand("EZ Gauge Chart", SetRangeArcStart, 135)
ControlCommand("EZ Gauge Chart", SetRangeArcSweep, 270)

ControlCommand("EZ Gauge Chart", SetTitle, "ANALOG 1 SENSOR VALUE")
ControlCommand("EZ Gauge Chart", SetTitlePosition, 53, 200)

$RandomGaugeValue = 0
:loop
$RandomGaugeValue = GetRandom(0, 200)
ControlCommand("EZ Gauge Chart", SetValue, $RandomGaugeValue)
Sleep( 10 )
Goto (loop)