AMX NETLINX PROGRAMMING LANGUAGE Manual page 89

Programming language
Table of Contents

Advertisement

TIMELINE_EVENT[TL1] // capture all events for Timeline 1
{
switch(Timeline.Sequence) // which time was it?
{
case 1: { SEND_COMMAND dvPanel,"'TEXT1-1 1'"
case 2: { SEND_COMMAND dvPanel,"'TEXT1-1 2'"
case 3: { SEND_COMMAND dvPanel,"'TEXT1-1 3'"
case 4: { SEND_COMMAND dvPanel,"'TEXT1-1 4'"
case 5: { SEND_COMMAND dvPanel,"'TEXT1-1 5'"
}
}
TIMELINE_EVENT[TL2]
{
switch(Timeline.Sequence)
{
case 1: { SEND_COMMAND dvPanel,"'TEXT2-2 1'"
case 2: { SEND_COMMAND dvPanel,"'TEXT2-2 2'"
case 3: { SEND_COMMAND dvPanel,"'TEXT2-2 3'"
case 4: { SEND_COMMAND dvPanel,"'TEXT2-2 4'"
case 5: { SEND_COMMAND dvPanel,"'TEXT2-2 5'"
}
}
DEFINE_PROGRAM
PUSH[dvPanel,1]
{
TimeArray[1] = 1000
TimeArray[2] = 2000
TimeArray[3] = 3000
TimeArray[4] = 4000
TimeArray[5] = 5000
TIMELINE_CREATE(TL1, TimeArray, 5, TIMELINE_ABSOLUTE,
TIMELINE_REPEAT)
}
PUSH[dvPanel,2]
{
TimeArray[1] = 1000
TimeArray[2] = 1000
TimeArray[3] = 1000
TimeArray[4] = 1000
TimeArray[5] = 1000
TIMELINE_CREATE(TL2, TimeArray, 5, TIMELINE_RELATIVE, TIMELINE_ONCE)
}
The example above creates two timelines (
second).
NetLinx Programming Language Reference Guide
}
}
}
}
}
}
}
}
}
}
and
) that trigger events at the same rate (once per
TL1
TL2
Event Handlers
73

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents