5.2.10 StreamConfig
Stream mode operates on a table of channels that are scanned at the specified scan rate.
Before starting a stream, you need to call this function to configure the table and scan clo
Requires U3 hardware version 1.21.
Command:
ck.
• NumChannels: This is the number of channels you will sample per scan (1-25).
• SamplesPerPacket: Specifies how many samples will be pulled out of the U3 FIFO
buffer and returned per data read packet. For faster stream speeds, 25 samples per
packet are required for data transfer efficiency. A small number of samples per packet
Byte
0 Checksum8
10xF8
2 NumChannels + 3
30x11
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 NumChannels
7 SamplesPerPacket (1-25)
8 Reserved
9 ScanConfig
Bit 7: Reserved
Bit 6: Reserved
Bit 3: Internal stream clock frequency.
b0: 4 MHz
b1: 48 MHz
Bit 2: Divide Clock by 256
Bits 0-1: Resolution
b00: 12.8-bit effective
b01: 11.9-bit effective
b10: 11.3-bit effective
b11: 10.5-bit effective
10-11 Scan Interval (1-65535)
12 PChannel
13 NChannel
Repeat 12-13 for each channel
Response:
Byte
0 Checksum8
10xF8
20x01
30x11
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 Errorcode
70x00
99