TTriggerEx¶
捕获参数结构体
结构体说明:
typedef struct TriggerEx
{
int16_t latchType;
int16_t latchIndex;
int16_t probeType;
int16_t probeIndex;
int16_t sense;
int32_t offset;
uint32_t loop;
int16_t windowOnly;
int32_t firstPosition;
int32_t lastPosition;
}TTriggerEx;
latchIndex:编码器序号。
probeType:捕获类型。
probeIndex:捕获类型对应的DI序号。
sense:捕获沿,0:下降沿,1:上升沿。
offset:捕获位置偏置值,设置为0。只有GTM模块支持offset为非0值。
loop:捕获循环测试,0:无限循环,其他代表循环次数。
windowOnly:捕获窗使能,0:不开启捕获窗,1:开启捕获窗。
firstPosition:windowOnly=1时生效,触发捕获位置的起点。
lastPosition:windowOnly=1时生效,触发捕获位置的终点。
相关指令:
GTN_SetTriggerEx
GTN_GetTriggerEx
GTN_SetAuTrigger
GTN_GetAuTrigger
注意事项: