MIL-STD-1553 Reference Manual
Chapter 9 – Bus Monitor Functions
9.1.38 ApiCmdScopeTriggerDef
Prototype:
ApiCmdScopeTriggerDef( AiUInt32 ulModuleHandle, TY_API_SCOPE_TRG
*px_ScopeTrg );
Driver Command:
TG_API_SCOPE_TRG_DEF (0xF8)
Purpose:
This function is used to define a trigger condition for the APX, ACX MIL-Scope.
Note: This function is only usable with AIM’s APX, ACX MIL-Scope module.
Note: Every 3
rd
valid sample is checked for the trigger condition. This means, that
spikes who are smaller than 3*20ns*sampling rate may not be triggered!
I
I
n
n
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
S
S
C
C
O
O
P
P
E
E
_
_
T
T
R
R
G
G
*
*
p
p
x
x
_
_
S
S
c
c
o
o
p
p
e
e
T
T
r
r
g
g
Pointer to the list of TY_API_SCOPE_TRG structure elements
typedef struct ty_api_scope_trg
{
AiUInt32 ul_TrgMode;
AiUInt32 ul_TrgSrc;
AiUInt32 ul_TrgValue;
AiUInt32 ul_TrgNbSamples;
AiUInt32 ul_TrgFlags;
AiUInt32 ul_TrgDelay;
AiUInt32 ul_TrgTbt;
} TY_API_SCOPE_TRG;
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
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)
The MilScope is triggered by the BIU
trigger, which has to be setup with the
function ApiCmdBMTCBIni()