LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected Notifier Behaviour

Hello,
I'm trying to use notifers to get my parent loop to tell a number of slave loops to initialise when asked.  The child loop sits in a 'Startup' state with a Wait on Notification until it gets a notifier to perform its initialisation. Once it has initialised it then tells the parent that it has done so.

This system works fine sometimes but other times the child loop does not appear to have seen the incoming message as it never returns a response etc.  Because it works sometimes and not others I imagine I am doing something wrong from a timing point of view etc, but I'm not sure what.

Also, the parent waits for 5s for a response before timing out. On timeout, the parent switches to the Stop state where it destroys the notifiers and stops.  The child then generates an error as the notifier is missing and stops itself. This all works fine.

Can anyone please advise on what I might be doing worng? I have attached a jpeg of my layout.

Thank you for any help you can offer,

Martin
0 Kudos
Message 1 of 5
(2,783 Views)

Hi Martin,

can you attach your vi? So i can try it here.

Mike

0 Kudos
Message 2 of 5
(2,780 Views)
Hi Mike,
Here it is - thanks for your help.
It might seem a bit over-complicated for what I'm trying to do but I'm using it as a way to try and learn how to use notifiers properly.

Thanks,

Martin
0 Kudos
Message 3 of 5
(2,776 Views)

Hi Martin,

initialize the error shift registers from your while loops. i think this will solve the problem.

Mike



Message Edited by MikeS81 on 03-03-2008 11:43 AM
Message 4 of 5
(2,767 Views)
Wonderful, that sorts it out perfectly.
Thanks very much for your help Mike, it's much appreciated.

Best regards,

Martin
0 Kudos
Message 5 of 5
(2,762 Views)