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