LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph double x-axis

Can someone help me?

I'm trying to obtain, on the same graph, two axis with differentes show of the same time. on the first axis i want to show absolute time in format HH:MM:SS, and i'm able to do.

In the second axis i would like to see the elapsed time in seconds since the beginning of the graph. Like this

      19:40:00                   19:42:00                       19:44:00

                                          time

             0                            120                                 240

                                  elapsed time (sec)

 

Obiusvly elapsed time needs to start always from 0, instead of first Time axis that must show recorded time.

I tried to subtract from the second axis start point the beginning of the first but i'm not obtaining what i need.

Thank You in advance for your help.

Ps. I include an example of a try without result.

 

Greetings

0 Kudos
Message 1 of 7
(3,241 Views)

You can set offset and multiplier of different scales by means of property nodes.
RightClicK On Graph >>Create>>PropertyNode>>X Scale>>Offset And Multiplier.
You have to use the active scale property in order to select which one you are operating on.
I suggest you to dig the help about property nodes and always get your help context help windows on.
Property nodes are a real brand new world and you can easily get lost the first time you use them.

Kind Regards

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 2 of 7
(3,220 Views)

ThankYou Filippo,

but, i tried to put every kind of value into the property node: simply i'm not abele to obtain that the second axis start from zero and show elapsed time in seconds.

Have i to set start or min? i tried to set them both without a result

Bye

0 Kudos
Message 3 of 7
(3,214 Views)

I hope this little change to your code may help you.
Otherwise I  misunderstood your needs, I'm sorry.
Feel free to ask if you need further help

Kind Regards

P.S.

Use -3,24231E+9 as offset

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 4 of 7
(3,209 Views)

Dear Filippo,

i have already tried to take data&time from the other axes and multiply it by -1 to obtain the right offset, but, i don't know why, this thing seems to work only the first time: when i try to other data into the graph, calculating offset again, it never starts from zero, it has an offset of 413465 (passed for example from 13:54 3/10/2006 to 19:03 28/9/2006). Why? How can i compensate this move? How did you calculated -3.xxxe-9?

Thankyou

0 Kudos
Message 5 of 7
(3,179 Views)

Dear Filippo & friends,

i don't know why but just switching the reference axis on plot properties everithing seems to work well.

Thankyou

0 Kudos
Message 6 of 7
(3,173 Views)

I'm glad you solved your problem.
You know LabView is extremely powerful but you may get lost the first time you navigate in the wilderness of all those options.

As you have directly experienced the best way to learn is to try and try again.

Kind Regards

Filippo

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 7 of 7
(3,148 Views)