NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
IDCDeveloper
Posts: 22
0 Kudos

Dynamically change X-axis caption on zooming

Hi, dear NI team :smileyhappy:
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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page