|
|||||||||||||
03-12-2008 05:06 PM
| LabVIEW User Documents Directory | C:\Documents and Settings\<user>\My Documents\National Instruments\LabVIEW <ver> |
| Default Data Directory | C:\Documents and Settings\<user>\My Documents\LabVIEW |
03-12-2008 11:38 PM
03-13-2008 09:18 PM
03-14-2008 08:41 AM
After my last post, I realized there was a more compelling reason why the Default Data Directory should NOT be under a "National Instruments" folder. The Default Data Directory constant is valid for both the development environment and the runtime engine. Although customers can choose not to use the Default Data Directory in their built applications, for those that already do use it -- they probably don't want the location to be under a "National Instruments" folder.
API access to the new version-specific LabVIEW directories, on the other hand, should be limited to use within the LabVIEW development environment and not for use with the runtime engine. The intended uses for the various version-specific directories are very ADE-specific. Furthermore, the ADE does not exist on most machines with deployed applications.
- Noel
03-17-2008 10:31 AM
a) It might be possible to introduce a redirect mechanism such that you can redirect some of these LabVIEW paths to somewhere else on your system. Would this be beneficial?b) Would you prefer that the LabVIEW Data directory move to be under the "National Instruments" directory tree?
b. I'd have said no anyway, but it appears you already found your own better reasons to reject this.
03-17-2008 04:12 PM
03-18-2008 01:50 PM
03-18-2008 01:58 PM - edited 03-18-2008 01:59 PM
Noel wrote:
After my last post, I realized there was a more compelling reason why the Default Data Directory should NOT be under a "National Instruments" folder. The Default Data Directory constant is valid for both the development environment and the runtime engine. Although customers can choose not to use the Default Data Directory in their built applications, for those that already do use it -- they probably don't want the location to be under a "National Instruments" folder.
API access to the new version-specific LabVIEW directories, on the other hand, should be limited to use within the LabVIEW development environment and not for use with the runtime engine. The intended uses for the various version-specific directories are very ADE-specific. Furthermore, the ADE does not exist on most machines with deployed applications.
03-18-2008 02:32 PM
Noel wrote:Jason: I understand your point about using File dialogs and their need to be aware of the context in which they are invoked. I'm not sure how much we can bite off as part of this directory change initiative. Certainly we need to facilitate access to the new directories. As I understand it, LabVIEW has around 80 different permutations of our File dialog. The complexity increases when you consider we support both Native file dialogs (Mac/Windows and a LabVIEW dialog (all platforms). Considering that Vista's native dialog differs in look,feel, and implementation from the XP dialog, I shy away from customizations to the Native dialogs as the answer.
Well since every other program I use on windows seems to get this right, and LabVIEW does not, so I don't think you can blame this on the Vista API. In Word, if you insert a picture into your document, the dialog box starts in "My Pictures". If you insert a picture from another location, it remembers that location next time you want to load another picture, but when you want to open another Word document, it starts in your document location, not in your latest picture location.
If LabVIEW could do the same thing, then the world would be a better place.
All LabVIEW has to do (as far as I can tell) is store two separate starting folders in the registry, one for code, and one for data, and use them at the appropriate times. I just can't imagine this is difficult.
If you really wanted to make life easier for me, you would store the starting directory for code with the project, so that LabVIEW wouldn't constantly encourage me to cross link my code when working with multiple projects. However, I know this is just too much to hope for.
I'm sorry to hijack your thread, but I will bring it back to relevance by repeating that a new API doesn't do much good if LabVIEW itself doesn't follow similar practices.
03-20-2008 02:50 PM
Looking forward to your continued feedback and ideas.
- Noel
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page