ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
显示结果 
搜索替代 
您的意思是: 

how to read data from data base so as to display as combo box control option

hi
    i have stored some data in a table of database.now i want to use a combo box in front panel so as to have all data of that table as a option to select between then...i should be able to select any data so as to use as some input for some other program.......eg i have stored 5 names in a table.....now is it possilble to have a combo box with all those names as an input option to select from them....

Abhimaniu
0 项奖励
1 条消息(共 4 条)
3,520 次查看
Hi Abhimaniu,
do you mean like this?
 
 
Hope it helps.
Mike


Message Edited by MikeS81 on 05-29-2008 10:43 AM
0 项奖励
2 条消息(共 4 条)
3,509 次查看
hi MIKE
   My problem is that the data which is stored in  DATABASE is to be displayed in combo box.....that data is like instrument name or other such thing......that data in combo box should also behave as control to program......
In my case i have stored many gpib assresss of various instruments in my database table..eg 1,2,3,4,5.....Now i have written some program to read some data from instrument........for that i need to gpib address of that particular instrument ......now i want that combo box should show all the gpib address stored in database and i can  select any address among the displayed address and that value should be used in that program.
Abhimaniu
0 项奖励
3 条消息(共 4 条)
3,480 次查看

Mike showed you how to update the combo box. Do you need help in how to read a database? Do you have the database toolkit?

p.s. Using a database to store GPIB addresses might be a bit overkill. If you use a VISA Resource Name control, the addresses of all available instruments are available in the control itself. You can even assign aliases to the instruments so that you get to see something meaningfull (i.e. 'DMM' instead of GPIB0::7::INSTR).

0 项奖励
4 条消息(共 4 条)
3,472 次查看