11-05-2009 12:18 PM
mattyk wrote:I have deleted all the instances of the Simple Error Handler.vi and the General Error Handler in my program. I also rewrote the Generate Selection.vi which looked after the typedef missing file. I also looked after the Search and Replace Pattern.vi. The only missing files are the report generation VIs. Like I said before, I edited some of these report generation VIs so I could adjust the column widths of a table. I saved all of them in the origional NI location. Again, the VI runs fine in the development environment. The executable can't find these files. I tried adding them to my project (again). I tried saving them in my project folder as a directory structure and not as a library structure and then adding them to the project. I tried rewriting the code, selecting the VIs that were missing right out of the controls menu. I tried everything I can think of. Now I am re-installing LV. I don't think this will work because the LV at work has the edited toolkit (report gen) and at home has the origional. At home it acts the same way. The exe does not know where to find these files. Hope this helps.
Thanks
Matt
Yep- essentially you did yourself a vast disservice. I did it once myself and regretted it. It is very OK to edit items in the installed libraries and tool-kits. But I MUST ADD that you really should save them with a unique name in a different location. Otherwise when the top-level vi calls these on another machine (or from the run-time engine) it looks for the unmodified vi's that have the wrong properties and they are un-identifyable. by editing the default libraries you just made it impossible to run code developed by another machine that expects the default vi to be there and other machines with the default vi's will not run code you've developed.
Sorry to say but, you will need to identify the library vi's you and the other guy modified, save them to a new name and location, edit the callers to look for the resaved modified vi's and them reinstall LabVIEW to recover the shipped libraries.
11-05-2009 12:33 PM
11-05-2009 01:26 PM
Yep- pretty difficult.
Before editing a library vi you should really ask yourself a few questions.
11-06-2009 11:35 AM
I tried copying the code from one VI to a new VI and saved it with the same name. I built an exe with this subVI which worked. Then I built the main progam and it worked. I'm not sure of the explaination behind this or why it worked. It's weird because I tried rewriting the code in a new VI, selecting VIs from the menu and this didn't work so I'm not sure why copying and pasting it worked.
Thanks alot for the help
Matt