Personal Daq User’s Manual
Appendix B,
887095
API Commands B-19
daqCloseList
DLL Function
daqCloseList(DaqHandleT handle);
C
daqCloseList(DaqHandleT handle);
Visual BASIC
VBdaqCloseList&(ByVal handle&)
Delphi
daqCloseList(handle:DaqHandleT)
Parameters
handle
Handle to the open device list to be closed
Returns
DerrNoError
- No error
See Also
daqOpenList
Program References
MULTDEV.C
Used With
PersonalDaq55/56
Description
daqCloseList
is used to close a list of PersonalDaq devices opened with the
daqOpenList
function. After the specified device list has
been closed, no subsequent communication with the devices can be performed. To re-establish communications with any closed devices,
you must open the devices with
daqOpen
or
daqOpenList
.
daqCvtRawDataFormat
DLL Function
daqCvtRawDataFormat(PVOID buf,
daqAdcCvtAction action, DWORD lastRetCount, DWORD
scanCount, DWORD chanCount);
C
daqCvtRawDataFormat(PVOID buf,
DaqAdcCvtAction action, DWORD lastRetCount, DWORD
scanCount, DWORD chanCount);
Visual BASIC
VBdaqCvtRawDataFormatSingle&(buf!(), ByVal action&, ByVal lastRetCount&, ByVal
ScanCount&, ByVal ChanCount&)
Delphi
daqCvtRawDataFormat(buf:PWORD;action:daqAdcCvtAction; lastRetCount:DWORD;
scanCount:DWORD; chanCount: DWORD);
buf
Pointer to the buffer containing the raw data
action
The type of conversion action to perform on the raw data
lastRetCount
The last retCount returned from
daqAdcTransferGetStat
scanCount
The length of the raw data buffer in scans
Parameters
chanCount
The number of channels per scan in the raw data buffer
Returns
DerrNoError
No error
See Also
daqAdcSetDataFormat
Program References
None
Used With
All devices
Description
daqCvtRawDataFormat
allows the conversion of raw data to a specified format. This function should be called after the raw data has
been acquired. See the transfer data functions (
daqAdcTransfer
…) for more details on the actual collection of raw data.
The
buf
parameter specifies the pointer to the data buffer containing the raw data. Prior to calling this function, this user-allocated buffer
should already contain the entire raw data transfer. Upon completion, this data buffer will contain the converted data (the buffer must be
able to contain all the converted data).
The
DacaRotate
can be used to reformat a circular buffer into a linear buffer.
The
scanCount
parameter specifies the length of the raw buffer in scans. Since the converted data will overwrite the raw data in the
buffer, make sure the specified buffer is large enough, physically, to contain all of the converted data.
The
chanCount
parameter specifies the number of channels in each scan.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com