Dataflow examples
Single asynchronous value signal and single domain signal
The following example demonstrates the sequence of packet buffers needed to initialize packet streaming and transmit two samples of an asynchronous value signal.
-
Data descriptor changed event packet for value signal
Header size
0x0C
Packet buffer type code
0x00 (event)
Packet streaming protocol version
0x00
0x00
Signal numeric ID
0x00000001
Payload size
0x0000026B
Payload
{ "__type": "EventPacket", "id": "DATA_DESCRIPTOR_CHANGED", "params": { "__type": "Dict", "values": [ { "key": "DataDescriptor", "value": { "__type": "DataDescriptor", "name": "Value", "sampleType": 2, "dimensions": [], "rule": { "__type": "DataRule", "ruleType": 3, "params": { "__type": "Dict", "values": [] } }, "origin": "", "metadata": { "__type": "Dict", "values": [] }, "structFields": [] } }, { "key": "DomainDataDescriptor", "value": { "__type": "DataDescriptor", "name": "Domain", "sampleType": 9, "dimensions": [], "rule": { "__type": "DataRule", "ruleType": 3, "params": { "__type": "Dict", "values": [] } }, "origin": "", "metadata": { "__type": "Dict", "values": [] }, "structFields": [] } } ] } }
-
Data descriptor changed event packet for domain signal
Header size
0x0C
Packet buffer type code
0x00 (event)
Packet streaming protocol version
0x00
0x00
Signal numeric ID
0x00000002
Payload size
0x0000018F
Payload
{ "__type": "EventPacket", "id": "DATA_DESCRIPTOR_CHANGED", "params": { "__type": "Dict", "values": [ { "key": "DataDescriptor", "value": { "__type": "DataDescriptor", "name": "Domain", "sampleType": 9, "dimensions": [], "rule": { "__type": "DataRule", "ruleType": 3, "params": { "__type": "Dict", "values": [] } }, "origin": "", "metadata": { "__type": "Dict", "values": [] }, "structFields": [] } }, { "key": "DomainDataDescriptor", "value": null } ] } }
-
Value signal data packet (with release flag)
Header size
0x2C
Packet buffer type code
0x01 (data)
Packet streaming protocol version
0x00
0x01 (Release packet)
Signal numeric ID
0x00000001
Payload size
0x00000010
Extra header
Packet ID
0x0000000000000010
Domain packet ID
0x0000000000000012
Sample count
0x0000000000000002
Packet offset
0x0000000000000000
Payload
1.445e14, -3.78e-4
-
Domain signal data packet explicit without offset (with release flag)
Header size
0x2C
Packet buffer type code
0x01 (data)
Packet streaming protocol version
0x00
0x01 (Release packet)
Signal numeric ID
0x00000002
Payload size
0x00000010
Extra header
Packet ID
0x0000000000000012
Domain packet ID
0x0000000000000000
Sample count
0x0000000000000002
Packet offset
0x0000000000000000
Payload
0x0000000000000001,0x0000000000000002