Re: Create object reference by name

This is a discussion on Re: Create object reference by name within the labview forums in Programming Languages category; Thanks, this helped me in the right direction I guess, but the problem is more like the opposite of what you gave me : Your vi gives me all the names of all the controls on the front pannel, but what I need is something like "get me control which is called 'Temperature 1' and enter '20' in it". I'm sure I could do this using your solution, but then I will have to run over all the controls and check if they have the name I'm looking for.  So I guess there must be an easier way ???  I ...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-08-2008, 03:10 PM
Jan145
Guest
 
Default Re: Create object reference by name

Thanks, this helped me in the right direction I guess, but the problem is more like the opposite of what you gave me :
Your vi gives me all the names of all the controls on the front pannel, but what I need is something like "get me control which is called 'Temperature 1' and enter '20' in it".
I'm sure I could do this using your solution, but then I will have to run over all the controls and check if they have the name I'm looking for.  So I guess there must be an easier way ???  I tried by somehow looking in the array of objects, but can't get it right.
Jan
Reply With Quote
  #2  
Old 01-08-2008, 03:40 PM
JoeLabView
Guest
 
Default Re: Create object reference by name

You need both the array of control references and the array of names as shown in the example.  You can do a search to find the index of the name (thus of the control) which corresponds to the control reference of interest.  With the control reference, you can wire that to a property node and select the function "value" and write the desired value to it. 
You're close..   
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:39 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.