Go to Post It's possible to do nearly anything with enough resources and ingenuity. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-12-2008, 18:15
Delian Delian is offline
Registered User
FRC #3006
 
Join Date: Dec 2008
Location: Salt Lake City
Posts: 16
Delian is on a distinguished road
Opening Labview Programs : Desktop Only???

As my code has become more and more complicated, I notice that it takes longer and longer to open because I am using more and more VI's. I tried to open my programs on other places on my laptop, yet it seems like the only place where the program will actually fin the VI's is whn it is on the desktop. If it is not on the desktop, it will search for a long time, until I get bored and click ignore item to all of them, at which point my program is filled with a bunch of VIs which are just question marks. I talked to our programming mentor about this, and he said it was B.S. that I could not save and run my programs in other places. I also tried changing the location for where the search starts, but that did not help either.

Any ideas on why this is happening?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-12-2008, 23:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Opening Labview Programs : Desktop Only???

When LV saves a hierarchy of VIs, it saves a relative path from every calling VI to every subVI. So if VI A calls B calls C, then the saved version will have a relative path from A to B saved in A, and a relative path from B to C saved in B.

This works well in most cases, but if you move things around on disk, the relative path will no longer work. When LV loads a VI and that VI references subVIs, it takes the relative paths to subVIs, combines them with the VI to get the expected path to the subVIs and tries to load from that location. If the file doesn't exist there, it then checks to see if it is in memory, then starts down the search path which includes vi.lib and other locations.

Anyway, it is likely that there is something you are doing to the disk files that is causing LV loading to fail. Hope this helps.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading LabView Programs onto Old Controllers Charlie NI LabVIEW 1 07-11-2008 16:58
Extended Desktop.... kE7JLM Chit-Chat 4 25-10-2008 04:09
Google Desktop Leon Machado IV Chit-Chat 9 22-08-2005 16:46
Woodie's Opening Speech Chris Fultz General Forum 1 29-04-2005 08:43
[FVG]: Opening Sequence Joshua May FIRST-related Organizations 16 24-06-2004 00:00


All times are GMT -5. The time now is 08:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi