07-04-2017 04:49 AM
Hi,
I can Creat XY graph multiscale (graph multiplot) automatically ?
I means to detect how many of curve we have in graph and show a multiscale Which corresponds to each curve automatically.
Solved! Go to Solution.
07-04-2017 05:46 AM
07-04-2017 06:11 AM
hi sarah_lab,
to get the current number of plots, you have two options.
1. the size of your value array of the xy-graph
2. increment the xy-graph-property.ActivePlot until an error occurs
also see this snippet
07-05-2017 10:59 AM
07-05-2017 11:46 AM - edited 07-05-2017 11:50 AM
the image i posted is a .png with extra information, called a snippet (which can be identified by the top left iconification)
you can drag+drop it onto a blockdiagram
and you also can create snippets yourself easily, just have a look at the menu "Edit"->"Create Snippet from Selection"
on the top right there is the labview version with which it was created,
if you have labview >= 2016 it should work, otherwise please state your labview version, so i could make a save for previous version.
regarding the question, wether scales can be created at runtime, gerdw posted that it is not possible.
my googlefu supports that.
regards
ps: i am a gengineered gecko-eating cat 😉
07-06-2017 11:02 AM
Thank you
That's exactly what I was looking for, but how can I link each curve with its axis?
As you notice the curves are small relative to axis.
07-06-2017 11:35 AM
07-06-2017 12:57 PM
in my example i have one graph with 4 plot, i can't get the property of each plot?
how can get it ?
I'm sorry I'm still a beginner in labview .
thank you for your attention.
07-06-2017 01:20 PM - edited 07-06-2017 01:27 PM
you are half there:
since you know which plot is which,
you use the property node of the graph,
the first property you set is "Active Plot", like you do already,
then you pull down to add another property "Plot -> Y Scale Index"
hover over the properties with CTRL+h to see what the help sais about it.
have a look generally what properties there are ..
some properties you will find almost everywhere,
the lower ones are almost always the more specific ones to the thing you have the property node from/for.
regards
07-07-2017 05:02 AM
Thank you guys, the problem is solved,