Using i!-ConnectLinx
5
i!-ConnectLinx
2.
Find their IDs. VCR Play is
1131
, and VCR Stop is
1132
.
3.
Send the IDs to i!-ConnectLinx:
DATA_EVENT[vdvCLActions]
{
ONLINE:
{
(* Setup actions *)
(* VCR Play *)
SEND_COMMAND vdvCLActions,"'ADD STD-1131'"
(* VCR Stop *)
SEND_COMMAND vdvCLActions,"'ADD STD-1132'"
}
Additionally, change the two
BUTTON_EVENT
s to trigger for channels
1131
and
1132
instead of 1
and 2.
There are other syntax’s of the add standard action command that allow you add multiple actions at
a time. The ‘
&
’ character can be used to signify "AND" and the ‘
-
‘ character can be used to signify
"through".
Since many of the standard actions are related, they can also be added by macros. A macro is a list
of one or more standard actions. In the case of a VCR, the full set of transports are needed, not just
Play and Stop. Also, if the VCR exists in the system then there is likely a way to select the VCR as
the active source. Therefore, the "
vcr
" macro includes the VCR source select and the standard
transports. To load a set of actions by macro, simply send a command to i!-ConnectLinx with the
macro you want added. For example:
DATA_EVENT[vdvCLActions]
{
ONLINE:
{
(* Setup actions *)
(* VCR Select and Play-Record *)
SEND_COMMAND vdvCLActions,"'ADD MACRO-vcr'"
}
For a complete list of macros, see the
i!-ConnectLinxStdFunctionList.xls
file.
A common method for programming i!-ConnectLinx is to simply register standard actions and
responding to the actions by "DO_PUSH"ing an existing button on the touch panel. For instance:
BUTTON_EVENT[vdvCLActions,1011](* VCR Select *)
{
PUSH:
DO_PUSH(dvTP,11) (* Button 11 on dvTP selects VCR *)
}
To make programming i!-ConnectLinx easier, the i!-ConnectLinxStdFunctionList.xls file includes
an i!-ConnectLinx Code Generator page. On this page, you can enter the i!-ConnectLinx device,
the Touch Panel device and the Touch Panel buttons for each standard action. The code generator
will create an Include (AXI) file that contains the necessary code to register and respond to the
selected actions. Optionally, the code generator can include the DEFINE_MODULE statement for
i!-ConnectLinx. Once the Include file is created, you will need to include this file in your main
program with an #INCLUDE statement and make sure the i!-ConnectLinx and Touch Panel devices
are defined. See the i!-ConnectLinxStdFunctionList.xls file for more details.