01-06-2013 10:29 AM
A suggestion for an alternative approach: Rather than passing a generic reference and then trying to make it more specific, pass a reference to the VI or the panel. In the subVI obtain the array of references to the controls. Using the Label.text property obtain a reference to the graph and from that get the cursor reference. It is somewhat cumbersome, but it will always work (so long as you have unique labels on the controls).
With what you are now doing you need to pass some information along with the generic reference to tell the subVI how to convert it back, so this is no different in that respect.
Lynn
01-08-2013 11:11 AM
While passing the graph is perfectly reasonable, I was really tying to figure out why this stupid cast doesn't work. Makes no sense to me. Thanks for the work arounds. They should be helpful in the future, though I've decided just to avoid the cursor altogether for now.