Difference between revisions of "Component: Auto Version Identifier (Storage)"
(XML import) |
|||
Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
− | + | A simple example program that will show the build number and the time and date of compilation on an LCD for four seconds before going into your program to help keep track of the firmware version in your projects. | |
+ | |||
+ | {{Fcfile|VersionExample.fcfx|Auto Version Example}} | ||
Revision as of 13:40, 9 May 2018
Author | Matrix Ltd |
Version | 1.2 (Release) |
Category | Storage |
Contents
Auto Version Identifier component
Basic component designed to provide the program with the date and time of the build. Embedded assigns the time and date of compilation. Simulation assigns the time and date of the start of simulation.
Examples
A simple example program that will show the build number and the time and date of compilation on an LCD for four seconds before going into your program to help keep track of the firmware version in your projects.
Downloadable macro reference
GetTime
Returns the build time as a string
Parameters
- This macro has no parameters
Return value
GetDate
Returns the build date as a string
Parameters
- This macro has no parameters
Return value
GetBuildNumber
Returns the current auto incremented built number property.
Parameters
- This macro has no parameters
Return value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Build Number
This property is of type Unsigned integer and can be referenced with the variable name BuildNumber.
Current build number, automatically incremented before each compilation takes place.
Date Divider
This property is of type Line of text and can be referenced with the variable name DateDivider.
No additional information
Time Divider
This property is of type Line of text and can be referenced with the variable name TimeDivider.
No additional information
Date Format
This property is of type Fixed list of ints and can be referenced with the variable name DateFormat.
No additional information
Last Build Date
This property is of type Line of text and can be referenced with the variable name LastBuildDate.
No additional information
Last Build Time
This property is of type Line of text and can be referenced with the variable name LastBuildTime.
No additional information