LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Dynamic Dispatch Subpanel

Solved!
Go to solution

Yes, I think creating the temporary queue is probably the way to go.  I'll give that a shot.  Thanks for your input.

 

Yamaeda, I think this would probably work too.  But for my use case I think passing the reference back to the caller is what I'm looking for.

0 Kudos
Message 11 of 13
(1,127 Views)

Instead of using a queue, could you have the subpanel VI (the dynamic dispatch VI, i.e. Viewer.vi) post it's own reference to the private data of the class and simply check for a valid reference from that data (a looping VI with a timeout) in the main VI prior to inserting into the subpanel?  I think in the long run, it's essentially the same thing.

0 Kudos
Message 12 of 13
(1,019 Views)

While trying my suggestion, I realized that class private data is still ByVal and not ByRef . . . This means that my suggestion won't work.  That would also explain why I've seen classes have just a single element queue that stored all of the class's data.

0 Kudos
Message 13 of 13
(1,007 Views)