MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.15 ApiCmdSetIrigTime
Prototype:
AiInt16 ApiCmdSetIrigTime ( AiUInt32 ul_ModuleHandle, TY_API_IRIG_TIME *pirig_time );
Driver Command:
API_SET_IRIG_TIME (0x3D)
Purpose:
This function sets the IRIG-B time on the on-board IRIG timecode encoder.
Note: IRIG time starts with 'DAY one' (First of January) not with 'DAY zero'.
Note: The IRIG timecode encoder needs up to three seconds before changing the
time. Please make sure no operations that need the IRIG time are made during
the next three seconds after ApiCmdSetIrigTime was called.
Note: The IRIG time is only set according to day, hour, min and sec fields. The ms
fields are ignored.
Input
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
I
I
R
R
I
I
G
G
_
_
T
T
I
I
M
M
E
E
*
*
p
p
i
i
r
r
i
i
g
g
_
_
t
t
i
i
m
m
e
e
IRIG Timecode structure
typedef struct ty_api_irig_time
{
AiUInt8 day_hi;
AiUInt8 day_lo;
AiUInt8 hour;
AiUInt8 min;
AiUInt8 sec;
AiUInt8 ms_hi;
AiUInt8 ms_lo;
AiUInt8 mode;
AiUInt8 irig_src;
AiUInt8 irig_sync;
} TY_API_IRIG_TIME
A
A
i
i
U
U
I
I
n
n
t
t
8
8
d
d
a
a
y
y
_
_
h
h
i
i
Higher Byte of the IRIG day field
A
A
i
i
U
U
I
I
n
n
t
t
8
8
d
d
a
a
y
y
_
_
l
l
o
o
Lower Byte of the IRIG day field
Value of the IRIG hour field (0..23)
Value of the IRIG minute field (0..59)
Value of the IRIG second field (0..59)