ve not familar with subpanel and call by reference node - labview
This is a discussion on ve not familar with subpanel and call by reference node - labview ; Hi All I have problem with subpanel and call by reference nodes.
I am using Labcview 7.1 and it does not cork correctly.
I have worked with call by reference node before but not subpanel this time.
 
What I ...
-
ve not familar with subpanel and call by reference node
Hi All I have problem with subpanel and call by reference nodes.
I am using Labcview 7.1 and it does not cork correctly.
I have worked with call by reference node before but not subpanel this time.
What I would like my program to run, insert vi into the subpanel, get data from vi and change vi.
But it does not seem to work. The vis are inserted into subpanels successfully but cannot close them inside.
Pls advise
Here's attached.
ClementMessage Edited by astroboy on 05-14-2008 09:14 PM
test_subpanel4.zip:
http://forums.ni.com/attachments/ni/..._subpanel4.zip
-
Re: ve not familar with subpanel and call by reference node
Hi Clement,There are a couple of really good examples to look at that demonstrate how to use subpanels. These can be found by searching for "subpanel" in the Example Finder (Help » Find Examples).Also, the Help file is a really good resource on how to load a front panel in a subpanel control. Note that the Help file says:"You can create and edit subpanel controls only in the LabVIEW Full and Professional
Development Systems. If a VI contains a subpanel control, you can run the VI in all LabVIEW
packages, but you cannot configure the control in the Base Package."If you have the Base Package, you may have some limited functionality in what you can do with subpanels. I would suggest using some of the examples as templates and modifying them to do what you want.Eric CApplications EngineerNational Instruments
-
Re: ve not familar with subpanel and call by reference node
Hi Eric, I have seen the examples thanks, but there's no example that has subpanel and call by reference node together, Those examples you mention are without call by reference node. Therefore it's difficult for me to grasp the nature of the problems.
Clement
-
Re: ve not familar with subpanel and call by reference node
Hi Clement, Why are you needing to use the call by reference node and the subpanel in the same program? Is there some functionality that you don't have using a subpanel?Eric CApplications EngineerNational Instruments
-
Re: ve not familar with subpanel and call by reference node
Hi Eric, Thanks
Actually I had a big program that would be complex for me to explain. So I duplicated a portion of the that would be easier for me to find out whether it is working before continuing it.
Here in the big program, there's a login function on the tab control with invisible tabs that allows one to login with the correct password, If it is valid, the other page will show up with a enumerator control and subpanel. In the enumerator, the list shows select limit, edit limit and add limit. They are three different functons that would open in the subpanel with passing agruments and returns. Each function would open with different settings based on the agruments.Of course each function must share the common strict type definitions. That is, each has the same number of inputs and outputs in the same arrangment.
Here's the pic that may help you understand
<img src="http://clement.yap.googlepages.com/subpanel.JPG">
That's why. Please advise
ClementMessage Edited by astroboy on 05-19-2008 08:12 PM
-
Re: ve not familar with subpanel and call by reference node
Hi Clement,
I'm sorry but I'm still a bit unclear on how you are wanting to use the call by reference node. It sounds like when the user selects one of the three functions you want to use the call by reference node to bring up the selected function reference and then make some modifications to it. Is that correct? Sorry, if you can just describe a bit more what your after it will give me more direction. Thanks and have a great day!
-
Re: ve not familar with subpanel and call by reference node
Hi Stephen, Never mind about my previous reply.
Later I may come again for my previous reply dated on 05-19-2008 08:10 PM.
Now I would like to talk about my first post.
Why is that, after each sub-vi, ie one of the cat breeds is running. the close buttion cannot be clicked to stop running.unlike it can be stopped when run standalone.
Pls advise. Here's the attached which is sam,e but bit modified.
Clement
test_subpanel4i.zip:
http://forums.ni.com/attachments/ni/...subpanel4i.zip
-
Re: ve not familar with subpanel and call by reference node
Hi Clement,
After going through this code using the highlight execution to follow the data flow I realized that your event structure is set to lock out all front panel controls while it is executing an event. So you code is getting to the event structure, you select one of the cats and it opens that vi reference and then it is just waiting for the vi to finish. However, the catbreed vi's only have a stop button to stop the while loop and the front panel has been locked so you can't press the stop button. Fortunately, this is easy to fix. Just right click on the case structure and go down to "edit events handled by this case...". At the bottom of the dialoge box there is a small check box that says "lock front panel until the events handled by this event case complete". Un-check that box and click OK and your code should be fine. Thanks and have a great day!!
-
Re: ve not familar with subpanel and call by reference node
Hi Stephen,
No wonder. Thanks
So now I can start on my remaining project.
Clement