LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetChanAttribute applicatin

hi ,everyone !who can tell me the meaning of parameters in the function of DAQmxGetChanAttribute             (TaskHandle taskHandle, const char channel[], int32 attribute, void *value, ...);? thank you!
0 Kudos
Message 1 of 3
(3,362 Views)

DAQmxGetChanAttribute function permits you to obtain informations about a channel loaded into a task. This is particularly useful if you created the channel within MAX and want to retrieve some setting inside your program. Detailed informations can be found in the online help for the function, which also lists all possible attributes that can be retrieved via this function and characteristics of associated values (wether strings, integer, floats and so on...); I strongly reccommend that you look at it since it is very detailed and can help you a lot.

To use this function you must firstly create a task (DAQmxCreateTask) and next either create a channel within the task (DAQmxCreatexxxChannel) or associate a global channel to it (DAQmxAddGlobalChansToTask). After that you can retrieve informations about a particular channel of your choice.

I suggest you to look at the function panel for this function (click on the function and press Ctrl+P or use View >> Recall function panel menu item): on the function panel window, moving the cursor on a parameter field and pressing F1 or right-clicking on it will display appropriate help on the parameter itself.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,359 Views)

Hi,

I have the same problem. Doe anyone have a working example showing how to get value of DAQmx_AO_Resolution?

Thanks

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