LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How the integrated workspace view opens project files

When I open CVI, files opened the last time are reopened, but in different order.
Example: my project has 2 source files and a include file, which I always open in a fixed order: first the source with main function (and other UIR related functions), next the other source (auxiliary functions and utilities), last the include file. I am accustomed to always respect this order so that I switch to various files with Ctrl+x: it's practice and easy to do Smiley Happy
 
Now, when CVI reopens opened files always inverts the order: first the .h, next the secondary .c, last main source file! Smiley Surprised
 
Is it possible to induce CVI to either not open any file or open files respecting the order in which they were opened last time?


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 3
(4,140 Views)
Roberto,
 
Unfortunately CVI does not re-open your workspace files in the order that you opened them. Instead, it opens them in z-plane order. Our main priority was to make sure that if a file was on top of the window stack before you unloaded the workspace, it should still be on top of the window stack when you reload the workspace, regardless of the order in which they were originally opened.
 
Thinking about this some more, we could have implemented the re-loading in such a way that the z-plane would still have been preserved, and at the same time opening them in the order in which they were originally opened. So this was an oversight...
 
You asked whether it is possible to have CVI not open the files at all. This isn't really possible for confined windows (released windows are never reopened). However, it is a fairly simple task to select Window>>Close All as soon as the workspace is loaded. <Alt-W-L> That will be equivalent to CVI not re-opening any windows.
 
Luis
NI
0 Kudos
Message 2 of 3
(4,124 Views)
Thanks Luis, I didn't focused on z-plane order but it's true what you said. So if I do want to have all my files openes in the right order it's enough that I press Ctrl+1, Ctrl+2, Ctrl+3 before quitting CVI and that's all. Smiley Happy


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(4,105 Views)