09-13-2018 10:49 AM
Hi all,
I have a LabVIEW project in which I have 3 different cRIO types (so 3 RT parts with corresponding chassis and FPGA). There also is a chassis connected directly to the "my computer" section. In the RT parts I'm using classes.
The problem I'm regularly facing now is simply that when I close the project, LabVIEW keeps a number of vi's still open in the background. Then I have to completely close everything including the LabVIEW welcome window to finally get those vi's out of memory.
I need to close the project because I'm using classes in all 3 RT parts and you can not seriously edit classes when they are used simultaneously in different RT parts... (this is a known issue and I already read some information + explanation why this is.)
Do any of you guys have the same problem? And what could I do to avoid this problem? (No, I don't like the idea of creating 3 different projects, one for each RT btw... But if this is the only way, I'll learn to live with it 🙂 )
Thanks for your input!
Kind regards,
Filip.
Solved! Go to Solution.
09-13-2018 02:11 PM
Can you share project explorer image showing 3 RT target and chassis. At least a block diagram image would also help.
You must have all RT vis designed to have communication between them to stop all vis when stop command is issued. All RT vis are required to execute stop states gracefully exiting condition loops otherwise you could have problems that you are facing.
09-13-2018 06:00 PM
@k-waris wrote:
Can you share project explorer image showing 3 RT target and chassis. At least a block diagram image would also help.
You must have all RT vis designed to have communication between them to stop all vis when stop command is issued. All RT vis are required to execute stop states gracefully exiting condition loops otherwise you could have problems that you are facing.
LOL - we're trying to get wean the users off of uploading pictures! 😄
09-13-2018 06:26 PM
My guess is you are not applying the changes made in one context (target) to the unopened copies in another context. Save all this project, close all this project and then close the project is the required workflow for this situation.
Try it and report back
09-14-2018 02:47 AM
Hi k-waris,
It's not that vi's are not stopping. It's that when I close the project, they didn't unload out of the memory. So for example, I close the project, it's going to ask me to save a number of vi's. Then when I close the "Welcome screen" of LabVIEW, it asks me ?again? to save some other vi's that were used in this project... This is what I find abnormal and what blocks me from editing these classes.
Some more side info: The classes (see screenshot because you asked for it 😉 are actually in an auto populating folder in the main project (My Computer/SubVIs/[RT] SubVIs which I didn't expand as it is too big). Then they are used inside the [RT] Main Sprint4.5.vi as a dependency.
Thanks!
Greets,
F.
09-16-2018 03:25 PM
Hi Jeff,
I tried the save all procedure twice, it didn't work. I believe that this might be a bug. I'd think that if you close a project, that LabVIEW at least also closes the vi's (or unloads them from the memory). I guess I'll just lose a lot of time closing down LabVIEW completely, editing the locked vi's, then opening the project again.
If there are any other ideas, I welcome them of course! 🙂
Thanks already!
Kind regards,
Filip.
09-17-2018 07:25 AM
Have you tried to get a list if vis in memory? Some Frameworks intentionally keep stuff around. UTF and VIA come to mind. ..
09-26-2018 12:53 PM - edited 09-26-2018 12:58 PM
Hi Filip,
I got your concern, as I am also facing same thing with my LabVIEW 2017 project window.
By closing main project explorer window, it should close all the VIs which are opened or in memory along with it. but unfortunately it is not doing it. I also believe this is a bug.
I addition, the weird thing is if you open same type of example(which contain cRIO and other RT stuff) from LabVIEW example finder, that works perfectly fine(it closes all opened VIs along with it). I don't know what is the reason behind it.
Still, I am also looking for solution on this for my project. 😞
Thanks for sharing your case.
09-26-2018 05:30 PM
I'm quite sure you know this, but just in case, only the VIs belonging to the project will close with the project.
09-26-2018 05:51 PM
@billko wrote:
I'm quite sure you know this, but just in case, only the VIs belonging to the project will close with the project.
File close all this project will close all vis belonging to a project. But not dependencies.
Closing a project closes the project. It does not remove any vis from memory or close any open vis. That is how it works.
You should not be opening dependancies. Put them in the project or leave them alone. Depancies are reuse code that belong elsewhere like vilib or userlib.