I'm confused about some of the function descriptions in the WaveForms SDK Reference Manual.

I want to set the analog output to dynamically, from the documentation for the function FDwfDeviceAutoConfigureSet it says to set fAutoConfigure to 3.
However fAutoConfigure is defined as a Boolean value.
There is a similar case for FDwfAnalogOutConfigure

Is the documentation incorrect? Or am I misunderstanding how to set this value?

Thanks in advance,

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @Richard Gold,

I have moved your question to a more appropriate section of the forum where the engineer best suited to respond to your question will be able to see and respond to it.


Share this post

Link to post
Share on other sites
  • 0

Hi @Richard Gold

The type of these parameters is BOOL, typedef int BOOL; 
I don't wanted to introduce a new function to extend the features but solved by using it as integer. Sorry for the confusion.

The WaveForms application disables the auto-configuration and it is recommended for larger applications to do this way, to minimized communication with the device.
dwf.FDwfDeviceAutoConfigureSet(hdwf, c_int(0)) 
Having this set, only the dwf.FDwf*Configure and *Status functions will interact with the device.
The dwf.FDwfAnalogOutConfigure(hdwf, channel, c_int(3)) will apply the previously set options without changing the run/stop state. With 0 it will stop and with 1 it will start the channel.

You can also use dwf.FDwfDeviceAutoConfigureSet(hdwf, c_int(3)) then FDwfAnalogOut*Set functions will be applied dynamically.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now