LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a second y-scale to a waveform graph

I have a graph that shows a force in Newton and now I would like to add a second y-scale that shows the force in per cent off max force. One plot two different y-scales is it possible, and how do I do?
0 Kudos
Message 1 of 11
(3,983 Views)
Hi!
Just right click on the Y scale and click on duplicate scale.
Then change name and scale on the front screen of the waveform graph.
Find attached vi.

Kaustubh
VC (Pune)
INDIA
0 Kudos
Message 2 of 11
(3,973 Views)
Hi!
Just right click on the Y scale and click on duplicate scale.
Then change name and scale on the front screen of the waveform graph.
Find attached vi.

Kaustubh
VC (Pune)
INDIA
0 Kudos
Message 3 of 11
(3,973 Views)
Hi Wakeguy

Two y-scales are no problem - but link one plot to two scales - I think this is not possible.

For instance you have a plot with the values (4 & 8)N. This would then give 4 & 8 % and not for example 10 & 20 % at a maximum force of 40N. The only possibility I could imagine, is to generate a second plot with the correct value and link this to the second scale (you can do this in the property-window of the graph control).

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 11
(3,973 Views)
Displaying a second axe with a different scale can be done as follow : get the max and min of your first scale, convert to the corresponding values in the other unit and pass the values to the max and min of the second scale.
See the attached vi
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 11
(3,968 Views)
Hi CC

Could you attach it in LV 7.0 please?

I'd like to have a look at it.

Merci beaucoup ;).

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 11
(3,957 Views)


@becktho wrote:
Hi CC

Could you attach it in LV 7.0 please?

I'd like to have a look at it.

Merci beaucoup ;).

Thomas




Et voilà !
Chilly Charly    (aka CC)
0 Kudos
Message 7 of 11
(3,941 Views)
Hi CC

Ok - now I can follow your idea. But I think it still has a "problem". If e.g. the measured values are between 0 - 400N and I want to see better where they are, I may scale the first y-scale to a range where the values should usually be (let's say 250 - 325N). So I can better see value changes.

But if I still want to have the second scale ranging from 0 - 100% does your vi still work?

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 11
(3,931 Views)
Thomas,
I think it will be a bit difficult to have both :
1/ a single curve with 2 different corresponding scales
2/ a single curve with 2 different non-corresponding scales. 😄
You'll have to choose : it's one or the other...

CC
Chilly Charly    (aka CC)
0 Kudos
Message 9 of 11
(3,912 Views)
Wakeguy, Thomas,
I ultimately understood your question.
I had a completely different interpretation : in my mind, the max force was not tied to the max signal value, but to a max externally imposed.
Here is a solution to the other interpretation, saved in 7.0 format
Chilly Charly    (aka CC)
0 Kudos
Message 10 of 11
(3,892 Views)