LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit the LabVIEW Wiki Application Design & Architecture Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Cannot instantiate template VI when in memory
Michael_Aivaliot...
post May 24 2003, 01:58 AM
Post #1


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


Just want to let everyone know of a change in the way template VI's are instantiated. I got this error when I ran code that used to work fine in LV61:


CODE
Error 1127 occurred at Open VI Reference in Launch View Data Screen.vi



Possible reason(s):



LabVIEW:  Cannot instantiate template VI because it is already in memory.


In LV61 there was no error and instead of instantating the new vi from the template it would just call the template VI and run it. This is not an issue in a built application but is tedious during development since you cannot test with the actual template in your hierarchy.

Yet another minor change to live with I guess.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post May 24 2003, 01:58 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post May 24 2003, 06:21 AM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


Well, I got it working. Apparently NI changed the default action for the options input on the "open VI reference" function.

Previously you could leave the Options input unwired and LabVIEW would instantiate a VI from a template if the template was NOT already In memory. If it was in memory then it would just open a reference to the actual template.

In LV7 you have to specify the options bit set in one mode or another. Otherwise it will error out if you try to open a reference to a template vi and it is always in memory. You have to specify:

CODE
0x02 | Open templates for editing.  


Another little thing to watch for when migrating to LV7. :wink:

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 8th January 2009 - 08:26 PM