High Country Tek DVC80 User Manual

Page 115

Advertising
background image

P/N: 021-00154, Rev. A.6 - updated for V4.7 Tools

Page | 115


Special Object Notes
Rectangle

Rectangles are assumed to be behind other objects when displayed and as such can be used for background
color and illumination. For instance to make the display background all white include the following in your script.

Rectangle,x/1/,y/1/,clr/w/,w/320/,h/240/

Trendchart


This object plots the number of entries you specify. Between sending values to the object you need to reset the
new data field. Data to a trend chart is usually done at regular intervals as shown below. A one second interval
is about the fastest you can send data. This includes 500ms to send the new data and 500ms to reset the new
data flag. Each of these events requires the entire screen object script to be transmitted to the D206. 500ms
allows time for the object script to be sent to the display and processed.

An example of sending data to a Trendchart object is as follows:

Object script line including variable substitution:
TrendChart,clear/*V4*/,x/1/,y/1/,clr/r/,min/0/,max/100/,pts/100/,flag/*V2*/,data/*V1*/,w/10/,h/20/
Application code:

dim interval as timer

dim first as uint
if (first = 0) then

first = 1

gd.v4 = true ‘ clear trendchart data

interval = 500ms
else

if (interval = 0s) then

interval

=

500ms

gd.v4 = 0 ' reset clear


if (gd.v2) then ' toggle new data flag

gd.v2

=

0

else
gd.v2

=

1

end

if

gd.v1 = newdatavalue

end if

Virtual Display

This object allows your Virtual display to be seen on the D206 without disconnecting the RS232 cable and
reconnecting it to your PC. You configure your Virtual display and activate it (i.e. select the screen and set
display variables) as you would normally in your application. When a D206 screen script with this object in it is
processed by the DVC controller’s BIOS it transmits the complete 10 lines of 40 characters each of Virtual
display text to the D206 which in turn displays the text per the object definition.

VirtualDisplay,x/1/,y/1/,clr/w/,w/100/,h/100/

Advertising
This manual is related to the following products: