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_2wideX2lines_Sprints_Wind.lss < prev    next >
Text File  |  2004-12-22  |  13KB  |  323 lines

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