Ok - this is somewhere between a bug and trying out a new feature...
I have a LabVIEW class that contains in its private data a couple of arrays. I want to be able to probe these arrays and to do this to display my data sensibly needs a little bit more than just the standard probe of a class. No problem - I also have an XControl that works for my class and does all the nice formating that I want, so I create a probe which uses my XControl...
Now, I can't add my XControl to my class, but I can live with that, but I can add my probe to my class and in fact if I want to make my class know that that is the preferred probe for it, then I should do this because then I can set the probe with the class properties.
So, I add my probe to my class in the project view. Whereupon my class promptly becomes locked - why ? Well the best answer I have is that the XControl on my probe has become loaded into memory and therefore the class is now open in two application instances - the one that I was editing until it got locked and the XControl's facade.
Aside from the fact that it really isn't obvous to the user what has just happened, the real killer is that because the class is now locked you can't remove the probe vi from the class to regain an editable class. All you can do is to close the class window quickly and hope you haven't saved it. If you have, then your only option is to open the ,lvclass file in a text editor and removed the offending probe from the class.
I think this is what is technically known as a catch-22 or perhaps "shooting yourself in the foot". Obviously the best solution would be if it didn't happen at all, the next best thing would be to make it a lot harder to produce a locked class.
--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/