LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

map mouse coordinates to XY graph coordinates (SI units on Graph)

Hi Folks:

I have used this invoke node method for quite awhile.  Now trying to use it on XY graph where SI units are used on X-axis.  Now I always get 0 for the X graph coordinate. Run the attached and you will see this. Anyway I can get this to work properly as I need to have the SI units.

Thanks,

Don
0 Kudos
Message 1 of 5
(3,170 Views)

See the coercion dots? Your xy cluster indicator is in the wrong representation (both values are I32, suitable for pixel coordinates, but inadequate for your scales).

Delete the xy indicator and right-click on the property node xy output and select "create indicator". Now all's well. 🙂

(Or you could just change both indicators inside the cluster to DBL representation)

Message Edited by altenbach on 08-02-2007 09:05 AM

Message 2 of 5
(3,166 Views)
In my original implementation, I was not using SI units.   I don't remember why I had ouptus as I32 - and looking at this today, I assumed that I32 was the invoke node output format and I ignored the coercion dot.  Thanks for looking at this for me.  As usual, the second set of eyes is always a great thing.

Sincerely,

Don
0 Kudos
Message 3 of 5
(3,156 Views)
The XY display has two numerics of type I32. The cluster coming from the invoke node has Double representation. If you use an indicator with doubles, it works. But, you will see that the X values are based on your scale: 2.0249E-10 coerces to an I32 of 0.

Lynn
0 Kudos
Message 4 of 5
(3,152 Views)


@DonRoth wrote:
... I don't remember why I had ouptus as I32 -...

This can happen if you first create an indicator on the coords for testing and then re-use it after adding the mapping node.

Coercion dots are always worth investigating. 😄

0 Kudos
Message 5 of 5
(3,149 Views)