![Alcorn Mcbride V+ series User Manual Download Page 133](http://html1.mh-extra.com/html/alcorn-mcbride/v-series/v-series_user-manual_2892709133.webp)
Advanced WinScript Programming
6-15
Ad
va
n
ce
d
P
ro
g
ramm
ing
forget what time it is when the power is turned off in a power outage. The
second solution is to
simulate
a Real Time Clock in ScriptOS. This solution
does have the advantage of being
free
, but has the disadvantage of being off by
approximately 1 minute per day and forgetting what time it is if the power goes
out. If a standard UPS is used, and some device (or person) resets the time once
per day, these problems can become negligible.
Both solutions write the hour, minute, second, and frame to four state variables.
I will now show you several examples of using the Real Time Clock (either
external or simulated).
Start Event at 8 p.m.
This sequence is started whenever the
HourVar
reaches 20.
TimeToTapeFriends
(Start trigger: HourVar=20)
Label
Time
Event
Data1
Data2 Data3 Comment
00:00.00 Start
RecordTV
Do Whatever
Start Event at 11:58 p.m.
This sequence is started whenever the
MinuteVar
state variable reaches 58
minutes, and then checks to see if
HourVar
is 23. If it is, it starts the event, if
not, it exits.
TwoTilMidnight
(Start trigger: MinuteVar=58)
Label
Time
Event
Data1
Data2 Data3 Comment
00:00.00 IfVarEQ HourVar
23
11:58 Now!
00:00.00 Goto
End
11:58
00:00.00 Start
DoIt
Do Whatever
End
00:00.00 Nop
Start Event Every Hour.
This sequence is started whenever the
HourVar
state variable changes.
Because sequences always look for
edge-triggered
occurrences, every time
HourVar
is changed, this sequence will run because
HourVar
will always be
greater or equal to zero.
AtTheHour1
(Start trigger: HourVar
0)
Label
Time
Event
Data1
Data2 Data3 Comment
00:00.00 Start
DoIt
Do Whatever
Start Event Three Frames after Every Minute
from Midnight to Six a.m.
This sequence is a little hairier, but is again demonstrative of the power of
ScriptOS.
Summary of Contents for V+ series
Page 2: ...User s Guide To Show Control by Alcorn McBride Inc...
Page 7: ...Third Party Equipment 18 3 Index 19 1...
Page 8: ......
Page 14: ...1 6 Welcome...
Page 28: ...3 14 Show Control Overview GoingToDayModeMsg ClearLine2Msg...
Page 38: ...3 24 Show Control Overview...
Page 82: ...4 44 WinScript User s Guide...
Page 118: ......
Page 144: ...6 26 Advanced WinScript Programming...
Page 170: ...7 26 Application Notes...
Page 220: ...13 8 DMX Machine Hardware Reference...
Page 236: ...14 16 SMPTE Machine Hardware Reference...
Page 254: ...15 18 Appendix A Adding User Defined Serial Protocols...
Page 264: ......