05-15-2013 03:07 AM
As titled, What does it do? How do we go about working on a dynamic array on plotting on a XY Graph.
05-15-2013 03:24 AM
Sometimes it may possible that exact number of elements in an array cannot be determine at complie time but will be deternime at run time. Hence in that case dynamic array is used.
05-15-2013 04:44 AM
Hmm do not really understand what you meant. Care to explain more and in-depth?
05-15-2013 05:07 AM
A dynamic array is basically a random access growable or resizable array to which you can elements and from which you can delete elements. It is important to note that it is different to a dynamically allocated array as the dynamically allocated array has a fixed size.
What ranjeet is saying is that, during compile time, where more elements could be added to or deleted from an array, it may not be possible to determine the size of the array as the adding/deletion could be 'happening'. During run time however, all the data would have been added/deleted and hence we will know the size of the array. This is an instance where the array used could be a dynamic array. I think that is what he meant.
This thread shows how to do the plotting on XY graph http://forums.ni.com/t5/LabVIEW/dynamic-data-displayed-on-xy-graph/td-p/246730
05-15-2013 05:20 AM
here is the best explanation.
05-15-2013 09:26 AM
@Deathy wrote:
As titled, What does it do? How do we go about working on a dynamic array on plotting on a XY Graph.
You need to be more specific. Where did you see that expression.
(LabVIEW also has "dynamic data", which is probably something completely different).
XY graphs tak a large varity of datatypes (array of xy point clusters, cluster of x and y arrays, complex arrays, etc). If the array size should change often, I prefer to use complex arrays for the diagram simplicity.
05-15-2013 08:37 PM
My lecturer gave it to me as a suggestion for plotting mouse coordinates on XY Graph. But this is my first time hearing about it, so i got no idea what does it do? how to even make it in the first place etc.