LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 8.2 - Notifiers and multiple loops

Hi.
 
I have a question with Labview 8.2 and notifiers.  I have a front panel object that has some controls.  These controls are serviced by a single while loop and when a user makes a change a notifier is sent to other concurrently running loops to inform of the change.  I.e., I have a shutdown button, which services multiple while loops, however, I cannot terminate the program immediately, on this shutdown command certain actions must be performed - hence the notifier to warn all running loops to shutdown safely.
 
I have been told that as long as notifiers have the same name, you do not need to wire them to the multiple loops, however, this is not working.  Can I have multiple loops, with loops within them that can respond to external commands by notifiers?  or should another method be used?
 
Mike
0 Kudos
Message 1 of 5
(3,353 Views)

Just to clarify, The notifier demultiplexer.vi that is on the examples directory shows that you can have multiple loops with multiple generations of the 'obtain notifier vi' however, when i try it, I get an 'invalid reference' unless all obtain notifiers have different names.

 

Mike

 

0 Kudos
Message 2 of 5
(3,350 Views)
I have no issues running 'examples\general\notifier.llb\Notifier Demultiplexer.vi' it acts as aspected.
Could you post your not-working VI?

EDIT: Did you connect a false-case to the 'create new?' input of the obtain notifier? If you do so you must make sure that the notifier is created before calling the obtain notifier. This is a technique used to control the existence of a module.

Ton

Message Edited by TonP on 10-02-2006 01:06 PM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 5
(3,344 Views)

Hi.

 

If you put the 'retain wire values' on, then run the example, stop the code, then view the notifier wire it will show 'invalid ref num'.    However, I think I am on my way to sorting the problem, i have changed the timeout values in the 'wait for' section at it appears to have gained a lot more functionality.

 

Mike

 

0 Kudos
Message 4 of 5
(3,340 Views)
Yeah that's strange,

but it works right?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 5
(3,331 Views)