LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of clusters - individual XY graphs scales

Hello,

I have a VI that loads an ASCII file and plots each one of the columns on graphs. It works very well but the problem is that the number of columns may vary. Some ASCII files have 3 columns and others have 40.

I made a Array of Clusters and inside each cluster there is a graph that is fed with data from the ASCII file.

I would like to know if there is a way to adjust the scales of the graphs individully. Currently, as you change the scale into one graph, it is spreaded over all graphs in the arrray.

Thanks,

Dan07.
0 Kudos
Message 1 of 6
(3,117 Views)

The scales of the graphs can be changed individually, however, you cannot programmatically create new scales. To create multiple 'Y' scales, simply right-click the 'Y' scale on your graph and select duplicate. Repeat that procedure for as many scales as you need. To programmatically adjust each of these scales, first call the "Active Y Scale" Property Node and set it to the scale you wish to modify. Next set the range of the scale. Repeat this for each of the scales that you wish to modify. Next you need to tell each plot which scale you want it to display on, use the "Active Plot" Property Node to choose the plot of which you wish to change the scale. Finally, use the "Plot" -> "Y Scale Index" Property Node to set which scale you wish to use for this plot. I don't believe this will give you exactly what you want but I believe that it is the best that can be done with LabVIEW.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 6
(3,103 Views)
Hello,

Your suggestion will work great for me.

Thanks a lot.

Dan07.
0 Kudos
Message 3 of 6
(3,059 Views)

Hello,

 

Your idea is great but it does not work for me since in a array of clusters (with a graph inside each cluster) it is not possible to have access to the individual reference of each graph inside each cluster. Then, it will not be possible to set different visible scales to each one of the graphs.

 

Any other idea to solve the issue?

 

Thanks.

 

Dan07.

0 Kudos
Message 4 of 6
(3,041 Views)

Hi Dan,

 

in an array all elements share the same properties - the only difference is the value of the elements.

 

So as long as you put your graphs into an array you CANNOT have different scale settings. Get rid of that array of graphs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,022 Views)

I posted an example here which shows how to create an "array of subpanels". You can use that to have graphs with separate properties.

 

http://forums.ni.com/t5/LabVIEW/User-interface-problem-list-of-clusters/m-p/2311770#M726599


___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(3,015 Views)