beautypg.com

Digilent WaveForms User Manual

Page 52

background image

WaveForms™ SDK Reference Manual

Copyright Digilent, Inc. All rights reserved.

Other product and company names mentioned may be trademarks of their respective owners.

Page 52 of 85


FDwfAnalogIOEnableSet
(HDWF hdwf, BOOL fMasterEnable)

Parameters:
-

hdwf – Open interface handle on a device.

-

fMasterEnable – Set TRUE to enable the master switch; FALSE to disable the master switch.

The function above is used to set the master enable switch.


FDwfAnalogIOEnableGet
(HDWF hdwf, BOOL *pfMasterEnable)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfMasterEnable – Pointer to variable to return the enabled configuration.

The function above returns the current state of the master enable switch. This is not obtained from the device.



FDwfAnalogIOEnableStatus
(HDWF hdwf, BOOL *pfMasterEnable)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfMasterEnabled – Pointer to variable to return the active status.

The function above returns the master enable status (if the device supports it). This can be a switch on the board
or an overcurrent protection circuit state.


FDwfAnalogIOChannelCount
(HDWF hdwf,

int

*pnChannel)

Parameters:
-

hdwf – Open interface handle on a device.

-

pnChannel – Pointer to variable to return the number of channels.

The function above returns the number of AnalogIO channels available on the device.


FDwfAnalogIOChannelName
(
HDWF hdwf,

int

idxChannel,

char

szName[32],

char

szLabel[16])

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

szName – Pointer to character array to return the user name.

-

szLabel – Pointer to character array to return the label.

The function above returns the name (long text) and label (short text, printed on the device) for a channel.