beautypg.com

Daqadcsetdiskfile – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 83

background image

daqAdcSetDiskFile

Also See: daqAdcTransferGetStat,

daqAdcTransferSetBuffer,

daqAdcTransferStart, daqAdcTransferStop

Format

daqAdcSetDiskFile(handle, filename, openMode, preWrite)

Purpose

daqAdcSetDiskFile

sets a destination file for ADC data transfers. ADC direct-to-disk data transfers will

be directed to the specified disk file.

File writing only takes place on a

daqAdcTransferGetStat

call.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device which will perform direct-to-disk ADC
acquisition

filename LPSTR

String representing the path and name of the file where the raw
ADC acquisition data will be placed

openMode DaqAdcOpenMode

Specifies how to open the file for writing

preWrite DWORD

Specifies the amount to pre-write (in bytes) the file

Parameter Values

handle:

obtained from the daqOpen command

filename:

string of characters representing a file name—no effective range of values applies

openMode:

see table below

preWrite:

valid values range from 0 to 4,294,967,295; however, disk memory limitations may apply

Parameter Type Definitions

openMode-(DaqAdcOpenMode)

Definition

Description

DaomCreateFile

Creates a new file for incoming ADC transfer data.

DaomWriteFile

Writes incoming ADC transfer data over an existing file.

DaomAppendFile

Appends incoming ADC transfer data to an existing file.

Returns

DerrNoError

No error

Programmer’s Manual

908594

Daq API Command Reference 4.2-27