LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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.
Clement


Message Edited by astroboy on 05-14-2008 09:14 PM
Message 1 of 9
(5,914 Views)
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 C
Applications Engineer
National Instruments
Eric C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 9
(5,874 Views)
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
0 Kudos
Message 3 of 9
(5,862 Views)
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 C
Applications Engineer
National Instruments
Eric C.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 9
(5,847 Views)

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

That's why. Please advise

Clement



Message Edited by astroboy on 05-19-2008 08:12 PM
0 Kudos
Message 5 of 9
(5,816 Views)
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! 
Stephen S.
National Instruments
1 Test is worth 1000 expert opinions
0 Kudos
Message 6 of 9
(5,791 Views)
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
0 Kudos
Message 7 of 9
(5,787 Views)

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!!

Stephen S.
National Instruments
1 Test is worth 1000 expert opinions
Message 8 of 9
(5,752 Views)

Hi Stephen,

No wonder. Thanks

So now I can start on my remaining project.

Clement

0 Kudos
Message 9 of 9
(5,749 Views)