10-08-2014 09:03 AM
Hi,
I have a main vi which uses user events to communicate with child vi's. The problem, At the exit of the program Main vi (Parent vi) generates user event to save settings of all the child vi's and child vi's send the settings, If i have 10 child vi's i recieve settings of only one child vi and some emty variant. So, how to avoid this kind of a problem using queues, If any efficient solution please to advice.
10-08-2014 09:11 AM
Events have queues. So that isn't your problem. You will need to share some code if you want us to help you diagnose this error.
10-08-2014 09:21 AM
Hi,
I had a question, for eg: if i have 50 child vi's on FP, and if i generate a user event from main Vi, which child vi will respond first? When i generate user event in Main vi, how does actual reach to all child vi, I mean to say one by one or simultaneous?
10-08-2014 10:24 AM
Assuming everybody is registered for the event, everybody will get the event at about the same time.
10-08-2014 12:01 PM
10-08-2014 12:58 PM
@jay0909 wrote:
Hi,
Thanks a lot, ok. In the above example if 50 child gets event at the same time. How do v actually recognise all 50 response from child vi's? So, what's the method to get response one by one from all child vi's ?
You could generate response events, or if you want to wait for all to finish you can use a Rendevouz e.g.
/Y
10-08-2014 02:51 PM
10-08-2014 06:41 PM
Ok, that doesn't make any architectural sense. You have a single instance of a VI closing all of the other instances of the same VI? So what makes that one so special?
10-09-2014 12:54 AM