07-16-2011 02:53 AM
Hello,
In a previous version of the program, I had used a XY graph, input was a cluster of 3 elements.
now i need to add 2 more elements to the display.
The XY graph does not accept this new cluster of 5 elements..
I tried creating a new XY graph, this also is notable to accept the new cluster.
I tried the suggestion in the previous forum on clusters, with no luck
http://forums.ni.com/t5/LabVIEW/What-makes-a-cluster-unresizable/td-p/892805/page/3
Is the max size of cluster, input to XY graph 3? if so what else can I use to display a cluster of five elements?
Thanks,
Pallavi
Solved! Go to Solution.
07-16-2011 03:18 AM - edited 07-16-2011 03:23 AM
XY graphs don't accept clusters of five elements (or three elements). What gave you that idea???
An XY graph accepts for example the following:
See for example this post for a solution using complex data.
Please attach your VI for improved help.
07-16-2011 06:14 AM
Altenbach,
I've attached the part of vi plotting the values from a pid controller..( all double values)
the XY graph named "Process Value, Set Value V/s Time" shows as cluster of 3 elements.
this works fine as is..
I want to plot 2 more elements in addition and for this I need to increase the size of the XY graph "Process Value, Set Value V/s Time" cluster size to 5...
I'm using LV8.5
07-16-2011 10:58 AM - edited 07-16-2011 10:59 AM
I have posted a snippet because I can't save back to 8.5. You are implementing this incorrectly. I believe what you want is what is shown below. Just add a new array and cluster for every additional plot you want to add. Let me know if this isn't what you want.
07-16-2011 01:05 PM - edited 07-16-2011 01:05 PM
First of all, your x-values are spaced equally in time, meaning there is absolutely no need to even use an xy graph. A plain waveform graph is sufficient. You could even use a chart.
From the way you were bundling five scalars in the first image of this thread, it almost seems to me that you intended using a chart all along, maybe?
Anyway, here is a comparison using xy graph, waveform graph, and waveform chart. Modify as needed. (there are many more ways to do this)
For the waveform displays, all you need is set the axis increment according to dt to make the x-axis correspond the the correct timing.
07-16-2011 08:33 PM
Greg,
the implementation u've shown seems to correct my errors..thanks..
Altenbach,
yours is more compact especially the chart implementation..
regarding the timing, in the vi, i just put a timed loop, in actual program, i have other sequences following, like reading the data from PID controller (modbus RTU ), and later i'm saving the data to an excel file, so i do need the timing info. (i've attached a snippet of data saved)..
Is it possible in your implementation to get the timing info as an array as well? ( the timing interval is not uniform in my case- although i dont know why)
07-18-2011 09:48 AM
@Palchen wrote:
Is it possible in your implementation to get the timing info as an array as well? ( the timing interval is not uniform in my case- although i dont know why)
Because you are running on a Windows machine, which is not deterministic. There is no guarantee you will get equal spacing in your timing.
07-18-2011 10:07 AM
Palchen wrote:Is it possible in your implementation to get the timing info as an array as well?
If the time spacing is not uniform, you need an xy graph and keep the timing information for each point.
07-18-2011 08:52 PM - edited 07-18-2011 08:53 PM
Altenbach....
I would never have thought of converting the array into complex no. the way u've done it..... I learnt something new........thanks a lot...
07-18-2011 11:44 PM
I'm using the implementation greg suggested mainly because I don't have to change too many things.
Although both implementations are solutions, I'm not able mark both responses - greg and altenbach- as solutions...