george seifert Posted February 6, 2008 Report Share Posted February 6, 2008 This is making me absolutely nuts. I have a strict type def in three places in my code. I want to replace that type def with a new one with the same name that's in a different directory. Every time I replace it (which proceeds without any warnings or problems) it reverts back to the original one. The only way I've been able to actually replace it is to delete every instance of the type def in my code and then put the new one in. Why the heck won't it let me do the replacement? George Quote Link to comment
LAVA 1.0 Content Posted February 6, 2008 Report Share Posted February 6, 2008 QUOTE(george seifert @ Feb 5 2008, 08:26 AM) This is making me absolutely nuts. I have a strict type def in three places in my code. I want to replace that type def with a new one with the same name that's in a different directory. Every time I replace it (which proceeds without any warnings or problems) it reverts back to the original one. The only way I've been able to actually replace it is to delete every instance of the type def in my code and then put the new one in. Why the heck won't it let me do the replacement?George I believe I have seen waht you are describing and it ends up being the old "one VI in memory by a name" thing. To replace the type def I play the rename game (close LV rename old as temp, new get correct name, open VI at let LV find the new typedef). Ben Quote Link to comment
ned Posted February 6, 2008 Report Share Posted February 6, 2008 Any chance you can just close LabVIEW, do the replacement on disk (ie, rename the old one, move the new one to the location of the old one), and then reopen your VIs? Once you've done that you can open the new typedef and rename it to save it back to its original location. EDIT: I misunderstood Ben's comment when I first read it, and after rereading I note that my suggestion simply duplicates his. Quote Link to comment
george seifert Posted February 6, 2008 Author Report Share Posted February 6, 2008 The other thing that worked was to disconnect all the type defs (better than deleting them) and them replace them with the new reference. Not too bad if there's only a few of them. Still I don't understand why it doesn't work like replacing a VI where it will replace all instances. George Quote Link to comment
LAVA 1.0 Content Posted February 6, 2008 Report Share Posted February 6, 2008 QUOTE(george seifert @ Feb 5 2008, 11:55 AM) The other thing that worked was to disconnect all the type defs (better than deleting them) and them replace them with the new reference. Not too bad if there's only a few of them.Still I don't understand why it doesn't work like replacing a VI where it will replace all instances. George Hi George, Last time I checked I could not replace a VI with one name with another VI of the same name. Is that allowed now? Ben Quote Link to comment
george seifert Posted February 6, 2008 Author Report Share Posted February 6, 2008 QUOTE(neB @ Feb 5 2008, 11:08 AM) Hi George,Last time I checked I could not replace a VI with one name with another VI of the same name. Is that allowed now? Ben Hmm, now you have me questioning my memory, but I'm pretty sure if you replace a VI with one of the same name that's not listed in the active project, then it will do it. George Quote Link to comment
Yair Posted February 6, 2008 Report Share Posted February 6, 2008 QUOTE(neB @ Feb 5 2008, 07:08 PM) Last time I checked I could not replace a VI with one name with another VI of the same name. Is that allowed now? Yes. You get a warning and the ability to choose whether you want to replace all the copies or not. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.