LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create different y scale dynamicly on graph

hello all

     I have a problem that, i need create many different y-scale in the graph, one method is right click the scale, select "Duplicate Scale

then a new scale will be ok. however, this is just static method, before the VI running, the total of the y-scale is fix. Is there some dynamic method

by call property node to create the new y-scale when the VI is running?  for example, if i do not know how many channel data to be acquired, then

i can not determine the total quantity of the y-scale, so if dynamic is ok, then , it is very perfect.

     Every one suggetion is very  appreciated.

   

0 Kudos
Message 1 of 4
(2,471 Views)

Hi Mike,

 

some notes:

- you can create any number of scales while editing your VI and control their visibility with a property node in your VI

- IMHO you should limit the number of y scales as

  1) they need space on the front panel and so will minimize the space for the actual plots

  2) the more scales you have the less overview you will get

  3) you get into troubles when using grids for your plots

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,462 Views)

HI

 

it would not be a good idea to have individual Y scales for each channel. the reasons have already been mentioned.

 

you can have two options:

 

1. group the channels and fix 2 or 3 Y scales. i have never used more than 3. Allot groups of channels to each Y scale. so, you can create all Y scales and hide them when not needed. the user can anyways select which plot should be on which scale (right click on the Plot legend for a channel and select Y scale)

 

2. have 2 or 3 graphs/charts and allot a group of channels to each graph/chart. then have individual Y scales on each graph/chart. This depends on how BIG your front panel is going to look! Smiley Happy

 

you need to arrange the graphs in a nice way though..

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 3 of 4
(2,433 Views)

We needed to do something similar becuase of a customer requirement. From what you said, if you know the maximum number of axis, create the maximum number of scales required by right clicking and duplicating scale. During runtime hide/unhide the scale as shown below.

active scale.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 4
(2,426 Views)