Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically change X-axis caption on zooming

Hi, dear NI team 🙂
I have a simple question, I am very sorry that I didn't managed to solve it by myself.
Lets say I am measuring time on my X-axis. And now my visible part of the WaveForm graph is from 0 to 5 seconds. So I want major divisions to be 1,2,3,4,5 and the caption will be "Time (S)".
And now I am zooming to interval (0, 0.005) seconds. I want my major division labels to be 1,2,3,4,5 and caption will be "Time (mS)".
Until now I have managed to show division labels in correct format, for example 1mS, 2mS, 3mS and so on, but users say they dont want to see units on labels, but only on caption.
So I need a way to dynamically change caption of X-axis according to zoomed interval. Any idea how to implement it? I dont have problem of finding where to do it, but how to do it. On zoom I can get my new interval, and I know that units are Seconds, but how can I understand if those are milliseconds, microseconds and so on?

 

Thanks and best regards.

0 Kudos
Message 1 of 1
(3,863 Views)