Advent Instruments Inc.
4. Programming
What is TRsSim
TRsSim stands for Tip/Ring Signal Simulator. It is a Windows PC software application
that provides a high level graphical user interface for a number of products. This
includes the AI-7280.
Using TRsSim with the AI-7280 makes it easy to perform complex telephony related
tests such as dialing verification, ring generation, call display testing, and fixed line SMS
testing. Included with TRsSim is a development environment for creating script
programs to automate tasks. While the scripting system runs and executes entirely within
TRsSim it can be configured to generate programs for the AI-7280 program execution
units (PEU). This is the mode used in the following example.
To start, the TRsSim software requires either a RS-232 serial or USB connection with an
AI-7280. To accomplish this please consult the TRsSim user guides included with the
software.
Creating a Device Script Project
The scripting environment within TRsSim supports working with multiple projects at the
same time. A project is simply one or more source code files that represent a complete
program. However TRsSim only supports one project as the active project at a time. It is
only the active project that is compiled and executed.
Step 1: From the VIEW menu in TRsSim, select the SCRIPT EDITOR
command.
This command opens the scripting editor window from where all projects are created and
managed. The window shows one of three different views as selected by the tabs located
in the top right corner. They are
Editor
,
Settings
, and
Status
.
The editor view is used to modify script programs and managing the projects. Each
project can contain multiple source code modules which may be ordered in a hierarchical
fashion. By default, all projects are created with just a single source code module.
The settings view shows various settings for each project. The specific settings available
depend on the type of project created.
Finally, the status view shows debugging information for the currently active script
project.
Note that the debugging information is only available for scripting programs that control
TRsSim itself. Not for device script programs that execute on the AI-7280.
Step 2: From the PROJECT menu select the ADD PROJECT command.
This command creates a new project that is used in this example. It shows a window
similar to the following where project details are specified.
AI-7280 Programmers Guide - Direct Control
79