Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Jul 9 2008, 01:31 AM
Post
#1
|
|||
![]() Confucius say: Crowded elevator always smell different to midget Admin ![]() Posts: 2367 Joined: 13-October 02 From: Planet Earth Member No.: 2 Using LabVIEW Since:1994 LV:8.5 ,8.2.1 ,7.1.1
My Blog
My Gallery
|
In a typical software application, when you perform a "Save All" action you would expect it to save all of your open documents or working files, right? Not so in LabVIEW. Apparently LabVIEW is not a typical application. Even though I ask LabVIEW to please save all my VI's. It doesn't. I can see that it doesn't because when if I open up a VI that is on the diagram of another visible VI, I see an asterisk in the titlebar indicating that the VI has unsaved changes. In LabVIEW 8.5.1 there are two "save all" menu items, one called "save all" and another called "save all (this project)". I've tried both and neither produces the expected results.
It's possible that the behavior of the "save all" has changed over the last four or five LabVIEW versions. In the past, the "save all" menu function would save ALL vi's in memory. Regardless if the front panel is visible or not. I'm thinking that this is not the case anymore and now LabVIEW only saves VI's with their front panel visible. An exception to this rule is that LabVIEW somehow remembers if you've opened a VI with unsaved changes and then closed it (without saving changes) thus actually saving it when you later perform a "save all". Is all of this true? If so, then is there any way to perform the old-style "save all"? --------------------
|
||
|
|
|||
| Ad |
Jul 9 2008, 01:31 AM
Post
#
|
||
|
|
|
||
|
|
|||
Jul 9 2008, 01:38 AM
Post
#2
|
|||
![]() Very Active Member Posts: 85 Joined: 13-August 03 From: Plymouth, Michigan Member No.: 151 Using LabVIEW Since:1993 LV:8.6 ,8.5.1 ,8.2.1
|
Maybe this changed for better SCC compatibility?
|
||
|
|
|||
Jul 9 2008, 02:17 AM
Post
#3
|
|||
|
5 more posts to go! Premium Member ![]() Posts: 5 Joined: 5-September 05 From: Bay Area, CA Member No.: 2918 Using LabVIEW Since:1995 LV:8.5 ,7.1 ,.
|
I'm so glad you mentioned this. I thought I was loosing my mind. During project development, I typically create a "Load All" vi to make certain that all components are loaded into memory and quickly available while modifying code. The Load All vi also serves (or at least it used serve well in previous versions of LabVIEW) as a quick and convenient way to detect vi's that need to be resaved due to either explicit or inexplicit modifications. By closing the Load All vi in previous versions of LV, I would be prompted to save vi's needing to be re-saved. Now, in LabVIEW 8.5, I cannot simply "save all" to flush all changes to disk, nor does LabVIEW 8.5 prompt for saving vi's which do not have their front panels open. Now I have to actually open all of the vi's front panels to be sure that they are fully opened in order to ensure they are all up to date. I mentioned this odd behavior to a colleague and he thought I'd been smoking something or functioning in some altered reality. I see now, it is not me, its LabVIEW 8.5
Thanks, KT
|
||
|
|
|||
Jul 9 2008, 02:43 AM
Post
#4
|
|||
![]() LV R&D Envoy NI ![]() Posts: 1226 Joined: 15-August 06 From: Austin, TX Member No.: 5877 Using LabVIEW Since:2000 LV:8.5.1 ,. ,.
My Gallery
|
No CARs have been filed matching the situation you describe. For the record, Save All should save all VIs in memory in all projects. Save All (this project) should save everything currently in memory in this project (note: it won't load VIs from disk that aren't in memory but are listed in the project). Any deviance from this behavior is a bug.
I've just run through a bunch of "Save All" tests on a few different hierarchies and I didn't see any problems. Is there any thing special about the particular VIs that aren't being saved? Can you post a set of VIs that demo the bug? nor does LabVIEW 8.5 prompt for saving vi's which do not have their front panels open. I know this isn't true. I rely on that every day, and it works just fine... a VI need not have its panel open to generate the Save Changes dialog. Now, if you load a VI using Open VI Ref and then close the ref, you won't be prompted, but straight up closing the panel will indeed throw Save Changes. Again, if you can post a VI hierarchy that demonstrates the bug, it would be most appreciated. -------------------- "A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D
|
||
|
|
|||
Jul 9 2008, 04:40 AM
Post
#5
|
|||
![]() Confucius say: Crowded elevator always smell different to midget Admin ![]() Posts: 2367 Joined: 13-October 02 From: Planet Earth Member No.: 2 Using LabVIEW Since:1994 LV:8.5 ,8.2.1 ,7.1.1
My Blog
My Gallery
|
Again, if you can post a VI hierarchy that demonstrates the bug, it would be most appreciated. I can't post the actual VI hierarchy that I'm seeing this in, but I will try to extract some code to see if I can reproduce. Also, I see this behavior in various projects I work with so it's not isolated to one case. This has also been reported to me by other colleagues at JKI so at least I haven't been smoking LAVA weed or anything. I have, however come across something else that might help. This behavior seems to only happen with the project environment. I tried opening the VI hierarchy alone without the associated project and the "save all" works as expected. --------------------
|
||
|
|
|||
Jul 9 2008, 05:56 AM
Post
#6
|
|||
![]() CCT It Premium Member ![]() Posts: 1337 Joined: 13-June 05 From: Woerden, Netherlands Member No.: 2399 Using LabVIEW Since:2001 LV:8.5.1 ,6.1 ,8.2.1
My Blog
My Gallery
|
Not so in LabVIEW. Apparently LabVIEW is not a typical application. Muhahahahaha --------------------
|
||
|
|
|||
Jul 9 2008, 06:31 AM
Post
#7
|
|||
![]() Extremely Active JKI ![]() Posts: 612 Joined: 19-June 03 From: Bay Area, CA (USA) Member No.: 121 Using LabVIEW Since:1998 LV:8.5.1 ,8.6 ,8.2.1
My Blog
|
I can confirm what Michael is seeing (not so much using the project environment) but for example when closing a VI tree. Very often doing a save all followed by an attempt to close LabVIEW result by a prompt asking me if I want to save a few more VIs...
PJM --------------------
|
||
|
|
|||
Jul 9 2008, 07:45 AM
Post
#8
|
|||
|
Very Active Member Posts: 91 Joined: 7-March 07 From: Munich Member No.: 7932 Using LabVIEW Since:2001 LV:8.6 ,8.5.1 ,7.1.1
|
Could this have something to do with the environment-option "Do not save automatic changes"?
-------------------- The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom.
Isaac Asimov
|
||
|
|
|||
![]() ![]() |
| Time is now: 3rd December 2008 - 09:07 AM |