1 control, Control – Digilent WaveForms User Manual
Page 59
WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 59 of 85
9.1 Control
FDwfDigitalInReset(HDWF hdwf)
Parameters:
-
hdwf – Interface handle.
The function above resets and configures (by default, having auto configure enabled) all DigitalIn instrument
parameters to default values.
FDwfDigitalInConfigure(HDWF hdwf, BOOL fReconfigure, BOOL fStart)
Parameters:
-
hdwf – Interface handle.
-
fReconfigure – Configure the device.
-
fStart – Start the acquisition.
The function above is used to configure the instrument and start or stop the acquisition. To reset the Auto trigger
timeout, set fReconfigure to TRUE.
FDwfDigitalInStatus(HDWF hdwf, BOOL fReadData, DwfState *psts)
Parameters:
-
hdwf – interface handle.
-
fReadData – TRUE if data should be read.
-
psts – Variable to receive the acquisition state.
The function above is used to check the state of the instrument. To read the data from the device, set fReadData
to TRUE. For single acquisition mode, the data will be read only when the acquisition is finished.
FDwfDigitalInStatusSamplesLeft(HDWF hdwf,
int
*pcSamplesLeft)
Parameters:
-
hdwf – Interface handle.
-
pcSamplesLeft – Variable to receive the remaining samples to acquire.
The function above is used to retrieve the number of samples left in the acquisition.
FDwfDigitalInStatusSamplesValid(HDWF hdwf,
int
*pcSamplesValid)
Parameters:
- hdwf – Interface handle.
- pcSamplesValid – Variable to receive the number of valid samples.
The function above is used to retrieve the number of valid/acquired data samples.