09-06-2007 01:36 PM
09-07-2007 09:16 AM
09-07-2007 09:49 AM
09-08-2007 02:14 PM
09-11-2007 02:49 PM
09-12-2007 10:56 AM
09-15-2007 03:56 PM
@ayd,lfud. wrote:
The only other way I can see at this point would be to create a VI with however many generic .NET constants I wanted on the block diagram, save it, then, in another VI, open the first VI as a text file and replace every instance of assembly.namespace.generic object with a string which has the class I want and then saving the VI. However, doing this results in LabVIEW saying the VI is of a later version and cannot be opened after it is modified as a text file. Soooooo, anyone happen to have the proprietary, confidential, super secret .VI file format 🙂
That sounds like a bad idea.
a) The VI format can change between different versions (e.g. 7.1 to 8.0).
b) A VI has a binary format where presumably the structure changes based on the content and changing it would\could corrupt the VI. In this case, it looks like LV thinks the VI was saved in a newer version because it looks for a certain piece of info (the version the VI was saved in) and finds something it doesn't understand.
What you want might be as easy as finding the length of each name (should *probably* be the four bytes before the string, since that's how LV stores strings) and changing it when you change the name, but it might also not be that. I might try it just to see if it works, but I don't think I would rely on it.