05-20-2016 12:03 PM
Hi, i believe many people have already asked this question, but i couldn't find solution to my problems below.
Has anyone tried something like this before?
Solved! Go to Solution.
05-20-2016 12:24 PM
Yes.
Right click your y-axis and choose "duplicate scale".
Expand your plots so you see at least Plot 0 and Plot 1.
Right click one of the plots and choose Y Scale as Amplitude 2.
05-20-2016 01:06 PM
Thank you, i know how to do that on front panel, how would the block diagram look like?
05-20-2016 01:11 PM
You just have to set it up on your front panel once and it is done. You can use property nodes to make plots visible/invisible or use the Plot.YScaleIdx (Y Scale Index) to choose which scale to use, but I imagine you won't really need to change it on the fly...
05-20-2016 01:16 PM
One of my favorites
An array of clusters of arrays of clusters.
Ben
05-20-2016 01:41 PM
@Ben wrote:One of my favorites
An array of clusters of arrays of clusters.
Ben
That sounds very confusing, can you please share a picture of such vi?
05-20-2016 01:47 PM
@LV_Enthu wrote:
@Ben wrote:One of my favorites
An array of clusters of arrays of clusters.
Ben
That sounds very confusing, can you please share a picture of such vi?
No but I will ry to explain. Starting at the end of the expresion and working back to the left.
Clusters - a cluster with two values, an X and a Y. The cluster is a point to be plotted.
Arrays of clusters - the array is one of the plots on the graph.
Clusters of ... - LV does not let you do arrays of arrays (that would be a 2-D array) so each plot gets wrapped in a cluster.
An array of clusters of arrays... - Each array is one of your plots.
Ben
05-20-2016 01:51 PM
Thank you that helped...
Sorry i had another follow up question, can i stack these multiple graphs just like waveform charts?
If nt, is there a way to have 1 axis on left and other axis on right, just like excel?
05-20-2016 01:52 PM
I don't believe you can stack them. You can swap sides by right clicking the axis and selecting "swap sides"
05-20-2016 01:53 PM
Yes after doing what Greg described above you right-click one of the scales and select "swap sides" to move the scale to the other side of the graph. Greg also explained how to associate a plot with the proper Y-Scale.