LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically controlling vi properties

hey can anyone tell me how to programatically control the properties of a vi ?
0 Kudos
Message 1 of 14
(3,686 Views)

Hi dhiraj034...,

here is an example with some properties.

Hope this helps.

Mike

0 Kudos
Message 2 of 14
(3,684 Views)
Hi dhirah,

general answer: using vi server capabilitiesSmiley Wink

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 Kudos
Message 3 of 14
(3,683 Views)
hey
i wanted to modify the properties of the combo box icon on the front panel programatically.
0 Kudos
Message 4 of 14
(3,644 Views)

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. Smiley Happy

I think these are the properties you are looking for.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 14
(3,638 Views)
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 Kudos
Message 6 of 14
(3,566 Views)
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.
Message 7 of 14
(3,561 Views)
yes thanks
0 Kudos
Message 8 of 14
(3,497 Views)

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 Kudos
Message 9 of 14
(3,245 Views)

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
Message 10 of 14
(3,210 Views)