Signature (Program Code Signature)

The Signature function returns the signature for program code in a datalogger program.

Syntax

Signature

'code for which to calculate signature

variable = Signature

Remarks

The Signature function returns a number between 0 and 65535 that is a Campbell Scientific pseudo random signature of the program code and then reinitializes the signature seed to &HAAAA (43690). Signature must occur within BeginProg/EndProg statements, or within a subroutine. The portion of code for which to return a signature is bracketed by two signature declarations. This function is not used until it is called in the program; therefore, the first use will always return 43690. More than one Signature function can be used in the program. This function allows a way to detect whether or not portions of the program code have changed. Blank lines and comments are not included in the Signature.