08-25-2016 08:55 AM
hallo,
need to find references for the cluster in the Array.
Its a Array of cluster of Waveforms. Also the Size of array is variable during operation how can I get exactly the same size of References as the size of array.
The array is added as snippet.
thanks Akshay
08-25-2016 09:06 AM
While this nugget is becoming dated it should give you some ideas.
Since then new functions for Variants have been added that make the work easier.
Have fun!
Ben
08-25-2016 10:44 AM
thanks Ben,
I went carefully thr' the nugget,
but I need Reference to each of the element of the array. Then I take this reference and work on the contents , its a cluster this time it can be waveform the other.
Is there any way to get the array of references dynamically corresponding to the size of array...
08-25-2016 11:18 AM
No Sir!
An array can differ in value only. All of the properties of an array are teh same as is the reference to the elements in the array.
That nugget includes code and I spoke of the odd thing I had to do to figure out the size of arrays and the odd gymnastics required to get an element of an array where I set the visablity of the array to only show a sinlge element and then set the index such that the element I wanted to read was showing. The array element reference onyl applies to the top left element showing in an array.
If that complicates your life, please expalin what you are trying to acieve, and post your code that does not work and someone here may be able to offer ideas.
Ben
08-26-2016 08:33 AM
Hallo Ben,
yes I saw that. But I do not need the values of the array as of now. I need Reference to these values , so that I can feed them to my AnyTypetoTDMS_Converter.vi which writes the data in a tdms file.
I have an Array of Cluster of Waveforms. My Vi works great with "Cluster of Waveforms" now it has to work for an Array of"Cluster of Waveforms". The VI is write protected and I can only provide it References to the data and not Data.
This way if it can work for any cluster or any data.
regards,
Akshay
08-26-2016 08:37 AM
Latter in that same thread there was mention of OpenG and MGI attempts at the same thing. You may want to look at those for inspiration and see how they approached the challenge.
Offering what I can and admitting my limits.
Ben