MIL-STD-1553 Reference Manual
Chapter 9 – Bus Monitor Functions
9.1.39 ApiCmdScopeTriggerDefEx
Prototype:
AiInt16 ApiCmdScopeTriggerDefEx( AiUInt32 ulModuleHandle,
TY_API_SCOPE_TRG_EX * px_ScopeTrg );
Purpose:
This function is used to define a trigger condition for the APX, ACX, APE MIL-
Scope.
Note: This function is only usable with AIM’s APX, ACX, APE MIL-Scope module.
typedef struct ty_api_scope_trg
{
AiUInt32 ul_TrgMode;
AiUInt32 ul_TrgSrc;
AiUInt32 ul_TrgValue;
AiUInt32 ul_TrgValue2;
AiUInt32 ul_TrgNbSamples;
AiUInt32 ul_TrgNbSamples2;
AiUInt32 ul_TrgFlags;
AiUInt32 ul_TrgDelay;
AiUInt32 ul_TrgTbt;
AiUInt32 ul_TrgDiscrete;
} TY_API_SCOPE_TRG_EX;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
S
S
c
c
o
o
p
p
e
e
T
T
r
r
g
g
-
-
>
>
u
u
l
l
_
_
T
T
r
r
g
g
M
M
o
o
d
d
e
e
Trigger mode on which condition the trigger is activated
API_SCOPE_MODE_GREATER_THAN
Higher than the value given in parameter
ul_TrgValue (rising edge)
Lower than the value given in parameter
ul_TrgValue (falling edge)
API_SCOPE_MODE_GREATER_OR_LESS_THAN
Higher than the positive value given in
parameter ul_TrgValue or
lower than the negative value given in
parameter ul_TrgValue. On APE cards,
ul_TrgValue2 must be used to specify
lower boundary value.
API_SCOPE_MODE_COMMAND_SYNC
Reserved for future use only.
API_SCOPE_MODE_GREATER_THAN_SAMPLES
Higher than the value given in parameter
ul_TrgValue for a given number of
samples (parameter ul_TrgNbSamples)
(high pulse)
API_SCOPE_MODE_LESS_THAN_SAMPLES
Lower than the value given in parameter
ul_TrgValue for a given number of
samples (parameter ul_TrgNbSamples)
(low pulse)
Reserved for future use only.
Reserved for future use only.
Reserved for future use only.
Reserved for future use only.
Reserved for future use only.
Note: The modes 3, 7, 8, 9, 10 and 11 are only defined for the APE MIL-Scope
module.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
S
S
c
c
o
o
p
p
e
e
T
T
r
r
g
g
-
-
>
>
u
u
l
l
_
_
T
T
r
r
g
g
S
S
r
r
c
c
Trigger source