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

programatically controlling vi properties

hey can anyone tell me how to programatically control the properties of a vi ?
0 项奖励
1 条消息(共 14 条)
3,954 次查看

Hi dhiraj034...,

here is an example with some properties.

Hope this helps.

Mike

0 项奖励
2 条消息(共 14 条)
3,952 次查看
Hi dhirah,

general answer: using vi server capabilities眨眼表情

Do you have any more information?  Any more detailed questions? What property are you interested in?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
3 条消息(共 14 条)
3,951 次查看
hey
i wanted to modify the properties of the combo box icon on the front panel programatically.
0 项奖励
4 条消息(共 14 条)
3,912 次查看

If you see the example VI Server - Changing Another VI's Properties.vi in the4 Examples Finder in LabVIEW, you ll get an idea on the whole about changing the properties of 'anything' in LabVIEW.

To change the properties of a Combo control, you can use the position, bounds & size properties of it. 高兴表情

I think these are the properties you are looking for.

- Partha ( CLD until Oct 2027 🙂 )
0 项奖励
5 条消息(共 14 条)
3,906 次查看
dear frnd
i am trying to control the option which are available in the properties.just like the drop down menu,but the options should be taken frm a database field .did u get what i am searching for?
Abhimaniu
0 项奖励
6 条消息(共 14 条)
3,834 次查看
Right click on the combo box and select 'Create>Property' and then browse through all of the properties that are available. Some are read only but the ones that aren't could be set by reading a file/database and properly parsing the contents. The mention of the 'drop down menu' implies to me that you just want to populate the comb box. That requires passing an array to either the Strings[ ] or Strings and Values[ ] property. If that's not what you want, provide some details.
7 条消息(共 14 条)
3,829 次查看
yes thanks
0 项奖励
8 条消息(共 14 条)
3,765 次查看

HI,

 

I need to make the property 'display vi front panel' on/off according to a Boolean input. 

 

Should I still use the VI-server technique (it seems complicated...) or, may be there's a shorter way?

 

Thanks

Rafi

0 项奖励
9 条消息(共 14 条)
3,513 次查看

Hi Rafi2003,

you can use the property "Front Panel -> Open". There is also a method to hide the front panel.

 

Mike

Message Edited by MikeS81 on 03-31-2010 06:59 AM
10 条消息(共 14 条)
3,478 次查看