Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GRAPH

Solved!
Go to solution

Hello.

 

Is there a way to automatically plot on different graphs, as many as the number of the lines of an array?

 

 

E.G. (joined file) I have here 3 lines (light bulbs) with 4 colums (power, minimum price, current price, maximum price).

If I fill 100 lines in my array, how can I get the values to automatically plot on 100 different graphs, without having to prepare 100 cases in the Case Structure?

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

Whatever you are doing inside the loop could be more easily done with "array subset", or just delete the first column before the loop.

 

If all graphs have the same scaling, etc. You could place a graph inside a cluster and create an array of such clusters. You could even reshape to a 2D array of such clusters.

 

Still, I question your sanity trying to display 100 graphs to the user. Seems like information overload. 😄

0 Kudos
Message 2 of 4
(2,909 Views)
Solution
Accepted by topic author AlainKabs

@altenbach wrote:

You could even reshape to a 2D array of such clusters.


Here is a simple example to display four graphs in a 2x2 2D array of graphs.

0 Kudos
Message 3 of 4
(2,901 Views)

This works perfectly.

Thank you very much.

 

Regards.

0 Kudos
Message 4 of 4
(2,803 Views)