01-07-2017 06:37 PM
Could anybody give me a working example showing how to use DAQmxGetChanAttribute to get
value of DAQmx_AO_Resolution attribute?
Thanks.
Solved! Go to Solution.
01-09-2017 05:47 PM
Hi Vassili,
You can just use the DAQmxGetAOResolution to get the analog output resolution. It has the following three inputs:
TaskHandle: A reference to the analog output task
channel[]: An string indicating the physical channel to use
*data: A pointer to a variable where the resolution will be written to
Check out the ANSI C Analog Output example files located in the default folder (C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage).
Try adding this function to one of the example programs. If you aren't able to get it working, you can come back here and post your code, and members of the forum can take a look. For the future, unless such an example already exists, asking for an example using specific code won't get you too far. Posting your attempted code and asking for assistance will result in much better help from the community.
Regards,
01-10-2017 02:54 AM
Solved, thanks