04-01-2015 09:38 AM
Hello!
When i start slave Vi by asynchronous call, slave Vi do not stop! Slave Vi is part of alarm system. I can not do any thing whith this problem (((
Thanks!
04-01-2015 09:50 AM
Use a named queue to send a shutdown.
Do not spawn multiple instances if only one is required (read: spawn only when you press the button once, not repeatedly).
Norbert
04-01-2015 09:51 AM
Why is your Slave VI in a loop? Don't you want it to execute once, then exit? Removing the While loop should fix this problem. However, notice that your calling program also has a loop that calls it over and over again, as fast as it can. Seems to me you are spawning multiple instances of the same VI, all of which could run multiple times. Is this what you intended?
BS
04-01-2015 09:58 AM - edited 04-01-2015 10:01 AM
It's working just fine, but when the boolean is true you are calling the Speak Text777.vi as many times as fast as you can. Try an event structure instead of a case structure.
04-01-2015 10:08 AM - edited 04-01-2015 10:09 AM
Thanks for all for fast answer!
I remove loop, and nathing happens.
I think that happens very quickly repeated call.
Can you give an example of how to solve it?
Thanks a lot!
p.s. i see , now try
04-01-2015 10:45 AM - edited 04-01-2015 10:54 AM
Ok, may be i do some thing wrong.
when boolean x > y is true alarm must go ON always , when boolean x>y falshe , alarm must shut down.
And clock must go on ))))
What i do wrong?
Thanks!!!
04-01-2015 11:06 AM
At the bottom of this post, there is a very useful list of on-line tutorials that you should view. It will teach you the basics that you need to avoid the problems you have been having (such as leaving the default timeout value of -1 = more than 7 weeks in your Event loop).
Bob Schor
04-01-2015 11:17 AM
Thanks a lot!
04-01-2015 02:20 PM - edited 04-01-2015 02:31 PM
OK lets analize that code and explain what you did wrong.
In the caller Boolean is not latched and the loop is greedy So you queue up about a bajillion calls to the non reenterant vi. they each must wait for the previous call to finish before they can run.
Don't do that! just latch the boolean.
[Edit} I should have read the rest of the responses first
04-01-2015 03:20 PM
Hello again! )
What now not right?
slave Vi do not start.
Thanks!!!