LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Occurence references

Hi everybody,

i need a dynamic array of occurence refnums.

If using a FOR-LOOP within an Generate Occurance.VI i will get a array of
identical refnums.

If i use multipe Generate Occurance.VI´s with BUILD ARRAY it works.
But this is´t not dynamic.

Any suggestions????

Thank´s
0 Kudos
Message 1 of 2
(3,095 Views)
Hello,

Create a reentrant VI that outputs an occurence refnum returned by Generate
Occurence function. Every time you need a dynamic refnum, open a reference
to the reentrant VI and call it by reference to get a new refnum. The
occurence refnum will be destroyed when you close the VI reference that
created it. I suggest you make a cluster {occ. refrum, VI refnum} to keep
them together so when you are done with a occ. refnum, you close the VI
refnum.

Jean-Pierre Drolet


"Andreas Franz" a écrit dans le message news:
3a2fa20d@newsgroups.ni.com...
> Hi everybody,
>
> i need a dynamic array of occurence refnums.
>
> If using a FOR-LOOP within an Generate Occurance.VI i will get a array of
> identical refnums.
>
> If i use multipe Gener
ate Occurance.VI´s with BUILD ARRAY it works.
> But this is´t not dynamic.
>
> Any suggestions????
>
> Thank´s
>
>
Message 2 of 2
(3,095 Views)