LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a device selector control?

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(3,388 Views)

Hi,

    I think it is (in UIR editor)  in menu Create\Custom controls\NI-DAQmx IO controls\Device

0 Kudos
Message 2 of 6
(3,382 Views)

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?

0 Kudos
Message 3 of 6
(3,380 Views)
Solution
Accepted by topic author Iradrian

This KnowledgeBase entry can help you in configuring the controls.



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?
Message 4 of 6
(3,372 Views)

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);

0 Kudos
Message 5 of 6
(3,366 Views)

Thank you, worked like a charm. 🙂

0 Kudos
Message 6 of 6
(3,353 Views)