05-29-2012 08:08 PM
I'm trying to create a clusterA with several string and numeric fields BUT additionally I need to include an array of clusterA variables. Is this even possible?
Is this possible with OO in LabVIEW86?
Thanks!
<<-N->>
Solved! Go to Solution.
05-30-2012 01:26 AM
The direct answer to both questions is no. LV does not allow recursive data types.
That doesn't mean, however, that you can't do it entirely. You can do it, but you lose some type safety:
05-30-2012 02:09 AM
Or you can simply include a reference to the same data type as part of your cluster data, that should work too although I haven't tried it.
Required some extra work (as all the possibilities do) but if it's absolutely critical to have, then it might work.
Shane.
05-30-2012 05:40 AM
You can create a clutser B which hold Cluster A and an array of cluster A ... but it'd be more efficient to somply have an array of cluster A and use the 1st as main. 🙂
/Y
05-30-2012 11:18 AM
Thanks everyobdy for your prompt response!...
I'll try these approaches
<<-N->>