makeDynATime()

Returns a dynamic field of alert times.

Synopsis

dyn_atime makeDynATime([ atime a1, atime a2, ...]);

Parameters

Parameters Meaning
a1, a2, ... Individual alert times

Return value

In the event of an error, the function returns an empty field.

Description

Returns a dynamic field of alert times.

Example

main()

{

dyn_atime dad1, dad2;

atime tat1, tat2, tat3, tat4;

dyn_atime dat1, dat2;

dyn_dyn_atime resDat;

tat1 = makeATime(getCurrentTime(), 0,"System1:_2x2Redu.state.dbConn");

tat2 = makeATime(getCurrentTime(), 1,"System1:_Conn_event_0_1_to_ctrl_1_1.Link1");

tat3 = makeATime(getCurrentTime(), 2,"System1:_2x2Redu.alarm.distConnection");

tat4 = makeATime(getCurrentTime(), 3,"System1:_2x2Redu.alarm.paraSyncAlarm");

dad1 = makeDynATime(tat1, tat2);

resDat[1] = dad1;

dad2 = makeDynATime(tat3, tat4);

resDat[2] = dad2;

dat1 = getDynATime(resDat, 1);

dat2 = getDynATime(resDat, 2);

DebugN(dat1);

DebugN(dat2);

}

Assignment

Dynamic arrays

Availability

CTRL