I think setting this parameter may help the issue but the initial
issue regarding the removal of the sequence structure and the variable
not clearing could be due to data flow. By using the sequence
structure you are forcing the execution flow. I think what was
happening is that you were getting a
Thanks for the response, the system works as expected now.
Try setting the 'ignore previous(F)' flag to true.
Yes, that's how they are normally used. You can pass the notifier
reference via wire or global, or obtain it by name in each VI.
HI! List,
Can the notifiers be used in two different VIs?
TIA,
Rachana
From one of your other postings, I see that you're using LV 7. I would
rceomend using the event structure. There's a couple of shipping
examples that you cna look at.
Thanks for the answer. But can you show me also a sample on notifier
and occurrence, i want to learn how to use them.
I only got the standard edition. My program requires the execution of
many loops concurrently and when i placed more than 3 loops, my
data(from GPIB) cannot be received by LabVIEW. Thus i need to improve
on the effieciency of my current program.
So what happens when you put WAIT functions in the loops?
If i put wait functions in the loop i manage to receive more queries
but not all of them.
eg. i got queries and commands like id?, trm?, sqb?, etc. so
with more loops i cannot read the id? (first one) i tried many ways
to increase the effieciency of the loops and i manage to receive some
(eg. up
I would suggest using a WAIT function for 100 mSec or so in the main
loop. If you don't have that, the main loop will poll your button at
a million times per second or more. There's no need to poll the thing
that fast - it will starve any other loops.
It means that you will respond to the QUIT
be cancelled easily.
4) It is not absolutely necessary to transmit the reference number of
a notifier to the different parts of code. You can use its name.
There is a description of notifiers in
.\examples\general\notifier.llb\Notifier BASICS Part 1.vi
If you only need to synchronize two
Thanks for a good answer. Few more things:
Do occurences use CPU time by polling? If not then I think I can leave
the code in the form it is now, and that is with occurences. I am
using occurences to sync two pieces of code and thats all, no data
passing etc.
Comments?
CPU goes to sleep when waiting for an occurence -- same as for
notification. No reason to change your code for that.
Thanks a lot, for your help
I was wondering if there is a preference amongst Labview Gurus
regarding the use of Notifiers vs occurences. We have an application
that uses occurences. Someone suggested that its better to use
notifiers but didnt give reasons. Can anyone lay down the pros and
cons for both schemes.
16 matches
Mail list logo