Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/07/2014 in all areas

  1. Renaming a folder holding a class with Windows Explorer is no problem, because you can afterwards open the class and LabVIEW will find the right VIs relative to the path of the *.lvclass files. Even opening a project file will ask only once where to find the class. Then you could save the class files with "Save all (this Class)" and all class VIs will be saved. But be aware that also all subVIs of the class VIs will be saved as well if they are changed. Renaming a class in a project will become a nightmare if not all callers of that class are loaded in memory. If you want to exchange a class for a different one (e. g. if you have prepared a new revision like in your case) than you could do the following: 1. open your Project 2. add old and new class to the project, if not already done 3. make the new class (temporarily) a child class of the old class 4. replace all class constants of the old class only in the block diagram with constants of the new class. As the new class is a child of the old class all wires, front panel element and class VIs will adopt automatically to the child (new) class. Of course, class VIs are only exchanged if they have not been renamed and if the class in and out is dynamic dispatch. 5. undo the inheritance 6. save everything With this procedure all class VIs are exchanged at once. You have to replace only (normally a few) class constants in the BD but not a large number of class VIs in many caller VIs. To prepare the new revision of a class with a different name use "Save as > Copy -create copy on disk" on the class in the project explorer. You could also apply this method step by step to several projects as you have the old and new class on disk.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.