DateTime
Overview
Records the build date and time in two const variables
Discussion
This module has no input and output pins. It has two variables, Date and Time, and. these two variables contains the current date in YYMMDD format and time in HHMMSS format respectively. .date is a 32-bit unsigned integer that when viewed in hex, shows 0xYYMMDD00. For example, October 16, 2012 will be: 0x12101600. The .time field is also a 32-bit unsigned integer. The values are packed 0xHHMMSS00 3:35:05 PM is shown as 0x03350500. The module also has third variable, version, which can be used to maintain the version of the system other than Date and Time.
Type Definition
typedef struct _ModuleDateTime
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 date; // Current date in YYMMDD format.
INT32 time; // Current time in HHMMSS format.
INT32 version; // Current version of the system.
} ModuleDateTimeClass;
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
date | int | const | 0 | random value | Unrestricted | |
time | int | const | 0 | random value | Unrestricted | |
version | int | parameter | 0 | 1 | Unrestricted |
MATLAB Usage
File Name: date_time_module.m
M=date_time_module(NAME)
Creates a to get date and time of the module when build for the Audio Weaver.
The module has two variables to indicate date and time.
Arguments:
NAME - name of the module.