LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send data from one vi to another Vi if sub vi is runninga while loop but main vi is waiting for the response

Solved!
Go to solution

Siva1103_0-1717571861855.png

The above image is for the SUb vi code there i am running the while loop but when the response indicator is getting the value but in main Vi i can't get the data is there any other way except using of global variable

0 Kudos
Message 1 of 7
(367 Views)

Hi Siva,

 


@Siva1103 wrote:

is there any other way except using of global variable


You already know how to use queues so what's the problem to use one more queue?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(359 Views)

There no problem with queue but I am seeing there is any better way to send the data i found Notifier i am using that which you will prefer in b/w Notifier and Queue

0 Kudos
Message 3 of 7
(349 Views)

Hi Siva,

 


@Siva1103 wrote:

which you will prefer in b/w Notifier and Queue


That depends on your requirements.

What are your requirements regarding "number of data sinks" and "number of data sources"? That's how queues and notifier differ (basically)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(347 Views)

I need a synchronizing operation so that is why i went for the Notifiers.

Regards,

siva

0 Kudos
Message 5 of 7
(324 Views)

Hi GerdW,

 

I need a synchronizing operation so that is why I went for the Notifiers.

Regards,

Siva

0 Kudos
Message 6 of 7
(322 Views)
Solution
Accepted by topic author Siva1103

Hi Siva,

 


@Siva1103 wrote:

I need a synchronizing operation so that is why i went for the Notifiers.


Usually queues allow for syncing producers and consumers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(309 Views)