LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to more specific class - cursor reference - error 1057

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

0 Kudos
Message 11 of 12
(605 Views)

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.

0 Kudos
Message 12 of 12
(584 Views)