ADAMView Quick Start
ADAMView Quick Start
Advantech
ADAMView
1st Edition
i
Contents
Table of Contents
Copyright
Notice
Trademarks
Technical Support
1 Introduction ......................................................................................2
1.1 ADAMView Overview .................................................................... 2
1.2 ADAMView System Architecture .................................................3
1.3 ADAMView Component Description .......................................... 5
iii
Copyright
INTERWORLD ELECTRONICS.
145 Tyee Drive
Point Roberts, WA 982821
TEL (877) 902-2979
FAX (877) 329-4324
Notice:American Advantech Corporation does not warrant that the ADAMView software package will
function properly in every hardware/software environment. American Advantech Corporation makes no
representation or warranties of any kind whatsoever with respect to the contents of this manual and
specifically disclaims any implied warranties or fitness for any particular purpose. American Advantech
Corporation shall not be held liable for errors in this manual or for incidental or consequential damages
in connection with the use of this manual or its contents. American Advantech Corporation reserves the
right to revise this manual at any time without prior notice.
Trademarks
viii
1
Getting Started
1 Introduction
Congratulations on your purchase of ADVANTECH’S application builder for data acquisition and
control — ADAMView.
ADAMView is a comprehensive application development tool for data acquisition and control. It supports
functions and utilities to develop automation applications for use in Windows 95/98 and Windows NT
Windows 2000/XP environments. ADAMView provides an icon-based, mouse driven system for designing
real-time Autoimation and Control Strategies, System Monitor Displays, and Dynamic Operator Displays.
The magic of ADAMView lies in its ability to provide advanced programming features and tools while
maintaining ease of use. A library of Icon Blocks representing data acquisition and control, math-
ematical and control functions is provided through Task Designer. You simply arrange Icon blocks into
a strategy, connect them, and then draw your dynamic display or configure your daily report. Display
Designer provides a variety of graphic objects to design monitoring and control displays. Report
Designer features a configurable format design utility and scheduler to generate reports automatically.
In addition to the features listed above, ADAMView’s built-in VBA compatible programming tools
strengthen its ability to perform complex calculation or analysis.
The ADAMView package consists of two major software modules and several utility programs. The two
major executables are ADAMView Strategy Editor/Runner (“ADAMView.exe”), and ADAMView Runtime
only program (“ADAMViewRun.exe”). ADAMView.exe is for designing and testing Strategies.
ADAMViewRun.exe is for running strategies in a live environment. ADAMViewRun.exe uses fewer
resources and achieves better runtime performance because it does not perform validity checks on
objects and links between objects. It does not allow any changes to be made to the strategy being run.
2
1.2 ADAMView System Architecture
A major improvement over Version 4.xx is the change in system architecture. We design ADAMView
4.x with a modular-oriented, open integrated architecture. The open platform allows you to easily
integrate ADAMView with other applications to share real-time control data. The performance and
number of I/O blocks ADAMView can support are increased significantly through this new
architecture. The new architecture is outlined in figure 1-1.
ADAMView Engine
Module Description
Data Center
The central repository for data acquisition and control data. It manages all ADAMView real-time data
and provides three set of interfaces to the outside world; DDE & OLE Automation and C API.
Through these three interfaces, other applications can retrieve or input data to ADAMView.
I/O Driver
Responsible for accessing real-time data from hardware equipment. ADAMView I/O drivers cover all
Advantech industrial automation ADAM Series hardware, including ADAM-4000 remote modules
and ADAM-5000 distributed modules.
Task Designer
Responsible for designing the application system. ADAMView provides many standard data
acquisition and control function blocks. Users just drag and drop function blocks to design a system
without any programming. ADAMView 4.x allows you to design and execute multiple tasks
simultaneously. That is, you can divide a complex system into several independent tasks and
execute them at the same time.
Display Designer
Responsible for creating a dynamic display for industrial automation. Display Designer features
many common graphic objects to simplify building a display. In addition, ADAMView provides several
drawing tools to create custom displays.
3
Report Designer
Responsible for designing and generating operation reports. Users can design the report format using
a tabular form tool and define a schedule to print the report automatically. Report Designer will
periodically collect the real-time data and combine the data with data format to generate report at the
scheduled time.
Script Designer
Responsible for controlling tasks and calculating and analyzing real-time data. ADAMView provides a
VBA compatible development environment for script programming.
The design work in ADAMView is saved as a strategy file. A strategy file (with extension .GNI) is a binary
file that stores all information about an editing session. A strategy is defined as one or more “tasks”
together with one or more “displays” and one or no “main script”. “Task”, “Display”, and “Main Script”
are the three primary elements used to design strategies. A simple strategy has one task with one
display and no main script, because a strategy can not function without at least one Task in it. Task
are essential to have a strategy. Because the most important job of a task is to provide timing for
“scanning”, so “Scan Task” is used interchangeably with “Task” throughout this manual.
A task is a collection of icon blocks. A display is a collection of display items. Icon blocks and display
items are the building blocks of strategy. You can see them as similar objects, except that display
items have a graphic representation (provide some kind of GUI) when running while icon blocks do
not. They are connected to each other by connection wires or invisible links. The connections be-
tween icon blocks are visible in the task designer window. The links are referred to as “wires” be-
cause of their appearance. The connection between an icon block and a display item, or one display
item and another, is not visible. Hence, these are referred to as “Links”.
Each task and display has its own properties. When first created, default properties are assigned to
the new task or new display. Users can change properties according to their needs. A task has
properties such as scan period, sample rate, starting method and stopping method. A display has
properties such as display name, visibility, etc.
ADAMView features four different editors: Task Designer, Display Designer, Report Designer and Script
Designer. They are used to edit Tasks, Displays, Reports and Main Script respectively. Because there
can be multiple tasks in one strategy, you can create multiple Task Designer windows inside ADAMView.
For the same reason, you can create multiple Display Designer windows for editing multiple Displays.
In any application there can be only one Main Script. Therefore, only one Script Designer window can be
opened.
Any number of Blocks and I/O Devices can be used at one time, limited only by your system’s speed
and memory. It is suggested that the number of icon blocks not exceed 500. If the number of icon
blocks exceeds 500 system performance may be adversely affected. From small applications inter-
facing only a few blocks, through full-scale industrial process control systems running many I/O
Devices simultaneously, ADAMView provides you with the quickest and most efficient acquisition/control
solution.
4
1.3 ADAMView Component Description
The intent of this section is to provide a general idea about what’s been added to this new version of
ADAMView. ADAMView has been transformed from data acquisition and control application software to an
application builder for all kinds of automation. We have placed an emphasis on expandability, capac-
ity, and programmability. The architecture is modified to be more open, allowing access to all data
items in ADAMView. Also, hardware support has been greatly expanded. Hardware support now covers
virtually all Advantech ADAM hardware families, as well as a myriad of products from other vendors.
ADAMView Script Designer is a VBA-compatible basic script engine. Script Designer not only features a
robust Visual Basic programming engine, but also includes many tasks and real time data access
functions. Through this script engine, users can call DDE, OLE Automation and ODBC (SQL) func-
tions to integrate with other applications.
Main Script
The main script is used to control and manage tasks. The initialize statement initializes all the data
related to a task. The Start/Stop statement is used to start and run a task to completion. Single Scan
statement will do a one-time scan of the task specified.
Pre-task Script
The pre-task script is used to define task properties and initialize all data related to a task.
Post-task Script
The post-task script is used to clear-out task related data.
5
Basic Script Icon
BasicScript is used to get, analyze and set I/O data.
ADAMView Task Designer uses a dataflow programming model that frees you from the linear architecture
of text-based languages. To create a process monitoring and control application, you construct the
block diagram without worrying about the many syntactical details of conventional programming.
Simply select objects (icons) from the Icon Toolbox and connect them with wires to pass data from one
block to the next.
A large complicated task can be broken into several smaller, simpler tasks. This not only simplifies
the editing job, but also increases the performance at runtime, as fewer blocks need to be processed
at each scan.
Virtual Tag
The Virtual Tag is a powerful feature that provides the ability to let developer to create customized tag
in Task Designer without using User Defined DLL. The virtual tag is created by Task Designer and
stored in data center as other built-in blocks. The virtual tags are global available to all tasks, so you
can use virtual tags to share data among multiple tasks.
If you have MMI requirements, ADAMView screen designer will help you quickly create intuitive standard
graphical displays by provided graphical wizards. And, you can further customize your MMI with
drawing tools and user-defined display tool.
Drawing Tools
ADAMView enhances the man-machine interface (MMI) by providing graphic tools to draw pumps, valves,
rectangles, circles, segments, and polygons in the screen designer’s toolbox. In addition, it allows the
user to configure the colors and sizes of these figures. These drawing tools include oval, rectangle,
round rectangle, polygon and line. In addition to drawing tools, ADAMView also provides “Make Object”
and “Break Object” commands to let you integrate drawing components into a meaningful picture for
your data acquisition and control.
6
1.3.4 Report Designer
ADAMView Report Designer provides a configurable environment in which users can define the contents
of a given report. It collects the required data at specific time intervals and these reports are printed
automatically at a user-defined time. The interfaces provided in Report Designer may also be used to
select and print reports manually.
ADAMView Report Designer includes five major functions: data collection, report format configuration,
report scheduler, report generation and alarm report generation.
Data Collection
Data collection function creates database files (.DBF files) for each defined TAG point at a user-
specified time. Data collection function is designed for report generation. The shortest time interval
for data collection from a given TAG point is 10 minutes. If needed, high-speed data collection is
accomplished through other trend data collection functions.
Report Generation
Report generation function combines the format file and data collection database file to produce a
printed report. At the moment, reports are limited to tabular format report. A graphical report with
daily trend output will be developed in the future.
Report Scheduler
Report scheduler sets the time at which reports will be generated. At a user-defined time, report
scheduler calls the report generation function to generate the report. Report Scheduler also informs
users of report printing status.
Alarm Report
Alarm report generation function produces equipment fault reports. These reports provide informa-
tion on time of fault occurrence, operator acknowledgment and recovering records.
7
1.3.5 Open Data Center
Data Center is the central repository for all process monitoring and control data in ADAMView. You can
easily integrate real-time data from the data center into a company-wide information system to effi-
ciently support decision-making. Data Center features two different sets of interfaces to the outside
world: C API, OLE automation, and DDE functions.
C API is the most efficient interface, so it is used for all communication between components of
ADAMView. OLE automation is designed to interface with OLE-aware applications.
8
1.4 What's New in ADAMView 4.25
Convenient Install and Uninstall Program
ADAMView 4.25 includes an convenient installation and uninstallation program.
Other Enhancements
ADAMView includes a few new functions over Advantech GENIE 3.0. These include new Basic
Script commands, an improved Report Designer and other features that lead to higher productivity.
9
(1) Item: Time Stamp Block
The date format of Time Stamp Block is MON Sep 23 14:43:52 1992. Note that the year is in a four-
digit format.
(2) Item: Timer Clock Block
For Time of Date or Elapsed Time (both cyclic and non-cyclic), the block output is based on the
seconds elapsed since midnight (i.e., 00:00:00) January 1, 1970 Universal Coordinated Time.
10
1.4.3 Improved Setup/Uninstallation Utility
ADAMView 4.25 includes a comprehensive installation and uninstallation utility. After installing
ADAMView 4.25, it will create an Advantech Automation /ADAMView folder by default. It contains the
following icons: ADAMView Builder, ADAMView Runtime, ADAM Device Manager, Uninstall ADAMView,
ADAMView Help and Basic Script Help. If you wan to uninstall ADAMView, you simply click on the
Uninstall ADAMView icon. ADAMView, including program files, installation folders and Windows registry,
will be automaticallyremoved from your computer. You do not have to worry about deleting files manually.
[System]
MemoryCheck = 1
After adding this entry to the ADAMView.INI file you should open ADAMView and create a tag block.
Configure this tag block by selecting VIRTASK under the Display/Virtual Tag field, and then select
FreeSpace in the Tag Name field.
[System]
HistDaysAgo = 15
This modification will cause ADAMView will remove historical files that are older than 15 days.
Note: If you want to keep all historical files, you should set "HistDaysAgo = 0". ADAMView will not
remove any historical files.
11
In addition, ADAMView 4.25 keeps the runtime from logging the same error messages. This will save
space within the log files and lessen the chance of running out of hard disk space.
Command Description
Quit(0) Stops the overall system
COMMAND.N
where "COMMAND" can be $NOW, $HRnn, $MAX, $MAXT, $MIN, $MINT, or $AVE. "N" represents the
number of decimal digits which can be from 0 to 9. For example, if a tag's value is 5.123456789, you
can use the follow commands to format the value:
12
1.5 Limitations and Restrictions
ADAMView 4.25 includes the following information about usage and limitations of the software to
help users use ADAMView correctly.
Notice
(a) In the debug environment for the Main Script, Pre/post-task Script or Basic Script block, the
following commands are disabled:
• ScanTask.start
• ScanTask.stop
• ScanTask.SingleScan
• ScanTask.GetStatus
• OutputI
• OutputL
• OutputF
• OutputS
• Display
13
• Quit
However, all commands will function at runtime.
(b) When using the Msg command to create modeless dialogs or the Sleep command for waiting, do
not stop ADAMView when the modeless dialog is still active or the Sleep command is still working.
(c) Be careful when programming the script to avoid an infinite loop.
Limitations
(a) Strings are limited in length to 32764 characters.
(b) The data area that holds public variables is limited to 16 KB.
(c) The size of source code script is limited to 65534 characters.
(d) Arrays can have up to 60 dimensions.
(e) Variable names are limited to 80 characters.
(f) Labels are limited to 80 characters.
(g) The number of open DDE channels is not fixed; rather, it is limited only by available memory and
system resources.
(h) The number of open files is limited to 512 or the operating system limit.
(i) The size of an array cannot exceed 32 KB.
14
Notice
(a) TASK1 can change to TASK2 to TASK8 that depends on the tag in which TASK. The tag name
consists of the block type and ordinal number; for example, AI block with ordinal number 3, then
the tag name is AI3.
(b) DISP1 is the title of the display that is assigned in Display Property Menu.
(c) VIRTASK stores the VIRTAG tags that are added by the Add/Delete Virtual Tags menu.
(d) The maximum string length for string type tags is 128.
COMMAND.N
15
where COMMAND can be $NOW, $HRnn, $MAX, $MAXT, $MIN, $MINT or $AVE. N represents the
number of decimal digits which can be from 0 to 9. For example, if a tag's value is 5.123456789, you
can use the following commands to get the following results.
Note:
(a) Alarm printing does not work if the printer is shared
(b) Alarm printing is only compatible with dot matrix printers or other printers capable of printing a
single line or a single line feed. It will not work with HP LaserJet printers that must print a complete
page per printing session.
[System]
HistDaysAgo = 15
This example will cause ADAMView to remove historical file that are older than 15 days old.
Note: If you want to keep all historical files, you should set "HistDaysAgo = 0". ADAMView will not
remove any historical files.
16
(c) ADAMView has a dedicated timer for network communication. The polling time of the timer can be
different from the scan time. The polling time is set in the configuration file \WINDOWS\ADAMView.INI
(the entry NetPollTime). The value of polling time depends on the number of stations and blocks.
You can use the following equation to calculate the approximate polling time:
Polling time = (Station * (Station - 1)) / 2) * base polling time
which base polling time depends on your PC’s performance. Based on our tests, for three stations
running on a Pentium 166 with 64M RAM, and forty blocks for each station, the polling time can be
up to 500 milliseconds.
(d) The maximum string size for each channel of a network block is 32 characters (including a Null
character).
(e) ADAMView networking can work in Windows 95/98 but not in Windows 3.1.
(f) When restarting networking, you must wait for a few moments to make sure that the remote station
receives the stopping message. If you fail to check this, proper connection with the remote station
may not occur. If this happens, you will have to stop all stations and start again. You can check the
Event window to make sure that the remote station receives the stopping message.
(g) Connection status will show in the Event window. It will also be entered into the alarm log file
(ADAMView.ELF) by enabling the event log under Runtime Preferences.
17
(7) Input Range for Display Items
18
2
Preparing to
Install ADAMView
2 Preparing to Install ADAMView
ADAMView requires specific hardware and software to be installed in your computer before installation
Verify that your computer system conforms or exceeds the requirements defined in the sections
System Hardware Requirements and System Software Requirements before attempting to install the
ADAMView system software.
ADAMView requires that certain operating systems and system settings be present on your system.
The following are minimum requirements to run ADAMView successfully.
In addition, there must be a CONFIG.SYS file in your root directory that includes the following state-
ments:
FILES = 50
BUFFERS = 10
• DOS TSR (terminate, but stay resident) application programs may be loaded while using ADAMView.
Remember that these programs do take up memory and can affect system performance.
20
2.2 Installation and Configuration
This section lists the contents of your ADAMView system and instructions to install the ADAMView
system software to a level that enables you to run the DEMO Strategy supplied on the SETUP disk.
Complete the steps listed below to install and configure your ADAMView software.
During the installation process, the setup program (SETUP.EXE) allows you to specify where you would
like the ADAMView software installed. The default destination directories are:
The program group “Advantech Automation\ADAMview” will be automatically created within WINDOWS,
and the six ADAMView icons (ADAMView Builder, ADAMView Runtime, ADAM Device Manager,
ADAMView Help, BasicScript Help and Uninstall ADAMView) will be placed inside.
If you make an error when entering a response to a question, simply click the “Back” or “Retry”
button to return to the previous step. The installation process can be aborted at any time by clicking
“exit”.
2. Once in WINDOWS, insert the ADAMView Setup CD into the CDROM drive.
3. The installation Program will be launched automatically. Or you can use your Windows Explorer or
the Windows Run command, execute the following file on the ADAMView installation CD-ROM disc
D:\Setup.exe
21
Where D is the drive into which you inserted your ADAMView Setup CD and click Run..
Following on-line description, you can install ADAMView on your computer with ease.
When all the files have been copied, you should see the Advantech Automation / ADAMView group
created within Windows. The siz ADAMView icons will be displayed in the group window. The setup screen
will return to display a success message. ADAMView is now installed. Should you have any problems
installing ADAMView (any error messages), call Advantech Technical Support.
22
The DEMO Strategy, alarm.gni, is a simple strategy that interfaces the DEMO I/O Device to the
Display.
1. Load the DEMO Strategy into ADAMView, enter the ADAMView Task Designer by double clicking
on the ADAMView Builder icon in the Advantech ADAMView group. Once in the ADAMView Main
screen, click the File menu, then open an existing file. You will see a displayed directory tree
containing the ADAMView directory and the STRATEGY directory. Double click on the Strategy
directory, and you will see all *.gni files contained in the STRATEGY directory. Highlight the one
called “DEMO01.GNI”, and press OK.
24
Figure 2-2 Analog Input block configuration
Double-click on the trend graph display icon in DISP1 within Display Designer. The Display Designer
should open, along with a trend graph Display Item. This is one of many display types you can choose
when you later design your display window.
25
Figure 2-3 Task and Display connection
2. Run the DEMO Strategy. To run the Strategy from within ADAMView Builder, first save the Strategy
(File, Save), and then press Run, located on the menu bar at the top of the Strategy Editor. The
DEMO I/O Device’s ± 5 volt sine wave will be generated in real time on the Y-T display. The sine
wave continues to be generated until you press Stop on the Run Menu bar. You can also run from an
icon called ADAMView Runtime.
26
Uninstalling ADAMView
If you wish to completely remove ADAMView from your system, you just click on the Uninstall ADAMView
icon. ADAMView will be removed from your system automatically. You don’t worry about deleting files.
27
2.3 ADAMView Program Group Icons
ADAMView Runtime The Runtime icon allows you to invoke only the ADAMView runtime environment
without the development functions. You can execute ADAMView strategy files
only without worrying about any changes being made. This utility is often used
after you finished your system and run it at the end user site.
Device Manager This icon is used for installing H/W drivers with ADAMView to connect equipment
hardware. You can easily connect all Advantech hardware through supplied
drivers.
BasicScript Help The BasicScript icon is a help file to tell you how to use the BasicScript
development environment. It includes a BasicScript function library and
BasicScript program syntax.
ADAMView Help This icon invokes a help file which can be used to quickly access context-
sensitive help for your operations.
Uninstall ADAMView This icon is used for removing ADAMView from your system.