jgcode Posted June 9, 2008 Report Share Posted June 9, 2008 Hi I want to open a ref to a VI, make changes to the front panel, launch the VI in a subpanel, then close the VI and do not need to save changes. I want to open a weakly typed reference to make the FP changes (for reuseable subVIs) and I need a strictly typed to use the call by reference node. My questions are: 1) Can I coerce between the weakly typed and strictly typed refs? 2) Is there any problems with having two refs open at the same time as I launch the plugin - should I clean up my refs a different way? (NB: I have to keep the VI in memory to keep the changes or I will lose them). For Q1 I thought maybe something like this may work? But not. Cheers JG Quote Link to comment
Aristos Queue Posted June 10, 2008 Report Share Posted June 10, 2008 QUOTE (jgcode @ Jun 8 2008, 10:17 AM) 1) Can I coerce between the weakly typed and strictly typed refs? No. Although LV will let you typecast one into another, you'll find that it doesn't work as you would expect it to work. When you open a strongly-typed VI reference, the VI is actually reserved for running. Just typecasting will not do this reservation, and trying to use such a refnum with the CBR node will just give you an error.QUOTE 2) Is there any problems with having two refs open at the same time as I launch the plugin - should I clean up my refs a different way? (NB: I have to keep the VI in memory to keep the changes or I will lose them). No problem at all. Open the weak ref first, do your edits, then open the strong ref to do the CBR. Quote Link to comment
jgcode Posted June 10, 2008 Author Report Share Posted June 10, 2008 QUOTE (Aristos Queue @ Jun 9 2008, 07:45 AM) No. Although LV will let you typecast one into another, you'll find that it doesn't work as you would expect it to work. When you open a strongly-typed VI reference, the VI is actually reserved for running. Just typecasting will not do this reservation, and trying to use such a refnum with the CBR node will just give you an error.No problem at all. Open the weak ref first, do your edits, then open the strong ref to do the CBR. Thanks heaps AQ! :beer: 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.