cancel
Showing results for 
Search instead for 
Did you mean: 

WaveformGraph with Multi scales

seica1
Member

WaveformGraph with Multi scales

Message contains an attachment

Hello all, I have a waveform graph with four different plots showing different data.

I need to have the markers for the four scales aligned, the same amount of marker on each Y scale so I can use one grid for all of them.

Now you can see in the attached VI (LV 2017) that each scale has its own markers distribution and each one it's different from the others, if I enable the grid this is valid only for that axis, the other will result shifted in Y. I need only one line for all the four Y scales.

 

Thank you.

5 REPLIES 5
GerdW
Knight of NI

Re: WaveformGraph with Multi scales

Buongiorno seica,

 


@seica1 wrote:

I need to have the markers for the four scales aligned, the same amount of marker on each Y scale so I can use one grid for all of them.


Two steps:

  1. Show the Y axis marker line only for one of your several Y scales, hide them for all others (by setting to transparent color)
  2. Set the Y axis ranges to the same amount of marker steps so all scales fit to the markers of the "one scale"… (Aka switch off autoscaling!)

You can do all that by using property nodes of the graph!

 

Example on step 2:

Right now your 4 scales use 19, 16, 20, 15 increments.

Change the scale ranges/increments so that all of them use 20 increments:

  • Voltage 0…20V in 1V steps
  • Current 0…80A in 4A steps
  • Speed 0…4000rpm in 200rpm steps
  • Torque 0…4Nm in 0.2Nm steps…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
seica1
Member

Re: WaveformGraph with Multi scales

Thank you for immediate response.

I can't change the maximun value on each scale because it's a range requested by my customer.

I need to show all the values on each scale.

Your 2nd suggestion could be ok for me but how to change the markers division assuming the constrains above?

 

Thank you.

Massimo Ponte

Highlighted
GerdW
Knight of NI

Re: WaveformGraph with Multi scales

Hi Massimo,

 


@seica1 wrote:

Your 2nd suggestion could be ok for me but how to change the markers division assuming the constrains above?


There's a Range property for each scale, with an Increment parameter…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Henrik_Volkers
Trusted Enthusiast

Re: WaveformGraph with Multi scales

Message contains a hyperlink

here I posted an idea and a solution for 'autoscaled' two scale matching   ..

 

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Match-autoscaled-grids-in-multi-axis-plots/idi-p/2478...

 

could be a starting point to match four scales.

 

But I assume a set of some common matched scale settings to choose it faster and migth fit

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Intaris
Proven Zealot

Re: WaveformGraph with Multi scales

Message contains an image

Intaris_0-1701349401224.png

my 2c.

Only show the grid for one plot. Then use code similar to the following to actually re-scale the data to have 10 visible segments (11 label values).