| Data Acquisition Toolbox™ | ![]() |
A samples acquired event is generated immediately after the number of samples specified by the SamplesAcquiredFcnCount property is acquired for each channel group member. This event executes the callback function specified for SamplesAcquiredFcn.
The samples acquired event is executed regardless of its waiting time in the queue.
Use SamplesAcquiredFcn if you need access each sample that is acquired. Otherwise you can use the TimerFcn property.
Samples acquired event information is not stored in the EventLog property. When the callback function is executed, the second argument is a structure containing two fields. The Type field value is set to the string 'SamplesAcquired', and the Data field values are given below.
Data Field Value | Description |
|---|---|
AbsTime | The absolute time (as a clock vector) the event occurred. |
RelSample | The acquired sample number when the event occurred. |
Usage | AI, Common to all channels |
Access | Read/write |
Data type | String |
Read-only when running | No |
The default value is an empty string.
EventLog, SamplesAcquiredFcnCount, TimerFcn
![]() | SamplesAcquired | SamplesAcquiredFcnCount | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |