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_2wideX3lines.lss < prev    next >
Text File  |  2004-12-22  |  11KB  |  263 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 small size characters (3 lines per board) with 2 two uGraph boards side by side (2 columns)
  11. ; Display - Place, Lane, Name, Affiliation, Time
  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. ;;ResultsHeader
  185. ; This is sent once each time the scoreboard is updated with results. It
  186. ; is sent before any result lines are sent.
  187. ; Line codes:
  188. ;  \00  No variable
  189. ;  \01  OFFICIAL/UNOFFICIAL string
  190. ;  \02  Event name
  191. ;  \03  Wind
  192. ;  \04  Event number
  193. ;  \05  Round number
  194. ;  \06  Heat number
  195. ;  \07  AUTO/MANUAL start type
  196. ;  \08  Number of participants
  197. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  198.  
  199. ;;ResultsTrailer
  200. ; This is sent once each time the scoreboard is updated with results. It
  201. ; is sent after all result lines are sent.
  202. ; Line codes are identical to the ResultsHeader line codes.
  203.  
  204. ;;Result
  205. ; This is sent once for each result line displayed on the scoreboard.
  206. ; Line codes:
  207. ;  \00  No variable
  208. ;  \01  Place
  209. ;  \02  Lane
  210. ;  \03  Id
  211. ;  \04  Name
  212. ;  \05  Affiliation
  213. ;  \06  Time
  214. ;  \07  Delta Time
  215. ;  \08  Cumulative Split Time
  216. ;  \09  Last Split Time
  217. ;  \0a  Laps To Go
  218. ;  \0b  License
  219. ;  \0c  ReacTime
  220. ;  \0d  Speed
  221. ;  \0e  Pace
  222. ; Register[0] is initialized with the index of the current result line and
  223. ; will range from 0 through PageSize - 1.
  224. ;
  225. ;calculate starting pixel
  226. \00\X8\*0
  227. ; static string line 1 start
  228. \00\X0\=2\1b@S\00\00\O0\00\00\01\L0\U2\F2\R0
  229. \01%-2.2s \L0\U2\F2\R0
  230. \02%2.2s \L0\U2\F2\R0
  231. \04%-10.10s \L0\U2\F2\R0
  232. \05%-4.4s \L0\U2\F2\R0
  233. \06%9.9s\B1\L0\U2\F2\R0
  234. ; line 1 end
  235. \00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  236.  
  237. ;;MessageHeader
  238. ; This is sent once each time the scoreboard is updated with the message. It
  239. ; is sent before any message lines are sent.
  240. ; Line codes:
  241. ;  \00  No variable
  242. \00\X0\=2\1b r\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  243.  
  244. ;;MessageTrailer
  245. ; This is sent once each time the scoreboard is updated with the message. It
  246. ; is sent after all message lines are sent.
  247. ; Line codes are identical to the MessageHeader line codes.
  248.  
  249. ;;Message
  250. ; This is sent once for each message line displayed on the scoreboard.
  251. ; Line codes:
  252. ;  \00  No variable
  253. ;  \01  Text
  254. ; Register[0] is initialized with the index of the current message line and
  255. ; will range from 0 through <number of lines> - 1.
  256. \00\X\0c\*0
  257. \01\X0\=2\1b@S\00\00\O0\00\00\02%s\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  258.  
  259.  
  260.  
  261.  
  262.  
  263.