LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization Refnums and Shift Registers

Here is the problem. I am using synchronization VIs (queue and notification).
If I try to build a state machine and pass the queue or notifier refnum
to another state the VIs that use the refnum will get an error. I have no
idea why these refnums cannot pass through a shift register. I have also
tried to pass them using local variables and this does not work either.
0 Kudos
Message 1 of 2
(2,674 Views)
Do you create the reference in a subVI?
You can't create a notifier/queue in a subVI and pass the refnum to the
caller; the object is destroyed when the subVI exits.
Create the object on the diagram where is the state machine.

Jean-Pierre Drolet


"Jim Kring" a écrit dans le message news:
3a1c5c43@newsgroups.ni.com...
>
> Here is the problem. I am using synchronization VIs (queue and
notification).
> If I try to build a state machine and pass the queue or notifier refnum
> to another state the VIs that use the refnum will get an error. I have no
> idea why these refnums cannot pass through a shift register. I have also
> tried to pass them using local variables and this does not work either.
0 Kudos
Message 2 of 2
(2,674 Views)