Fernandotid Posted September 5, 2005 Report Share Posted September 5, 2005 Can someone help me? I've been stuck for days with the same problem and I don't know what to do. In fact, my problem is that I have just started programming with Labview and sometimes it's difficult for me to find solution to my problems, so any help would be very appreciated. PROBLEM: I have a VI. When I run it, in the first step of the program, I want to open the front panel of another VI to configure some things. When I close it, I want to continue with the execution of the main VI and later I will run the other VI. I tried to make a property node to open the front panel (ex: Open Front panel try.vi) and it doen'st work beacause at the same time in another part of the main VI I have the try.vi included as a function to run it (beacuse I need some values given by the function to finalize my main program). Can anyone help me? Thank you very much. :headbang: Quote Link to comment
Michael Aivaliotis Posted September 5, 2005 Report Share Posted September 5, 2005 As I understand it, you want to call the same VI twice. In one case you want the front panel to open and in the other case you do NOT want the front panel to open. Well, there are two ways to do this. One way is to setup the subvi node to behave differently for each call on the diagram. You right-click on the VI and select "sub-vi node setup". This will allow you to define how the VI will behave for that call and only that call of the VI. See images below: The other way is to place a property node inside the sub-vi that controls the behavior. Then you can feed in a control wire that activates the proper behavior. The default behavior would be not to show the panel unless the boolean is set TRUE. Quote Link to comment
Fernandotid Posted September 6, 2005 Author Report Share Posted September 6, 2005 As I understand it, you want to call the same VI twice. In one case you want the front panel to open and in the other case you do NOT want the front panel to open. Well, there are two ways to do this.One way is to setup the subvi node to behave differently for each call on the diagram. You right-click on the VI and select "sub-vi node setup". This will allow you to define how the VI will behave for that call and only that call of the VI. See images below: The other way is to place a property node inside the sub-vi that controls the behavior. Then you can feed in a control wire that activates the proper behavior. The default behavior would be not to show the panel unless the boolean is set TRUE.5997[/snapback] Thank you very much for the information. I think I've managed to resolve my problem. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.