beautypg.com

Prototypes, Program references, Putting it all together – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 189: Visual basic

background image

Putting it all together

The following table shows a number of different scenarios (each assumes a total scan count of 1,000,000
output updates). These scenarios are representative of some typical waveform/pattern output states but do not
necessarily represent all of the possible states.

States (active)

Progress

(retCount)

Description

DdafWaveformActive +
DdafWaveformTriggered +
DdafTransferActive

210,000

The waveform/pattern output is active and has been triggered and is
currently outputting updates to the DAC/Digital Output ports
specified. A transfer to buffer is also active and a total of 210,000
updates have been output so far.

DdafWaveformActive +
DdafTransferActive

0

The waveform/pattern output has been armed but has not yet been
triggered. A transfer to buffer is also active but no updates have been
output so far because the trigger event has not yet occurred.

DdafTransferActive

0

A waveform/pattern output transfer has been configured and started
(daqAdcTransferSetBuffer, daqDacTransferStart)
but the acquisition has not yet been armed. The acquisition needs to
be armed using
daqDacWaveArm.

(0) 1,000,000

The waveform/pattern output has triggered and has completed. The
transfer is not active and 1,000,000 updates have been performed. So
the both the transfer and the waveform/pattern output from the device
are complete.

Prototypes

C/C++

daqDacTransferGetStat(DaqHandleT handle, DaqDacDeviceType deviceType,
DWORD chan, PDWORD active, PDWORD retCount);

Visual BASIC

VBdaqDacTransferGetStat&(ByVal handle&, ByVal deviceType&, ByVal chan&,
active&, retCount&)

Program References

None

Programmer’s Manual

908494

Daq API Command Reference 4.4-7