LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reload a vi from disk

I'm just curious if anyone knows of a way to do this.  In LV 8.2 if I open a VI, then replace it on the hard drive, with another VI of the same name, is there anyway to load the new VI from the hard drive to replace the one in memory?  I usually just close it, and open the new one, and sometimes it asks me if I want to replace the one in memory, and sometimes not.

Thanks,
Benjamin
0 Kudos
Message 1 of 9
(4,442 Views)
It will ask you if you want to replace the one that is in memory if you the VI is used as a subVI. Thus, it will still be in memory even if you close the VI. If you then replace the VI on disk behind LabVIEW's back, so to speak, and then double-click the subVI icon you'll get that message. You will also get that message if you try to open the VI from disk directly. LabVIEW doesn't have an automatic detection mechanism for the file having been changed on disk beyond this.
0 Kudos
Message 2 of 9
(4,435 Views)
OK, got that, but if I save a new version to disk, then close the current version, then open it again, it just reopens the one already in memory, but anyway that's beside the point.  What I really want to know is whether there is a way to reload a VI from disk without having to close it.  I'm developing an application right now with two other people working on two different computers, and we are integrating all of our software, and debugging the communication.  Every time one of us makes a change to a VI the other two are using, the other two of us have to close our versions, copy the new one onto our respective hard drives, and then open it again, which is kind of a bother.
0 Kudos
Message 3 of 9
(4,431 Views)
If I understand what you want, all you have to do is:
  • Have your program loaded into memory.
  • Replace the VI on disk.
  • Open the version that is in memory and do something to make it look like it has changed - like move a control.
  • Select Revert from the File menu. LV will load the modified version into memory from disk.
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 9
(4,423 Views)
Perfect.  Thanks.
0 Kudos
Message 5 of 9
(4,422 Views)
Great answer Mike.  Just for my knowledge, where does "after all He's no a tame lion" come from.
Brian K.
0 Kudos
Message 6 of 9
(4,403 Views)
The Chronicles of Narnia by CS Lewis...

The quote is about Aslan who though He is a lion that loves the children, He is never-the-less not a "tame"lion...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 9
(4,397 Views)
Mike replied,
 
"
The Chronicles of Narnia by CS Lewis...

The quote is about Aslan who though He is a lion that loves the children, He is never-the-less not a "tame"lion...
 
"
[emhpesis added]
 
Hi Mike,
 
I read the entire set of the chronicles begining to end in the interest of find that text. I never found it.
 
Great series BTW. Its a good way to get future Enthusiast "trained up right" teaching that we should be willing to give all we have for the benefit of others.
 
Ben
 
 
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 9
(4,394 Views)
Thanks Ben, you know I hadn't thought about it but there is in a sense a tie-in between contributions to the forum and my sig line. Clearly the scope is different, but still... hmmm...

The quote comes from the first book where Lucy is talking to, as I recall, Mrs Beaver. She confesses that while she knows that Aslan loves them, there are times when she doesn't feel totally 'safe' around him. In reply Mrs Beaver tells her that feeling that way is perfectly proper because after all He's not a tame lion. At the end of the recent movie version there's an obscure reference to the "tame lion" idea as well...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 9
(4,387 Views)