CR1000 OS 28
Updated: 02-26-2015

  1. Added auto-IP to all Ethernet interfaces. The default auto-IP address for each interface is
  2. Removed IPInfo from the status table. It remains in the settings table, via CRBasic, and the settings editor.
  3. Added the IPInfo() instruction which provides a way to return the remote IP address of a connection handle. If the handle number is greater than or equal to 100, it will return either an IPv4 or IPv6 address. The second option of IPInfo() is ignored when the connection handle is greater than or equal to 100.
  4. Changed Status.CommsMemFree to a multi-line string field. Previously it was an array of three integers. Access via CRBasic using StringVar = Status.CommsMemFree.
  5. Fixed updating CommsMemFree when monitoring the status field via CRBasic.
  6. Changed FTPClient(), EmailSend(), HTTPPost(), and HTTPPut() so that, when streaming data, a -2 will be be returned if the interval > 0 and the table is Status, Public, or the Constant table.
  7. Fixed stack allocation when email, FTP, and HTTP clients are within a subroutine or function that is declared in a different sequence than when executed at run time. This sometimes resulted in a watchdog.
  8. Limited IPRoute() to not execute at compile time unless it is before BeginProg in the CRBasic program.
  9. Modified IPRoute() so it can be changed on the fly.
  10. Fixed PPPOpen() when assigning return value to an element in an array.
  11. Changed serial comport shutdown process used by PPPClose() and SerialClose() to wait for the comm task to finish transmitting before they shutoff the comport.
  12. Fixed data table streaming of a single element of an array as in "DataTable.FieldName(2).
  13. Added a DHCP server that can be used for WiFi interfaces (e.g. NL240). Includes support for NL240 configured for ad hoc mode ("create a network") and connected by CSIOIP() (configured with Bridge Mode Enabled = TRUE)
  14. Added a default DNS server address so that when no DNS servers are specified or none are discovered through DHCP, the logger still has a DNS entry it can try. This default DNS server will always have the lowest priority when present.
  15. Changed keeping track of DNS servers so when a network closes, the DNS servers obtained via DHCP for that network will be removed.
  16. Added the 0x1000 bit to W sniff of TCP/IP for DNS debug messages.
  17. Fixed EmailSend() and other client instructions so they can correctly run in the 4th slow sequence.
  18. Changed EmailRecv() so that "From" (sender) information is not required to be enclosed in < > when parsing.
  19. Enhanced EmailSend() so that leading spaces are stripped from email addresses before using, when multiple addresses are passed to the ToAddr parameter. Previously, the user needed to make sure the addresses specified in ToAddr contained no leading spaces.
  20. Fixed TLS for email so that it will work every time instead of every other time.
  21. Fixed email authorization when using CRAM MD5.
  22. Added domain name to the EHLO request in our email client.
  23. Fixed EmailRecv() to work with base64 encoded messages and attachments.
  24. Changed EmailSend() so that the file name drive prefix is removed when specified as an attachment.
  25. Enhanced EmailSend() so that leading spaces in file names specified as attachments are removed.
  26. Added support for the NL116 and NL121.
  27. Add support for IPv6 on all IP / Ethernet interfaces.
  28. Fixed EthernetPower to skip turning PPP off.
  29. Enhanced FTPClient() in conjunction with the files manager setting (3210) so that it will return the new filename that is controlled by the files manager setting. The new filename is now placed into the local file name variable.
  30. Added the ability to access all datalogger settings and status from CRBasic and keyboard display. Previously, some settings were not accessible from the keyboard display or program.
  31. Fixed the FTP Server so that is does not release memory twice.
  32. Fixed the FTP Server so that ensure that the command buffer is not overwritten.
  33. Enhanced FTPClient() by adding NLST option for directory listing.
  34. Enhanced FTPClient() by allowing the destination for GET, LIST, and NLST to be a local variable of type string instead of a file.
  35. Enhanced FTPClient() by allowing LocalFileName parameter to be a variable array when PutGetOption is -6, -16, -7, or -17. In this case, each file name returned will be written to different elements of the array. Elements not written to will be nulled.
  36. Modified the FTPClient() response, written to the LocalFileName parameter, by removing the path from the file name when the LocalFileName parameter is a variable/array (not a local file name) and the PutGetOption is -6, -16, -7, or -17.
  37. Changed FTPClient() so that it will null the variable/array passed to the LocalFileName parameter when doing a directory listening and there is no response from the server.
  38. Enhanced FTPClient() by stripping spaces after the , (comma) when multiple files are specified for LocalFileName or RemoteFileName.
  39. Changed FTPClient() to allow a line without a 3 digit leading code through when parsing responses.
  40. Changed FTPClient() so that it starts listening for a data connection before it issues the PORT command. This was done to make sure it is ready to accept when the server tries to open the connection.
  41. Changed FTPClient() so that if commands on multiple files are specified, finish operating on the rest, even if the current one fails.
  42. Fixed FTPClient() by not requiring multiple local files to be specified when attempting to delete multiple remote files.
  43. Changed FTP Client so that it sends "QUIT" command before closing with a failure due to an error response code from the FTP server. This should cause the connection to the server to end sooner.
  44. Fixed FTPClient() when streaming with the option to either put in the header or not based on if the file is present on the server. After storing successfully without a header, i.e., detecting the file is present, if the file is deleted on the server we did not redetect properly that it was no longer there.
  45. Changed the FTP Server so that the LIST and NLST commands can have paths prefixed.
  46. Enhanced FTPClient() so that when streaming a data file, if the FileOption is negative, the header is added only if the file currently does not exist on the remote server. An example of a common example is FTPClient(host,user,pass,"TableName","data.dat",9,0,60,Min,-1008). Note that in this example, the PutGetOption is append and FileOption is both +1000 and negated.
  47. Added the maximum number of concurrent FTP Server connections and limited it to 8.
  48. Fixed HTTPGet() when the response transfer encoding is "chunked". Symptoms were HTTPGet() not completing / timing out after 75 seconds and chunk values not being parsed but instead showing up in the result.
  49. Updated http by setting a timeout if a stray http packet is received to help prevent using datalogger bandwidth. This was done so we don't waste bandwidth trying to poll for the rest of the packet continually.
  50. Changed HTTPGet() so that if there is an error and the response is directed to file, it then writes the error message to the header parameter if it is a variable.
  51. Added a new IP trace code of 0x800 (2048) for http.
  52. Fixed the HTTP web server for file names and unknown file types.
  53. Modified HTTPGet(), HTTPPut(), and HTTPPost() so that they can be used against a HTTPS:// URI even when the URI is a variable. TLS will be enabled and memory allocated for each Sequence when it contains a HTTPGet/Put/Post command and a URI that is a variable or when the URI is a constant specifying a HTTPS:// address.
  54. Added Content-Disposition to the web server.
  55. Removed possible window (very small) where JSON files would return "more-true" when there is no more. (significant)
  56. Fixed web server when displaying string variables with a '%' embedded.
  57. Changed web server so that the number of records displayed is not limited to the size of the CPU table size when a card is in use.
  58. Changed HTTPGet() so that if the destination is a file, it will not be opened until after the connection to the server is made. This prevents a file serial number, controlled by the Files Manger, from incrementing when the connection cannot be made, avoiding gaps in the serial numbering and hence fewer files kept than specified by the Files Manager Setting.
  59. Fixed NTP when the domain is not cached and needs to be obtained via DNS server. A 0 offset was
  60. Changed PakBus hop metric for TCP connections to be 1 sec instead of 5 sec unless the connection is over PPP.
  61. Changed PakBus/TCP to not close the TCP connection if a route is lost but neighbors still exists on the connection.
  62. Fixed PakBus/TCP Password authorization so that the TCPOpen() does not return a connection before the authorization is complete. This manifested as not being able to connect with Konect GDS.
  63. Fixed dialing a modem via PPP or Modem Callback so that if dialing fails, and the modem outputs unknown characters to the datalogger, that the echo process continues to work.
  64. Fixed PPPClose() to get rid of the 5 second delay and to not inadvertently close the NL240 also.
  65. Fixed possible asynchronous problem when dialing a modem with PPP.
  66. Removed looking for "CLIENT" while connected in PPP.
  67. Modified PPP so that if a comport is setup for PPP, don't let any characters enter the Terminal Mode even if the program has closed PPP.
  68. Changed PPP so that when closing the session is unsuccessful, send +++ and AT+CGATT=0 to try to get the modem off line.
  69. Enhanced PPP dialing messages in IP trace and IP status.
  70. Fixed PPP so that a static IP address can be used.
  71. Modified SNMP string variable to make sure we cannot overwrite size of 255 characters max.
  72. Fixed SNMP ESS stations for setting strings and for a blank community name.
  73. Added SNMPVariable() to map variables into an SNMP OID.
  74. Changed TCPOpen() to allow listening on a port for multiple concurrent connections.
  75. Enhanced TCPOpen() so that when it is listening on a port (IP address is null), it will handle multiple concurrent connections up to MaxConnect connections. When used this way, TCPOpen() is not to be called in a loop for each connection as is done when the multiple connections are as a TCP client. Rather, for each connection that is accepted, a vacant slot in the array is found and filled in with the connection handle. This allows multiple connections to be handled by the service protocol defined by serial I/O instructions. TCPOpen("",3000,1000,7500,Handles,MaxConnections) 'listen for multiple connections on port 3000. For I = 1 to MaxConnections : If Handles(I) > 100 Then : IPAddress(I) = IPInfo(Handles(I),1) : Else : IPAddress(I) = "" : EndIf : Next I
  76. Changed TLS memory allocation to accommodate more than 1 HTTPS connection concurrent within the same sequence since these connections can stay open after the instruction exits.
  77. Increased the stack size for TLS needed for TLS client connections.
  78. Changed TLS memory allocation to wait for up to 3 minutes if memory is not available instead of watchdogging. This will help when running TLS concurrently in different CRBasic sequences.
  79. Modified UDPDatagram() so that when the IP address is blank, it will listen for and queue up incoming datagrams. Also UDPDataGram() will return a connection handle when a datagram is queued, put the received data into the UDPRecVar variable, and indicate the message length of the received data in the UDPSendLen variable.
  80. Fixed keyboard display security challenge to not incorrectly re-challenge when backing out of a secured menu.
  81. Changed indentation (reduced) of displayed values while editing constant in ConstTable.
  82. Added in keyboard display ConstTable editor an "Apply and Restart" flag that will cause the changes to the ConstTable to be applied and the program restarted. This behaves the same way as when you escape from the ConstTable menu and are prompted to save the changes.
  83. Updated keyboard display of settings to show all logger settings available. Previously only a subset of settings were displayed for editing.
  84. Changed keyboard display of settings. Settings are split into "general" and "com ports".
  85. Fixed keyboard display directory of a card with > 2 Gig memory.
  86. Changed the Communication Allocation setting to also adjust the big packet size (the second field in the first line in CommsMemFree). This is needed so the logger can stream in large generic data packets for serial I/O.
  87. Changed FTP and HTTP putting files onto the datalogger to do it from the IPServer task so that if was it was taking too much time in the IP task, it would cause it to not watchdog.
  88. Fixed writing an IP trace file in cases where the disk/drive was full.
  89. Modified IP static and dynamic routes to give precedence to static routes.
  90. Changed TCP/IP Info so that the default network is listed. The default network is listed as "XXXXX is Default Network" where XXXXX could be CSIO(1), CSIO(2), ppp, or eth. Instructions that need access to a specific TCP/IP address (or DNS name) that has not been listed in the IPRoute() instruction will use the default network to try to do its work. Those listed in the IPRoute() instruction will use the specified Ethernet interface to do its work.
  91. Modified it so that IP Info displays ipv6 default routers.
  92. Changed 'W' sniffing of IP trace so that it restores the original trace code when it exists.
  93. Fixed SetSetting("PakBusTCPClients","") to allow a : (colon) before port. The officially recommended syntax is SetSetting("PakBusTCPClients","(host1,port1)(host2,port2)(host3,port3)(host4,port4)"), however in reality the host and ports need only a) to be specified as one single string and b) be separated by a delimiter like space, comma, colon, semi-colon, etc.
  94. Shortened the advertised wait time for TCP when doing os_recompile.
  95. Fixed data streaming triggered by the offset into interval parameters when the units were something other than seconds.
  96. Fixed data table streaming of a single element within an array.
  97. Enhanced IPNetPower() so that when turning power off to an IP network, if no other network is active, all the IP connections will be closed.
  98. Changed IP tracing we don't run into a possible, rare, memory leak of CommsMemFree when concurrent tasks are IP tracing.
  99. Modified TCP/IP Info so that if no IP networks are present, it will display "No IP Networks".
  100. Fixed some communication instructions including AVW200's when the route is via TCP/IP but with a static route.
  101. Added string length attribute to JSON and XML queries.
  102. Fixed JSON formatted files (missing head) generated by TableFile and by streaming via FTP, email, and http. (significant)
  103. Changed initialization of data streaming based on interval in the case there are records already stored on the first execution.
  104. Added a 6th parameter (optional) to DNP instruction; 1 means TLS enabled.
  105. Fixed DNP3 when the swath for the DNPVariable instruction is 1.
  106. Fixed SDM-SIO1 DNP3 Master.
  107. Changed the DNPFlag parameter so that if the flag parameter is smaller than the array for the source parameter, then the last element of the flag array is used for all of the remaining source array elements.
  108. Changed the DNPEvent parameter so that if the DNPEvent array is smaller than the source array, the last element of the DNPEvent array is used for all of the remaining source array elements.
  109. Changed DNP3 so that more than 65535 events can be stored and so that it does not use twice as much memory as needed.
  110. Added DNP3 indexing into arrays so that multiple DNP3 classes can be specified with one source array.
  111. Changed DNP datagram implementation so that if DNP comport parameter is negative then PakBus Datagram is activated.
  112. Added support for DNP3 object 110 (string).
  113. Added support for DNP3 group 21 (frozen counter).
  114. Added DNP3 group 0, variations 240, 241, 242, 243, 247, 248, 250, 252, 254, 255.
  115. Added an optional parameter to DNPUpdate() called ConnectHandle that provides a TCP Connection Handle controlled by TCPOpen().
  116. Added support for DNP3 Unsolicited Responses.
  117. Added support for DNP3 single-precision floating point variations to Objects 30, 32, 40 and 41.
  118. Added DNP3 support for object 50, variation 1 (read time and date).
  119. Changed the meaning of the link verification, timeout parameter in DNP() as follows: 1000 = Disable link layer confirmation, disable link verification, application layer timeout is 60 seconds. 1sss = Disable link layer confirmation, disable link verification, application layer timeout is sss seconds (max is 60 seconds). 0000 = Disable link layer confirmation, enable link verification, application layer timeout is 60 seconds. 0sss = Enable link verification, link layer and application layer confirmation timeout is sss seconds (max is 60 seconds).
  120. Fixed erroneous closing of comport that is open for PPP or serial comms when characters directed to the terminal are intercepted.
  121. Fixed GetVariables() responding to command when the remote wants ASCII and our variable is NSEC (timestamp), return the date/time instead of NAN.
  122. Fixed GetVariables() when the destination variable is an array of type string and is referenced with a variable index into the array.
  123. Fixed GetVariables() when the destination variable is of type string but the value in the remote is of some other type.
  124. Changed PakBus routing so that if a static route is specified by the neighbor address and there is also a route to the destination with the same neighbor address as specified statically, then use the comport to the neighbor in the list instead of the statically declared comport.
  125. Changed PakBus set value so that it can set an FP2 value when the source is not FP2.
  126. Fixed the Routes() instruction for a non-router in the case that there are "potential neighbors", as in the case when there are allowed neighbors that have not been verified.
  127. Modified SerialOpen() so that if a delay is specified before transmit on the comport, then wait an extra 3 * the delay time when sending ring packets out before the main packet.
  128. Increased terminal stack size by 1K.
  129. Fixed Network() for a fixed begin address.
  130. Fixed displaying SDI-38 in status instead of SDI-12 when using CWB100.
  131. Changed terminal mode so that characters cannot enter terminal from a comport that is being used by the program via SerialOpen().
  132. Modified fwrite_bytes so that if MBX is full and does not succeed, releases memory.
  133. Fixed SendData (PakBus one way data send) when sending the Public table.
  134. Changed behavior when the Beacon Interval or Verify Interval is changed so that PakBus neighbors are verified instead of a broadcast hello request message sent out the comport.
  135. Files Manager setting for 3209 ("sniff") and 3212 ("IP trace") changed so that (1) a drive can be formatted if the setting is actively writing to the drive, (2) if writing to a CRD, pushing the card button will temporarily halt writing to the file, and (3) deleting the setting will allow the file to be deleted.
  136. Modified SerialOut() so that when waiting for echo, or for a string, will flush the buffer before each output.
  137. Changed SDE Enable Comport to 31 instead of 16 and allow the compiler to pass this comport into SerialOpen without error.
  138. Fixed initializing card pointers after a power cycle. Problem occurs if there is a power cycle and a table using DataInterval is writing to the card and has written a sector to the disk but has not gone far enough to write a full TOB3 frame and update the card record number. When power is restored, the file pointers are not correctly aligned after resuming operation. This results in a file that cannot be converted without the repair option. The fix is to move the read pointer back to the start of the CPU buffer so the first sector is written again.
  139. Changed the behavior on program start when using existing files on a card. If a power cycle occurred during card initialization, it often resulted in a yellow light and data not being written to the card. The behavior was changed so that if at program startup, initialization of an existing data file fails. The associated files are deleted and new files are created. The thinking here is that the files were deemed to be corrupt anyway, so removing them and starting fresh seems better than leaving the logger not writing to the files. (significant)
  140. Fixed SendVariables() and GetVariables() when the timeout expires at the same time the response is received in the case where the response code and/or source or destination parameters are variably indexed.
  141. Modified SerialOpen() if it specifies PakBus Active and TXDelay and fragment size, then delay 4 * TXDelay extra before retrying hello message.
  142. Changed Files Manager setting for 3209 ("sniff") and 3212 ("IP trace") so that (1) a drive can be formatted if the setting is actively writing to the drive, (2) if writing to a CRD, pushing the card button will temporarily halt writing to the file, and (3) deleting the setting will allow the file to be deleted.
  143. Removed adding 8192 bytes to the size specified when setting the USR drive size.
  144. Modified starting a slow scan to wake up slow measurement task immediately.
  145. Added SC115 change file attributes.
  146. Changed shutting down a comport when it is used as a control port instead.
  147. Changed setting user (USR) drive size so that it maxes at 2990000 bytes.
  148. Added warning message if the CPU: drive cannot be opened; give warning message and format the drive.
  149. Changed SerialInChk for SDM-SIO1 to return 13 bits of receive data. It is no longer meant to return the most significant bit.
  150. Corrected a problem using the Const declaration when using values exceeding (2^31) – 1 (2,147,483,647). If a value greater than (2^31) -1 was used as the constant, the actual value used in the program was 2,147,483,647. If a user's program contains a Const declaration with a desired floating point value greater than 2,147,483,647, they can correct previously gather data by doing a simple calculation. To correct calculation errors caused by this issue a user will need to reprocess values obtained using the erroneous constant. For example if the Const in question was used as a multiplier, you should divide the result by 2,147,483,647, then multiply by the actual desired constant.
  151. Changed compiler to allow a reference to tablename.fieldname() to act the same as tablename.fieldname.
  152. Fixed compiling a program that is missing a referenced sub routine. This was crashing the PC compiler since FunctionsPtr is NULL yet was used.
  153. Changed compile time error checking so that we don't flag a compile out of bounds error for covariance if a variable index is issued for the source. At run time an out of bounds will be flagged if necessary.
  154. Modified SpaAvg() so a compile error will be reported if the swath parameter is a constant that is beyond the boundary of the source array.
  155. Add -u command line in PC compiler. This option will instruct the PC compiler to check for and report unused variables and subroutines. For example "cr1comp.exe -u myprog.cr1" would report "Warning: VarA declared but not used" if myprog.cr1 had a variable VarA declared, but VarA is not actually used within the program.
  156. Enhanced Instr() function by adding Search Options 9 and 10. Search options 9 and 10 find the start of FilterString, starting at the end of the string and searching backwards through SearchString until it finds the beginning of FilterString, reaches the StartString position, or reaches the beginning of SearchString. Option 9 performs a case sensitive search. Option 10 performs a case insensitive search.
  157. Modified the pre-compiler code so it no longer allows Subroutines to be declared inside If..EndIf. Catch unterminated If in EndSub.
  158. Added OSVersion to predefined constant list. This predefined constant can be used to determine the datalogger operating system version at compile time, which can be particularly helpful for conditional compilation of programs using #IF/#ELSEIF/#ENDIF.
  159. Changed SetStatus() changed so that the settings list is checked first to determine if the field to be set is in both the status table and in the settings (like "StationName"). If so, the setting will be changed along with the status table. This change was introduced due to the restructuring of the Status table and settings and with the introduction of the SetSetting() instruction.
  160. Added new datalogger settings, EthernetEnable, CSIO1netEnable, CSIO2netEnable. Setting to FALSE will turn off / disable the associated interface unless the setting is changed to TRUE or unless IPNetPower() or EthernetPower() are used to turn it on under program control. The new settings specify the power state of the interface at boot up.
  161. Added new datalogger setting, DeleteCardFilesOnMisMatch. This setting controls the behavior of the datalogger when it restarts with a different program and it detects that data files created by the CardOut() are present but do not match the new program. If this value is set to one, the datalogger will delete these files so that new files can be stored. If set to a value of zero, the datalogger will retain the existing files and prevent any data from being appended to these files. The default is 0 so that the default behavior is the same as it has been prior to the addition of this setting.
  162. Removed compile warning message in the case that an infinite scan/nextscan is inside a conditional statement.
  163. Enhanced IfTime(), TimeIntoInterval(), and DataInterval() by adding interval Units option of Mon (Month). MON is the predefined constant for MONTH and has a value of 6. This option behaves differently than the other parameters. If the UNITS parameter is MON, the INTERVAL parameter is specified in months, and TINTOINT parameter is specified in seconds into the current month. The INTERVAL is synchronized to the beginning of the year, January 1st. If the current month of the year modulo the INTERVAL equals 1 and the seconds into the current month matches the TINTOINT, then the condition is true. If TINTOINT is negative, then the TRUE condition will be in the previous month. Examples, IfTime(0,1,Mon) 'true at midnight on the first day of every month : IfTime(1209600,1,Mon) 'true at midnight on the fifteenth day of every month : IfTime(-43200,1,Mon) 'true at noon on the last day of every month : IfTime(0,3,Mon) 'true at midnight on the first day of January, April, July, and October
  164. Modified the compiler to flag an error if the iterative variable in For/Next is not a variable.
  165. Fixed PWM() when using multiple PWM() instructions on same port. Previously doing this caused caused the duty cycle of the non-first PWM's to be zero due to an uninitialized pointer. The work around for previous OS version is to use one PWM per port and make the duty cycle a variable.
  166. ETsz() changed to force units and fieldnames.
  167. Array manipulation fixed when the dimensionality is 2 or 3.
  168. Added default units of mm and MJ/m^2 for ETsz().
  169. Fixed compile error for PC compiler due to an out of place declaration.
  170. Fixed setting of an array element contained in an array that is only partially aliased. The problem only occurs when the array is split into more than one part (through discontinuities in the alias process) and you are accessing a part that is above the alias. When I found in the table the array name (the first part, below the alias) but found that the element requested was not in that first part, I aborted looking beyond and flagged the error. The fix is to instead keep looking through the table.
  171. Fixed NewFile() to work with a Boolean result. If the type is Boolean, rather than incrementing if the file is not there, it is set to -1.
  172. Modified subroutines to pass back strings and make sure the last character is 0.
  173. Fixed maximum error check to make sure the error message is not too large. The bug would cause an out of bounds memory crash on the PC compiler for errors in a long line.
  174. Changed SolarPosition() to use UTC_OFFSET setting if it is not -1 (inactive).
  175. Fixed sprintf(dest,"%b",val) when val is negative.
  176. Modified Files Manager setting 3209 so sniffing will start up when card is inserted. Also when the card is removed or the drive formatted, it will close the file it was writing to.
  177. Fixed FieldNames() so it will flag an error if the parameter is a variable.
  178. Fixed alias strings when the variable they are aliasing has a string length of 1 (single character aliases).
  179. Fixed Public declaration of d (or D) followed by 3 or more spaces or tabs. This was causing compile issues.
  180. Added OS version to the watchdog file.
  181. Modified the compiler so units name of " (empty string) is flagged as illegal.
  182. Changed FieldNames() so that it accepts a constant string.
  183. Added an optional parameter to Sample() which will define the field in the most recent record as READ_WRITE if the parameter is 1.
  184. Modified the precompiler so it no longer allows subscan to call a subroutine with measurements.
  185. Enhanced it so that we now initialize exe_time_us so PC CRBasic compiler does not crash.
  186. Changed CDM instructions to allow certain parameters to be searched from module specific predefined constants rather than the global datalogger defined constants.
  187. Added Encryption AES128 support in CRBasic.
  188. Enhanced the OS so we now allow ! (at pointer) operation on user function calls.
  189. Added new instruction TimeIsBetween(Begin,End,Interval,Units). This instruction will return true if the datalogger's time is between Begin and End, otherwise it will return false. If used within a Scan() the scan time will be used, otherwise it will use real time; this is the same behavior as the RealTime() instruction. A common application of this instruction is to turn a communications peripheral on between 9:00 and 17:00 and off during all other times, TimeIsBetween(9,17,24,Hr).
  190. Added a specific error message on SetSettings() and SetStatus() if they cannot find the wanted field.
  191. Fixed array assignment so that this case C(1)() = A() is now possible.
  192. Added ! and @ operators that provides pointers to variables.
  193. Fixed formatting CRD: for very large (>2G) cards.
  194. Fixed the PC CRBasic precompiler. A variable declared inside of code does not compile in the Microsoft environment.
  195. Fixed to now allow the table name in GetRecord() to be a variable.
  196. Modified it so that if the table name is a constant, then allow Tablename.Fieldname and GetRecord(tablename) to work with the constant declaration, as in : Public MyInfo As String, MyRecord As String * 50 : Const T = "Table" : Public Name As String : DataTable(T,TRUE,-1) : Sample (1,Name,String) : Sample (1,"Hi",String) : EndTable : BeginProg : Name = "Hello" : Scan(1,sec,0,0) : CallTable(T) : MyInfo = T.Name : GetRecord(MyRecord,T,1) : NextScan : EndProg
  197. SDI-12 recorder changed so that if 0 is returned for the number of values in response to the M or C command, NAN is put into the first element of the array and the instruction returns.
  198. Modified the OS so that the CPU: is now FAT32 formatted. This eliminates the error of insufficient space for file names. (significant)
  199. Thermistor parameter changed: removed reverse diff option.
  200. Fixed compiler a crash for this and other possible illegal syntaxes: Public = name.
  201. The default string size is now 23. (significant)
  202. Changed the string declaration minimum size from 23 to 3.
  203. Changed the error message when declaring units to a variable that are not declared Public nor referenced as a source in a Data Table.
  204. Fixed FP2 to string conversion that were causing errors in conversions.
  205. Modified Table.Field(x) to now ignore x if only 1 single dimensioned field name "Field".
  206. Fixed calling a table from a scan with an interval greater than 1 hour when the table does not use DataInterval().
  207. Fixed For .. Next name(i) to not flag an error ("Too many parameters").
  208. Fixed Windvector() standard deviation calculation when disabled at output time.
  209. Added new IPAddress() CRBasic instruction.
  210. Added a reset optional parameter to AvgRun().
  211. Added TotalRun() instruction. The TotalRun() instruction The TotalRun instruction is used to output a running total of a measurement.
  212. Modified the compilers so they will work with optional parameters in a user function. Commas are not required when calling the function without the optional parameters.
  213. ArrayLength(Field) changed to allow the Field parameter to be TableName.FieldName.
  214. Added command line switch -s for signature to the PC CRBasic precompiler.
  215. Modified SetStatus() and SetSettings() so they will execute at compile time if the value is not variable and if the setting is changed and requires a reset. The reset will not happen until the compile process is complete, which avoids possible multiple resets if multiple settings are changed.
  216. Fixed frequency bounds checking for CDM-VW300.
  217. Improved VibratingWire swept frequency when using the auto-step size.
  218. Modified the compiler so it no longer allows PulseCount() within a SubScan.
  219. Fixed the Case expression so that conversion of the expression or the test expression from string to numeric, if necessary, is performed before the equality test is performed.
  220. Changed Select() to not require Case before the test expression. Select expression is legal and is the same as Select Case Expression.
  221. Fixed the "Case NAN" statement to work correctly when the test expression is a NAN.
  222. Fixed the precompiler when there is a CASE IS statement and the required comparison operator is missing. It now flags an error.
  223. Modified the OS so we can store via the Sample() instruction in a data table.
  224. Fixed passing subroutine parameters in and out and when doing a conversion from float to string is necessary. The string was formatted as "%7g" instead of "%.7g".
  225. Enhanced the OS so that when passing a parameter of type string, we copy the size allocated for the destination variable instead of the size of the incoming string. This will allow null characters to be passed in.
  226. Fixed format printing FormatFloat() and sprintf() when using (and G) where n is the precision (the number of significant digits) needed.
  227. Allow the syntax ArrayName(Index)() to be used with the Disable Processing parameter to rep through an array starting with Index.
  228. Modified SolarPosition() by removing limiting the zenith angle to 9 degrees.
  229. Changed SolarPosition() Azimuth calculation to match SolPos.c rather than the Fortran and CRBASIC adaptations received from RSR2. This was done to help make SolarPosition() more accurate.
  230. Added the EncryptExempt() instruction. The EncryptExempt instruction is used to define one or more PakBus addresses to which the datalogger will not send encrypted PakBus messages, even though PakBus encryption is enabled.
  231. Fixed XMLParse() so that if the result code is an error or it is at the end of the file, then close the file and release any memory used by the large string. Also, eliminated the need to "Initialize" and added "Finished" in the element name space to specify done with parsing.
  232. Fixed XMLParse() where, in some cases, it did not parse correctly when white space followed an = character.
  233. Added two optional parameters to ConstTable so that it now has the optional syntax of ConstTable(TableName,Hidden). TableName is specified as a unquoted literal. The Hidden parameter specifies if the table should be hidden always when security is not used or only shown when security level 1 is entered, i.e. the same behavior TableHide() creates for DataTable. Specifying TableName, causes the datalogger to map the constants in the ConstTable to a one record datatable (like Public, Status, and DataTableInfo). The table will automatically include an "ApplyAndRestart" field that when set true (non-zero), will cause the current values of datatable fields to map back into the constants in the ConstTable and then restart/recompile the program. This process updates/changes the text of the CRBasic program residing in memory. This new feature allows the ConstTable to be easily updated from software just like the Public table can be.
  234. Added the ability to change constants in ConstTable(TableName)/EndConstTable under program control using the syntax of SetSetting("TableName.ConstantName",Value), including the auto-created ApplyAndRestart field. This only applies when the ConstTable has been assigned a table name.
  235. Added a new program structure called ApplyAndRestartSequence/EndApplyAndRestartSequence. This instructions inside this sequence are executed when the ApplyAndRestart field of the ConstTable(TableName) is remotely set true, i.e. set from outside the program - most likely from KD or software, but before the values are mapped back and the program recompiles. The intention is that a user can validate the values of the ConstTable before they are applied. Example usage is : ConstTable(Settings) : Const A = 1 : Const B = "Hello" : EndConstTable : ApplyAndRestartSequence : 'if trying to apply an out of bounds value for A, set it back to the current value : If Settings.A < 1 OR Settings.A > 10 Then SetSetting("Settings.A",A) : 'if trying to apply an empty value, set to "ERROR" : If Settings.B = "" Then SetSetting("Settings.B","ERROR") : 'REQUIRED AFTER VALIDATION IS COMPLETED : SetSetting("Settings.ApplyAndRestart",TRUE) : EndApplyAndRestartSequence
  236. Fixed Function references with op eq (+=, -=, &=, etc.) when operating on a function return variable.
  237. Added a flag to account for a compile error when doing FunctionName +=, &=, etc., operations.
  238. Modified the Move() instruction's source parameter expression so it can be more than a simple expression and allow an auto indexed variable, as in SrcVar1() * 2 + SrcVar2().
  239. Added %I in snprintf() to allow printing IPV4 addresses from a LONG input.
  240. Fixed ABS(X) which was broken in OS26 when the expression X is of type float and ABS() is inside an expression with arguments with a type of LONG preceding ABS(), as in 100 * ABS(X).
  241. Quadrature() changed to allow multiple data types in result.
  242. Fixed AVW200() to allow .01 as a valid threshold. This problem was caused by a double precision comparison of a float value. The MIN_THRESH_HOLD was defined as .01. The compiler used doubles to represent this value. The user input was .01 as a float which is not exact. The fix was to force the defined threshold to be a float.
  243. Added options to InStr() to search from end of string.
  244. Fixed a memory failure issue with Windvector().
  245. Modified OS to allow value in SetSetting("ApplyAndRestart",value) to be true if non-zero.
  246. Fixed pointer operations and added a . qualifier to the ! operation to ensure pointers to floats do not truncate the fractional part when used in an expression where the following operand is long.
  247. Changed GoesSetup() to that the minimum interval can be set to 5 minutes rather than 10.
  248. Changed SDI12Sensor() so that if the response time specified is 0, then 1 second is used in the response. In reality the logger is not ready to receive data instantaneous.
  249. Modified the OS so when resetting the settings coming from OS download. For the control port /comports, set the flag that says the baud rate was set via the settings instead of from serial open.
  250. Changed warning message from "Default Settings were removed" to "Default Settings might have been removed" since when coming from downloading an OS via LoggerNet or FileControl, if the settings are different, the default settings are restored but then all the settings that were the same in the old OS are then restored, meaning that only new settings are set to default.
  251. Removed OS version from check to using data on a card.
  252. Fixed loading a .gz zipped OS file.
  253. Added a 40 second timeout loading OS via file tab, after which it will commit the OS if not Set maximum number of tables that have Tablefile() to 30. (significant)
  254. Modified the OS for streaming data so that the optional parameter 'interval' cannot be non-zero when the table specified is Public, Status, ConstTable, or DataTableInfo. Also, when streaming Public, Status, Constant, or Datatableinfo, increment the record number so there is a record to send.
  255. Fixed the compiler to flag an error if more than 1 DataEvent is declared inside a Data Table.
  256. Fixed compile error for reps=0 in final storage instructions.
  257. CPUBytesFree, USRBytesFree, and CardMemFree moved out of the Status table but can still be accessed via CRBasic, or PakBus, or the K/D under Settings.
  258. Allow CPI fields to be cleared.
  259. Moved the Data Table information from Status to DataTableInfo. (significant)
  260. Changed Status.CommsMemFree to a string variable. (significant)
  261. Enhanced expressions so that an entire array can be assigned to an expression.
  262. Fixed getting tablename.fieldname(N) where N > 1 and the field's beginning index is > 1.
  263. Allow > 30 data tables. (significant)
  264. Removed several items from the Status Table that are settings. All settings can be set with SetSettings() and with the keyboard display. SetStatus() is identical to SetSettings(). Access to all settings is through the syntax of or through
  265. Enhanced the OS so it now reads port status and SW12 when getting the Status table.
  266. Fixed SDM-SIO1 ModbusMaster() problem with back to back requests if the timeout happened a little before data comes in from a preceding request.
  267. Fixed ModBusMaster() to properly respond with -11, -16, and -20 for internal errors.
  268. Enhanced ModbusSlave() so that ReadOnly instruction also applies to Modbus registers and coils; previously it only applied to PakBus communication. If a master/client attempts to write to a register or coil that has been marked as ReadOnly, the datalogger (slave/host) will set the most significant bit in the function code when responding, indicating an error, and the actual error code to a value of 0x01. It is very common for the datalogger acting as a Modbus slave/host to only need to serve up data values and not allow them to be changed. Example, Public Reg(5), Coil(2) as Boolean : ReadOnly Reg, Coil : BeginProg : ModbusSlave(502,0,1,Reg,Coil,2) : EndProg
  269. Fixed ModBusMaster() over TCP when more than 1 response is in a single IP packet.
  270. Enhanced ModBusMaster() instruction to optionally not wait until the response is returned.
  271. Enhanced the Modbus option so that at run time the Modbus option can switch back and forth from ASCII to not ASCII.
  272. Fixed ModBus ASCII Slave over a SDC comport and also if there are more characters input beyond the line feed terminator of the packet.
  273. Fixed ModBus ASCII over a serial comport if there are delays in the packet returned.
  274. Changed ModBus Master over TCP so that an incrementing transaction number is sent and multiple Modbus Masters can run concurrently in difference sequences.
  275. Added ModBus Slave to be a TCP Client using the connection comport handle returned by TCPOpen().
  276. Added ModBus start register offset to be greater than 10000.
  277. Fixed ModBusSlave() when multiple instructions over TCP/IP are used in order to map different Modbus registers of different types to datalogger variables. Before, this worked only if all of the instructions specified a non-zero offset.
  278. Added a 16 bit unsigned integer data type to ModBusMaster() and ModbusSlave().
  279. Fixed Modem Dial to delay long enough for PakBusMain to start dialing before it monitors when dialing is complete to flag whether or not it was successful.