From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetChanAttribute function

Solved!
Go to solution

Could anybody give me a working example showing how to use DAQmxGetChanAttribute to get

value of DAQmx_AO_Resolution attribute?

Thanks.

0 Kudos
Message 1 of 3
(2,980 Views)

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,

 

Regards,

Michael Whitten
Senior RF Applications Engineer
Message 2 of 3
(2,915 Views)
Solution
Accepted by topic author Vassili2011

Solved, thanks

0 Kudos
Message 3 of 3
(2,906 Views)