From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-24-2015 07:52 AM
I have a VI that I call within another VI. Let's call them VI-a and VI-b.
Now, when I try to run VI-a alone, it works as it is supposed to. No matter how many times I run and close it.
But when it is called within VI-b, it works ok for the first time and all the controls freeze up on the second call (closing and trying to open it again).
What can be the reason?
I am calling VI-a by wiring inputs to connectors in VI-b.
Solved! Go to Solution.
12-24-2015 07:54 AM
12-24-2015 08:08 AM - edited 12-24-2015 08:13 AM
Here's the VI-b.
EDIT: It's VI-a. My bad. It's connectors are connected to inputs on an event in another VI.
12-24-2015 08:25 AM
Are these VIs part of a LabVIEW Project? If so, zip up the whole Project and attach that. Also, it would help for you to explain just what this code is supposed to do. Since you are using sub-Panels, you might take a look at another recent Forum post from Glenny about sub-Panels -- it may give you some good ideas.
Some things to avoid (in my personal "order of badness") ...
Now that I'm writing this brief note, I realize I have a specific question -- when you are in a Tab, you clearly start some sub-VI. What stops the sub-VI?
Bob Schor
12-24-2015 08:45 AM
@Bob_Schor wrote:
What stops the sub-VI?
The tab change event stops the previous VI and loads a new one.
12-24-2015 08:49 AM
@Bob_Schor wrote:
Also, it would help for you to explain just what this code is supposed to do.
This code is supposed to switch between tabs and loading new VIs on tab change event while closing the previously running ones.
12-24-2015 09:50 AM
OK, you have a Tab Control with 7 tabs, each of which contains a Sub Panel (all of whose name is "Sub Panel" -- I was trying to figure out how you could put one Sub Panel in all 7 Tabs, and didn't realize that you had 7 identically-named Controls -- very confusing).
Here are some observations:
Here are some thoughts:
Bob Schor
12-24-2015 11:07 PM - edited 12-24-2015 11:08 PM
So, I disabled this part from the VI and my issue was resolved.
Is there anything wrong with this part?
The other case which is not visible in snapshot is for stop button value change.
12-24-2015 11:30 PM
You are registering for an entire array of controls for mouse leave and enter, rather than just specific controls.
That doesn't make any sense.
12-25-2015 12:58 AM
@RavensFan wrote:
You are registering for an entire array of controls for mouse leave and enter, rather than just specific controls.
That doesn't make any sense.
Can that be the reason for freezing?
The issue persists even when I make array of specific control references.