14 application simulator, Application simulator – High Country Tek DVC80 User Manual

Page 108

Advertising
background image

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

Page | 108

VirtualDisplay.V3

Contains the value for V3.


VirtualDisplay.V20

Contains the value for V20.

6.14 Application

Simulator

A useful facility for debugging your
DVC5/7/10 application without physically
being on the target machine is the
application simulator. Using this facility
much of your application code can be
debugged prior to actually installing the
controller and the application on the
target machine.

All of the inputs and outputs of the
DVC5/7/10 can be controlled using the
different blue icons. These icons
represent switches and analog
potentiometers. The names you
specified for I/Os in your application are
displayed for easy reference. When you

depress (click) the push button icon your application running in the DVC5/7/10 will receive a true or false value
for the switch just like it would if a physical switch had been closed and a voltage input received on the
appropriate pin of the DVC5/7/10 connector. The potentiometer icons can be controlled by clicking on the white
radial line in the blue circle and moving it right or left or simply typing in the percent of the range you wish the
analog input to read. This simulates physically moving a potentiometer and conveys the appropriate voltage to
your application as a percent of the voltage range you specified when you configured the analog or universal
I/O. Furthermore, the simulator will cause analog inputs to jitter slightly by +1 or -1 of the analog inputs 0 to
1023 value. This simulates actual analog input jitter you will experience on your machine.

To use the simulator you simply add it to your
project using the DVC Programming Tool by
right clicking in the Project window, selecting
Application Simulator from the popup menu and
compiling the application. No program changes
are required. When you are finished with the
simulator delete its icon from the project window
and recompile.

After including the simulator icon in your project
and compiling, you load your application into the
DVC5/7/10 using the Program Loader Monitor.
The Program Loader Monitor will present a
simulation icon in its main window. Click on the
yellow status button to activate the simulator
and display the simulation window shown
above.

Advertising
This manual is related to the following products: