This tab lets you edit advanced clocking. Preparing a single USB packet takes a significant amount of time; however, reading or writing the packet is relatively fast. If you acquire data by a single value (that is, specify On Demand), then each value is sent as a single USB packet and the sample rate is significantly slower.

Additional Information: Refer to the National Instruments NI-DAQmx C documentation.



Continuous: You provide your own clock rate for data acquisition and number of samples to read. In this case you have two output connectors: the actual size and the vector of values. You need to examine the size, if it is 0, the data is not there. When the data arrived, the size will be the size of the vector. Every time, Embed acquires the specified number of samples, the data vector is assigned to the second output connector.

Finite: Embed performs a single read task. When reading is finished, the vector of data is assigned to the second connector and you can examine it in Embed.

On Demand: Embed reads one value on each simulation step. The clock rate is set under System > System Properties > Range > Run in Real Time. The On Demand mode serves well for the most tasks; however, if the sampling rate is not enough, you may need to use the other modes, which only work with devices that support buffered tasks.

Rate: Indicates the clock rate.

Samples to Read: Indicates the number of samples to read.