EasyManua.ls Logo

Svantek SVAN 958A - Date and Time

Svantek SVAN 958A
306 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
182
SVAN 958A User Manual
Sample from the 3
rd
channel if CHANNEL 3 was set to ON (path: MENU / INPUT / LOGGER SETUP
/ CHANNEL 3). The sample is written on three consecutive bytes from least to most significant byte.
Sample from the 4
th
channel if CHANNEL 4 was set to ON (path: MENU / INPUT / LOGGER SETUP
/ CHANNEL 4). The sample is written on three consecutive bytes from least to most significant byte.
Zero byte if the samples are saved from one or three channels.
RPM measurement result if RPM measurement (path: MENU / INPUT / AUXILIARY SETUP / RPM /
RPM) and RPM logging (path: MENU / INPUT / AUXILIARY SETUP / RPM SETUP / LOGGER: [
]) or
(path: MENU / INPUT / LOGGER SETUP / AUXILIARY / RPM:[
]) are set to ON; two word are written.
B.18. DATE AND TIME
Following function written in C explains how the date and time are coded:
void ExtractDateTime(int date, int time, int dt[])
{
int sec,year;
sec = ((0xffff&time)<<1); /* time<<1; */
dt[0] = sec%60; /* sec */
dt[1] = (sec/60)%60; /* min */
dt[2] = sec/3600; /* hour */
dt[3] = date&0x1F; /* day */
dt[4] = (date>>5)&0x0F; /* month */
year = (date>>9) & 0x07F;
dt[5] = year+2000; /* year */
}

Table of Contents

Related product manuals