LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WaveformGraph with Multi scales

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.

0 Kudos
Message 1 of 6
(518 Views)

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
0 Kudos
Message 2 of 6
(508 Views)

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

0 Kudos
Message 3 of 6
(485 Views)

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
0 Kudos
Message 4 of 6
(463 Views)

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 ǝɥʇ'


0 Kudos
Message 5 of 6
(455 Views)

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).

 

0 Kudos
Message 6 of 6
(331 Views)