LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronising events [help]

I need some help [like I say in subject] because i cannot synchronize 2
events.
I'm sorry for my english, I'll try to be more sharp and correct i can.
I have to handle a "lock" of a measurement bench, this doesn't matter
really, and until the events come i have do to a while cycle, when the
event come a variable (Lock) change its value from false to true.
if I use local variables associated to Lock for stopping the cycle it
doesn't work properly, i mean that with the same frequency it happen
that the cycle could stop immediatly as cuold stop properly, sometimes,
but with a frequency like every 7 or 10 events labview continue cycling
and when it happen there is no way for coming out of the cycle.
tx for attention
Andrea
PS I tried to use semap
hores but i cannot understand how they exactly
work I think, infact nothing chenghed.


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
0 Kudos
Message 1 of 3
(2,705 Views)
First, let me say that your English is good. Since I have not seen your code, I'm not 100% sure of what you are trying to do. Here are a few comments, if you can not pass data between using local variables you might try changing them to global data. If your using mutiple while loops, each of them are competing for resources. To slow things down just a little, put a Wait state in each while loop which will give each loop a little more time. If this does not help and you do not mind sending a copy of your code to look at or if you have other questions, you can email me at WilliamSimmonsSr@SimmonsSoftware.net

William
0 Kudos
Message 2 of 3
(2,705 Views)
"William Simmons" wrote in message
news:506500000005000000E46D0000-1017707437000@exchange.ni.com...

> [...]Here are a
> few comments, [...]

tx a lot, I'lloi try to slow down the cycles, it may run, otherwise I
will take your words very seriously and I'll write yuo a private mail,
are you worry now?
😉
tx again
Andrea




--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
0 Kudos
Message 3 of 3
(2,705 Views)