Omega OMB-DAQ-54 User Manual page 148

Usb data acquisition modules
Table of Contents

Advertisement

daqAdcSoftTrig(DaqHandleT handle);
DLL Function
daqAdcSoftTrig(DaqHandleT handle);
C
Visual BASIC
VBdaqAdcSoftTrig&(ByVal handle&)
Delphi
daqAdcSoftTrig(handle:DaqHandleT)
Handle
Parameters
Returns
DerrNoError
See Also
daqAdcSetTrig, daqAdcSetAcq
None
Program References
Used With
All devices
Description
daqAdcSoftTrig is used to send a software trigger command to the Personal Daq device. This software trigger can be used to initiate a
scan or an acquisition from a program after configuring the software trigger as the trigger source. This function may only be used if the
trigger source for the acquisition has been set to DatsSoftware with the daqAdcSetTrig function.
DLL Function
daqAdcTransferBufData(DaqHandleT handle, PVOID buf, DWORD scanCount,
daqAdcBufferXferMask bufMask, PDWORD retCount);
C
daqAdcTransferBufData(DaqHandleT handle, PVOID buf, DWORD scanCount,
DaqAdcBufferXferMask bufMask, PDWORD retCount);
VBdaqAdcTransferBufDataSingle&(ByVal handle&, buf!(), ByVal ScanCount&, ByVal
Visual BASIC
transferMask&, retCount&)
Delphi
daqAdcTransferBufData(handle: DaqHandleT; buf:pointer, scanCount:DWORD,
bufMask:DaqAdcBufferXferMask;
handle
Parameters
buf
scanCount
bufMask
retCount
DerrNoError
Returns
See Also
daqAdcTransferSetBuffer, daqAdcTransferGetStat
Program References
All devices
Used With
Description
daqAdcTransferBufData requests a transfer of scanCount scans from the driver-allocated acquisition buffer to the specified user-
supplied buffer. The bufMask parameter can be used to specify the conditions for the transfer as follows:
DabtmWait - Instructs the function to wait until the requested number of scans are available in the driver-allocated acquisition
buffer. When the requested number of scans are available, the function will return with retCount set to scanCount, the number
of scans requested. Scan data will be returned in the memory referred to by the buf parameter.
DabtmNoWait - Instructs the function to return immediately if the specified number of scans are not available when the function is
called. If the entire amount requested is not available, the function will return with no data and retCount will be set to 0. If the
requested number of scans are available in the acquisition buffer, the function will return with retCount set to scanCount, the
number of scans requested. Scan data will be returned in the memory referred to by the buf parameter.
DabtmRetAvail - Instructs the function to return immediately, regardless of the number of scans available in the driver-allocated
acquisition buffer. The retCount parameter will return the total number of scans retrieved. retCount can return anything from 0
to scanCount, the number of scans requested. Scan data will be returned in the memory referred to by the buf parameter.
The driver-allocated acquisition buffer must have been allocated prior to calling this function. This is performed via the
daqAdcTransferSetBuffer. Refer to daqAdcTransferSetBuffer for more details on specifying the driver-allocated
acquisition buffer.
Personal Daq User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqAdcSoftTrig
Handle to the device to which the ADC software trigger is to be applied
No error
daqAdcTransferBufData
Handle to the device for which the ADC buffer should be retrieved.
Pointer to an application-supplied buffer to place the buffered data.
Number of scans to retrieve from the acquisition buffer.
A mask defining operation depending on the current state of the acquisition buffer
A pointer to the total number of scans returned, if any.
No error
Appendix B,
887095
retCount:DWORD);
API Commands
B-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents