home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / FinishLynx-8.00.exe / uGraph_3lines_Wind.lss < prev    next >
Text File  |  2004-03-29  |  12KB  |  319 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-1997 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Last modified by Hugues Lacroix (02/19/04)
  10. ; Set Paging to 3
  11. ;
  12. ; Notes:
  13. ;  + Empty lines and lines that start with a semicolon are ignored.
  14. ;  + Lines that start with two semicolons indicate a section header.
  15. ;    They must be one of the following:
  16. ;      ;;Initialization
  17. ;      ;;TimeRunning
  18. ;      ;;TimeStopped
  19. ;      ;;TimeGun
  20. ;      ;;TimeBreak
  21. ;      ;;TimeUpdate
  22. ;      ;;Wind
  23. ;      ;;TimeOfDay
  24. ;      ;;ResultsHeader
  25. ;      ;;ResultsTrailer
  26. ;      ;;Result
  27. ;      ;;StartListHeader
  28. ;      ;;StartListTrailer
  29. ;      ;;StartList
  30. ;      ;;MessageHeader
  31. ;      ;;MessageTrailer
  32. ;      ;;Message
  33. ;    Sections may be omitted, appear in any order, and occur more than once.
  34. ;  + Format lines must begin with a value indicating which variable
  35. ;    they want to access. The special code \00 indicates that no variable
  36. ;    is being requested. If a variable is requested it will be inserted where
  37. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  38. ;    specifier in lines requesting a variable and no other printf format
  39. ;    specifiers may appear. Remember, lines requesting a variable are used as
  40. ;    a printf format string and therefore must behave as such. Lines not 
  41. ;    requesting variables (code \00) can do whatever they want as these 
  42. ;    lines are not fed to a printf statement.
  43. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  44. ;    digit. Note that h must be lowercase.
  45. ;  + Format lines can have the following commands embedded in them.
  46. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  47. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  48. ;     \Ui\hh  Set the 'U' value to register[hh].
  49. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  50. ;     \Xi\hh  Set the 'X' value to register[hh].
  51. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  52. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  53. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  54. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  55. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  56. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  57. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  58. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  59. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  60. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  61. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  62. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  63. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  64. ;             next {X|<eol>} characters.
  65. ;              \U\00  IDS checksum.
  66. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  67. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  68. ;              \U\03  CRC-16. register[hh] is used as the seed value
  69. ;                       and register[hh+1] is the polynomial.
  70. ;              \U\04  CRC-32. register[hh] is used as the seed value
  71. ;                       and register[hh+1] is the polynomial.
  72. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  73. ;              \U\00  Binary little-endian (Intel byte order).
  74. ;              \U\01  Binary big-endian (Motorola byte order).
  75. ;              \U\02  ASCII text right justified space padded.
  76. ;              \U\03  ASCII text right justified zero padded.
  77. ;              \U\04  ASCII text left justified space padded.
  78. ;              \U\05  ASCII text left justified zero padded.
  79. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  80. ;              \U\00  ASCII text base 10.
  81. ;              \U\01  Binary little-endian (Intel byte order).
  82. ;              \U\02  Binary big-endian (Motorola byte order).
  83. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  84. ;              \P\00  Reverse characters.
  85. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  86. ;                       is the current character position on entry and the
  87. ;                       next character position on exit.
  88. ;              \P\02  Convert characters to Daktronics AllSport format.
  89. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  90. ;             before the cursor or until the string contains X characters.
  91. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  92. ;             at the cursor or until the string contains X characters.
  93. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  94. ;             contains X characters.
  95. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  96. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  97. ;             beginning of the line if zero).
  98. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  99. ;             end of the line if zero).
  100. ;    Note that numbers 0 thru 9 can be entered directly for single character
  101. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  102. ;    '\=\01' is the same as '\=1'.
  103. ;  + Be very careful about whitespace in each format line. Characters other
  104. ;    than '%s' specifiers and embedded commands and values will be sent
  105. ;    exactly as they appear on the line. This means, for instance, that using
  106. ;    tabs to make a line 'look right' in you favorite editor will cause
  107. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  108. ;    spaces (probably not what you wanted).
  109. ;
  110. ; The format lines follow.
  111.  
  112. ;;Initialization
  113. ; This is sent once to initialize the scoreboard.
  114. ; Line codes:
  115. ;  \00 No variable
  116. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  117.  
  118. ;;TimeRunning
  119. ; This is sent approximately 10 times per second.
  120. ; Line codes:
  121. ;  \00  No variable
  122. ;  \01  Formatted time
  123. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  124. ; Setting register[0] to 1 in a format line will cause that line and
  125. ; subsequent lines to only be sent once per second (when the second's 
  126. ; digit changes) instead of approximately 10 times per second. Setting
  127. ; register[0] to 0 will resume normal operation for remaining lines.
  128. ;
  129. ; MMSS__ (big fat numbers)
  130. ;\01\=0\X0\=2\1b@S\00\00\00\00\00\04%12.12s\B4\L2\B1\L2\B3\R0  \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  131. ; mm:ss___ (half-size numbers)
  132. \01\=0\X0\=2\1b@S\00\00\00\00\00\05%12.12s\B4\L5\B3\R0     \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  133. ; clear all of 2nd line
  134. \01\=0\X0\=2\1b@S\00\00\0c\00\00\05          \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  135.  
  136. ;;TimeStopped
  137. ; This is sent when the time is stopped by a beam break.
  138. ; Line codes are identical to the TimeRunning line codes.
  139. ;
  140. ; MMSSDD (big fat numbers)
  141. ;\01\X0\=2\1b@S\00\00\00\00\00\04%12.12s\B1\L2\B1\L2\B1\L2\B3\R0\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  142. ; mm:ss.dd
  143. \01\=0\X0\=2\1b@S\00\00\00\00\00\05%12.12s\B1\L8\B3\R0  \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  144. ; clear all of 2nd line
  145. \01\=0\X0\=2\1b@S\00\00\0c\00\00\05          \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  146.  
  147. ;;TimeGun
  148. ; This is sent when a gun signal is received.
  149. ; Line codes are identical to the TimeRunning line codes.
  150. ;\01\0d\0aGun time    : %12.12s\0d\0a
  151.  
  152. ;;TimeBreak
  153. ; This is sent when a beam break is recieved.
  154. ; Line codes are identical to the TimeRunning line codes.
  155. ;\01\0d\0aBreak time  : %12.12s\0d\0a
  156.  
  157. ;;TimeUpdate
  158. ; This is sent approximately 10 times per second.
  159. ; Line codes are identical to the TimeRunning line codes.
  160. ;\01\0dUpdate time : %12.12s
  161.  
  162. ;;Wind
  163. ; This is sent in the time stream when a wind reading is received.
  164. ; Line codes:
  165. ;  \00  No variable
  166. ;  \01  Formatted wind (same format as ResultsHeader wind)
  167. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  168. ;\01\0d\0aWind        : %12.12s\0d\0a
  169.  
  170. ;;TimeOfDay
  171. ; This is sent when the 'Send time of day' option is checked in the
  172. ; Scoreboard pull down menu.
  173. ; Line codes are identical to the TimeRunning line codes.
  174. ;
  175. ; HHMMSS (big fat numbers)
  176. ;\01\=0\X0\=2\1b@S\00\00\00\00\00\04%12.12s\B4\L2\B1\L2\B1\R0\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  177. ; hh:mm:ss (half-size numbers)
  178. \01\=0\X0\=2\1b@S\00\00\00\00\00\05%12.12s\B4  \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  179. ; clear all of 2nd line
  180. \01\=0\X0\=2\1b@S\00\00\0c\00\00\05          \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  181.  
  182. ;;StartListHeader
  183. ; This is sent once each time the scoreboard is updated with results. It
  184. ; is sent before any result lines are sent.
  185. ; Line codes:
  186. ;  \00  No variable
  187. ;  \01  OFFICIAL/UNOFFICIAL string
  188. ;  \02  Event name
  189. ;  \03  Wind
  190. ;  \04  Event number
  191. ;  \05  Round number
  192. ;  \06  Heat number
  193. ;  \07  AUTO/MANUAL start type
  194. ;  \08  Number of participants
  195. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  196. \00\X0\=2\1b@S\00\00\00\00\00\02\L0\U2\F2\R0
  197. \02%s\L0\U2\F2\R0
  198. \00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  199. \00\X0\=2\1b@S\00\00\0c\00\00\02\L0\U2\F2\R0
  200. \03Wind: %s\L0\U2\F2\R0
  201. \00     \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  202.  
  203. ;;StartListTrailer
  204. ; This is sent once each time the scoreboard is updated with results. It
  205. ; is sent after all result lines are sent.
  206. ; Line codes are identical to the ResultsHeader line codes.
  207.  
  208. ;;StartList
  209. ; This is sent once for each result line displayed on the scoreboard.
  210. ; Line codes:
  211. ;  \00  No variable
  212. ;  \01  Place
  213. ;  \02  Lane
  214. ;  \03  Id
  215. ;  \04  Name
  216. ;  \05  Affiliation
  217. ;  \06  Time
  218. ;  \07  Delta Time
  219. ;  \08  Cumulative Split Time
  220. ;  \09  Last Split Time
  221. ;  \0a  Laps To Go
  222. ;  \0b  License
  223. ;  \0c  ReacTime
  224. ;  \0d  Speed
  225. ;  \0e  Pace
  226. ; Register[0] is initialized with the index of the current result line and
  227. ; will range from 0 through PageSize - 1.
  228. ;
  229. ; static string line 1 start
  230. ;\00\X0\=2\1b@S\00\00\00\00\00\02\L0\U2\F2\R0
  231. ;\01%-2.2s \L0\U2\F2\R0
  232. ;\02%-2.2s \L0\U2\F2\R0
  233. ;\04%-8.8s\L0\U2\F2\R0
  234. ; line 1 end
  235. ;\00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  236. ; static string line 2 start
  237. ;\00\X0\=2\1b@S\00\00\0c\00\00\02\L0\U2\F2\R0
  238. ;\06%12.12s\L0\U2\F2\R0
  239. ; line 2 end
  240. ;\00     \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  241.  
  242. ;;ResultsHeader
  243. ; This is sent once each time the scoreboard is updated with results. It
  244. ; is sent before any result lines are sent.
  245. ; Line codes:
  246. ;  \00  No variable
  247. ;  \01  OFFICIAL/UNOFFICIAL string
  248. ;  \02  Event name
  249. ;  \03  Wind
  250. ;  \04  Event number
  251. ;  \05  Round number
  252. ;  \06  Heat number
  253. ;  \07  AUTO/MANUAL start type
  254. ;  \08  Number of participants
  255. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  256.  
  257. ;;ResultsTrailer
  258. ; This is sent once each time the scoreboard is updated with results. It
  259. ; is sent after all result lines are sent.
  260. ; Line codes are identical to the ResultsHeader line codes.
  261.  
  262. ;;Result
  263. ; This is sent once for each result line displayed on the scoreboard.
  264. ; Line codes:
  265. ;  \00  No variable
  266. ;  \01  Place
  267. ;  \02  Lane
  268. ;  \03  Id
  269. ;  \04  Name
  270. ;  \05  Affiliation
  271. ;  \06  Time
  272. ;  \07  Delta Time
  273. ;  \08  Cumulative Split Time
  274. ;  \09  Last Split Time
  275. ;  \0a  Laps To Go
  276. ;  \0b  License
  277. ;  \0c  ReacTime
  278. ;  \0d  Speed
  279. ;  \0e  Pace
  280. ; Register[0] is initialized with the index of the current result line and
  281. ; will range from 0 through PageSize - 1.
  282. ;
  283. ;calculate starting pixel
  284. \00\X8\*0
  285. ; static string line 1 start
  286. \00\X0\=2\1b@S\00\00\O0\00\00\01\L0\U2\F2\R0
  287. \01%-2.2s \L0\U2\F2\R0
  288. \02%-3.3s \L0\U2\F2\R0
  289. \06%9.9s\B1\L0\U2\F2\R0
  290. ; line 1 end
  291. \00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  292.  
  293.  
  294. ;;MessageHeader
  295. ; This is sent once each time the scoreboard is updated with the message. It
  296. ; is sent before any message lines are sent.
  297. ; Line codes:
  298. ;  \00  No variable
  299. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  300.  
  301. ;;MessageTrailer
  302. ; This is sent once each time the scoreboard is updated with the message. It
  303. ; is sent after all message lines are sent.
  304. ; Line codes are identical to the MessageHeader line codes.
  305.  
  306. ;;Message
  307. ; This is sent once for each message line displayed on the scoreboard.
  308. ; Line codes:
  309. ;  \00  No variable
  310. ;  \01  Text
  311. ; Register[0] is initialized with the index of the current message line and
  312. ; will range from 0 through <number of lines> - 1.
  313. \00\X\0c\*0
  314. \01\X0\=2\1b@S\00\00\O0\00\00\02%s\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  315.  
  316.  
  317.  
  318.  
  319.