07-11-2005 01:52 AM
07-11-2005 02:19 AM
07-12-2005 02:30 PM
Hi Edwin,
The error is most likely caused by opening an LLB in a newer version of LabVIEW
than the version it was developed on. It is commonly seen with the "Error
Code Database.vi" when upgrading from LabVIEW 6.x to 7.x, if the original
main VI using the "Simple Error Handler.vi" and it was saved in
an LLB including the VI.LIB files ("File » Save with Options... » Include
vi.lib files"). To fix the issue, make sure to use the VI.LIB files (
Please refer to the following KnowledgeBase about this error:
My Copy of the Error Code Database VI from LabVIEW 6.1 Does Not
Work in LabVIEW 7.0
To not run into this error again in the future, do not save the VI.LIB with the
VI, unless you are distributing to a system without the same VI.LIB files
available (e.g. from Full Development system to Base Package).
Let me know if you get it to work, thanks.
Have fun!
07-21-2005 09:00 AM
Thank you very much for all of your helps
well I manage to run this on seems a weird way. I open a vi that runs well, then i open that 'problematic' vi. Suddenly all error dissapear... If i open it without open other vi first, the problem still persist. Then i do what philip says, save with option, etc. ok then it runs well, without opening other vi it can run too. but it can only run when main vi is on .dll file. If i separate the main vi (copy paste and put to other places) the error still there. But its ok, it can work that ways.
Best regards,
Edwin
07-21-2005 09:19 AM
This isn't weird at all - LV can only hold one VI of a certain name at a time in memory. If another VI with the same name is opened, LV will tell you that it loaded the VI which is already in its memory instead of your VI. When you open a VI that runs well, Error Code DB is loaded from your VI.lib directory, and you should get a message telling you (among other things) that the VI was loaded from your VI.lib directory. When you save it, it remembers it loaded the VI from the VI.lib directory, so it works fine.
When you copy the LLB, the relative path probably gets lost and LV starts looking for the VI. The first place it finds it is in the LLB, but because that's an old version, you get errors again.
Here is what you should do - After you open it and it works well, do a regular save (File>>Save). Then, close it, open it again and choose Save with Option>>Development Distribution. Here you can choose to include or not to include VI.lib VIs, but either way, the old Error Code DB VI will not be saved with your new file.