11-08-2012 07:50 AM
Hello all,
Some months ago I saw a simple control that allowed me to select device/channel, but now I just cannot find it (either in Google or in CVI).
Right now I am using DAQmxGetSystemInfoAttribute() and DAQmxGetDeviceAttribute() functions to query the available channels.
Thanks for the help in advance!
Yours,
Adrian
Solved! Go to Solution.
11-08-2012 09:15 AM
Hi,
I think it is (in UIR editor) in menu Create\Custom controls\NI-DAQmx IO controls\Device
11-08-2012 09:23 AM
Thank you for the reply!
I already found this method, but, that option places a normal text input on the UI, and that's all. Nothing happens when I click it while running my application. Is there any other thing I have to do with it?
11-09-2012 12:08 AM
This KnowledgeBase entry can help you in configuring the controls.
11-09-2012 01:50 AM
In UIR editor:
Menu "Code\Set target file" then select file where is your main(..) function with LoadPanel calls.
Right click on custom control and select "Generate Custom Code"
this will add line of code to initialize custom control. For Example Task selec custom control will add:NIDAQmx_NewTaskCtrl (pPanel, PANEL_TASKSELECT, 0);
11-09-2012 03:57 PM
Thank you, worked like a charm. 🙂