01-23-2008 08:36 PM
01-24-2008 01:50 AM
LabVIEW can not have two VIs with the same name in memory at the same. One of your VIs has the same name as one of the NI VIs that the app builder needs. When it tries to load it, it finds that your VI is already open and it uses your VI instead, but it can't work with your VI, so it throws an error.
In LV 8, NI added libraries, so that the library name is part of the VI name and you can have VIs with the same name in different libraries, but they haven't moved all of their old code into libraries.
The solution for you is simple - you need to change the name of your VI. You can do this either by doing a save as on it or by adding it to a library. If you do a save as, be sure to do it when the VIs calling it are open, because otherwise they will not know to link to the new file name, and be sure to save them as well.
Interestingly, the error says that a file of that name is in memory or is in a library which is in memory, which seems to indicate that putting the VI in a library will not help you, but as far as I know, it should. I don't use 8.x, so I can't test it.
01-24-2008 03:10 PM
01-25-2008 12:58 AM
01-25-2008 04:07 AM
OK, I got to play with it in 8.5, and I can build without errors. I do get the password dialog and the VI is used from the temporary LLB LV uses for buliding the executable, but the build completes.
I'll let NI deal with that part, but I just wanted to point out that there are tools for saving and loading arbitrary clusters to and from INI files and you might want to use those instead. Two that come to mind are tools from OpenG and MGI, both free.
10-10-2008 04:43 PM
10-10-2008 04:52 PM
Additional info on Error:
Error 1041 occurred at Invoke Node in AB_Source_VI.lvclass:Apply_VI_Properties.vi->AB_Source_VI.lvclass:Copy_SourceItem.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
Possible reason(s):
LabVIEW: Incorrect password.
Method Name: Lock State:Set
10-13-2008 09:50 AM
HollywoodGunner-
The problem stated before arose from referencing VIs that had the same name as another VI on the system. Mark thought he was referencing the correct one in his lvlib file but was not. You can check to see what VIs you are using by going to Project Explorer>>Project>>Show Item Paths. This tool displays the path of the VIs in the Project Explorer to the right of the name. A workaround that helped Mark out was if you go to Executable Properties (Right-click on your executable name in Project Explorer) and go to Destinations, we found that if you turned off the "Add Files To New Project Library" that the problem would go away. I can't explain why this works but it did help until the final solution of referencing the correct VIs was found. Please let me know if this is helpful. Thanks and Good Luck!!
10-23-2008 01:30 AM
Helo,
I just upgraded from 8.5 to 8.6 and the following problem occured in the build process:
An error occurred while saving the following file:
C:\READ86\KAST.vi
Invoke Node in AB_Source_VI.lvclass:Close_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi
->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Build.lvclass:Build_from_Wizard.vi->AB_UI_FRAMEWORK.vi->
AB_CreateNewWizard_Invoke_CORE.vi->EBUIP_CreateNewWizard_Invoke.vi->EBUIP_CreateNewWizard_Invoke.vi.ProxyCaller
<APPEND>
Method Name: <b>Save:Target Instrument</b>
I tried to save the source in 8.6 down to 8.5 and compile (build) the program, and it works fine there. I would like to build the program in 8.6 without this
ANNOYING ERROR
kind regards
'the duck Hawk'
10-23-2008 09:50 AM
BobDylan-
I would try recreating the code in a completely blank VI. If you carried over any of these invoke nodes, then chances are that they have changed since 8.5. You also might have better luck getting more people to look at this problem if you post this in your own thread instead of buried in this old one. Let me know how it works. Thanks!!