LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with asynchrous called VI's in Labview NXG

Hi everyone,

 

I have some trouble with communication between asynchronous called VI’s in Labview NXG 4.0.

I try to use a Queue to signalize when a VI was closed. I find out that this has something to do with the option: simultaneously call of invariant VI’s in open VI reference. Here I got an error of invalid input parameters. If I deselect this option it runs as expected. I add an example of this behaviour.

0 Kudos
Message 1 of 5
(2,359 Views)

In addition to my comment above, more generally, is there a way to communicate between parallel tasks in Labview NXG right now? I try to find a solution with queues, but I don’t find a solid workaround.

0 Kudos
Message 2 of 5
(2,239 Views)

Hello Tofr4n,

 

Why you didn't use event structure to detect VI closing?

Keep in mind that in order to share queue data between VIs in the same project you should give it name.

 

Additionally I suggest you to try this method too.

 

Could you please describe the task more detailed?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 3 of 5
(2,083 Views)

@VA.KI wrote:

Hello Tofr4n,

 

Why you didn't use event structure to detect VI closing?

Keep in mind that in order to share queue data between VIs in the same project you should give it name.

 

Additionally I suggest you to try this method too.

 

Could you please describe the task more detailed?


I don't think you need to give the queue a name in order to do that.  In fact, naming a queue can end up biting you if you have a typo, or (even worse) if you forget and name two queues the same.  I usually stick all my queue refs into a global before my QMH even starts so I can distribute it as needed.  I have also confirmed that queues - named, or otherwise - work just fine in NXG.  I'll see if I can take a look at the code when I get home, where I have LV NXG 5.0 Community Edition installed.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(2,079 Views)

I'm actually not quite certain what your code is supposed to do.  To me, it appears to be doing what you programmed it to do, so I need to know what you wanted it to do.  Thanks!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 5
(2,044 Views)