10-10-2008 09:10 AM
Yes you are right...
(I am confused about this by-value / by-reference stuff!)
10-10-2008 09:27 AM
out of interest, how does the labview "context help" get this information? (This box that appears on the screen and tells you about the vi, or wire the mouse is hanging over.)
Thanks,
Paul.
10-10-2008 09:33 AM
10-11-2008 02:34 PM
chrisger wrote:
The class wire is simply a reference to the classes instance.
That's not entirely accurate, since the data on the wire points to a single instance of that class (i.e. if you split a wire, you get a new instance), so a more accurate description would be that the wire *is* an instance.
To be honest, that description isn't accurate either, since you can split a wire in a single instance (e.g. when you do an unbundle and a bundle on the same wire), but it's generally true.
As for the context help window, you should note that the whole hiding issue is entirely an IDE thing. The only reason you can't see the class data in VIs outside the class is that NI wrote it that way. When they did that, they also wrote it so that the CH window will be able to see the class data.
Incidentally, the control is probably saved in the lvclass file and you might be able to extract it from there for analysis.
P.S. Why do you actually want to do this?
10-11-2008 04:41 PM
You can also use the VIs attached here, which demonstrate how to get a reference to the VI holding the private data control. You can then use the method already shown here to get the control values.