LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find left start value of the X-Axis in XY graph?

I want to find the start value of the XAxis and YAxis programmatically. I tried to get it by XScale.Range.Start property. But Its value and XScale.Range.Min are always same. What is the use on start property then? & how to get left start value of the X-Axis & bottom start value of the Y-Axis in XY graph?
0 Kudos
Message 1 of 6
(3,296 Views)
Hi MSS,
read the XScale.Range.Start and YScale.Range.Start value. This works for me and i get the expected result.
See the attached example.

Hope it helps.
Mike
0 Kudos
Message 2 of 6
(3,291 Views)

Hi MikeS81,

Thanks for your reply.

However same problem I find in your graph too. Please look in to the attachment. actually it should have returned 24 instead it returns 14.

Regards

MSS



Message Edited by MSS on 07-06-2008 02:56 AM
0 Kudos
Message 3 of 6
(3,287 Views)
Hi MSS,
you show your x scale inverted, so you have to read the max value.

Mike
0 Kudos
Message 4 of 6
(3,280 Views)
Hi,
 
That is right. In my program I am trying to plot the mouse movement on graph. So I need to know the Left start value of X-Axis in addition to min and max of X-Axis. apart from all the XScale.RangeStart should return start property of graph right! why it should return same XScale.RangeMin value? Is it a bug in the LabVIEW program? In that case whom should we report?
 
Regards
MSS
0 Kudos
Message 5 of 6
(3,278 Views)
Start is used for the grid calculations.

You could have a graph from 0 to 10 with a grid at all the uneven numbers. Then you set the start to '1' or '-1'.
Min should allways return the value 'left' value of an X-scale.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 6
(3,257 Views)