From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-22-2014 03:22 AM
Hi,
I have a control box with the property nodes (values) wired to case structure, but this is a subvi.
I want to wire to the property node from main VI, the user will control the drop down value from main vi and send it to the subvi and display the information from my txt file. Is there any way to do it using control refnum?
04-22-2014 03:50 AM
KISS, Keep It Simple Silly. 🙂
Why complicate things with the control ref? Send the string.
You dont explain what you want to do, but how you hope to do it. Unless there's a specific reason for using control ref it's rarely needed.
/Y
04-22-2014 03:50 AM - edited 04-22-2014 03:50 AM
Also, if you can post the VI it's easier to understand what's the problem.
/Y
04-22-2014 03:58 AM
Yes, you can.
You have linked the property node directly to a control.
What you need to do is to right click the terminal and select Create > Reference.
Then under the Application Palette select the Property or Invoke node.
You can put this in the subvi and wire it up like a normal subvi.
04-22-2014 04:19 AM
i attached the subVI (quite messy).
i plan to have the user to input the machine model through combo box, goes through a lookup and find the respective text file and display the config details on my main VI. But the problem is I could not link the property node (values) to my main VI for the user to control
04-22-2014 05:11 AM
I've clean it up some and made some small changes. As it is now, it's a pure sub-vi to which you feed the selection made in a combo box (which should be in the main vi) and among other things you get your filelist out which you can set the strings[] property with.
/Y
04-22-2014 08:49 PM
thanks so much. I will edit more on my main VI.