CaptureAndTrigger
14
SetTriggerDataPacket
Declaration:
long SetTriggerDataPacket(short sDataPacketType,
LPCTSTR strData, BOOL bIsDataBlock)
Input(s):
sDataPacketType
sets data packet type. Valid data packet types are
presented in API Constants.
strData
specifies data payload of data packet.
bIsDataBlock
specifies strData is data block item name or not.
Return Value: Error code or zero (no error)
Remark:
Sets type and data of data packet on which to trigger.
Note:
To trigger on data packet, set trigger type to data packet by calling
the SetTrigger function with the API_TRIG_DATA_PACKETS
parameter.
See Also
API Errors
GetTriggerDataPacket
Declaration:
void GetTriggerDataPacket(short* sDataPacketType,
BSTR* strData, BOOL* bIsDataBlock)
Input(s):
sDataPacketType
specifies data packet type.
strData
specifies data of data packet.
bIsDataBlock
specifies whether
strData
is Data Block item name.
Return Value: Error code or zero (no error)
Remark:
Returns the type and data of data packet on which to trigger.
See Also
API Errors