Skip to Navigation

5.2.12 - 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 clock.

  • 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 U6 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 would be desirable for low-latency data retrieval. Note that this parameter is not necessarily the same as the number of channels per scan. Even if only 1 channel is being scanned, SamplesPerPacket will usually be set to 25, so there are usually multiple scans per packet.
  • SettlingFactor: Specifies the settling time for all stream channels in 10us increments. If SettlingFactor is set to zero the U6 will attempt to determine the minimum required settling time based on gain and resolution settings.
  • ScanConfig: Has bits to specify the stream clock.
  • ScanInterval: (1-65535) This value divided by the clock frequency defined in the ScanConfig parameter, gives the interval (in seconds) between scans.
  • ChannelNumber: This is the positive channel number. 0-143 for analog input channels or 193-224 for digital/timer/counter channels.
  • ChannelOptions: If bit 7 is set, a differential reading is done rather than single-ended. Bits 4-5 specify the gain:
tags:

Comments

No comments yet. Speak up. We're listening.