12-15-2011 03:46 PM
@Zekasa wrote:
Or does it mean that I have to write to the global only once?
Do a search on "Worm" global
12-15-2011 03:56 PM
Thanks Ray,
I was
when I saw ur reply I became
.
I will see the Gloabl worm, and hope to get more understanding.
thanks
12-16-2011 07:46 AM
Zaki,
There's no need to get angry.. I still learn many things from this forum. Expertise is a relative word..
Just do your thing, have fun, share & learn.
And it's okay to get upset every once in a while... Otherwise, we wouldn't be human, would we? 😉
Cheers,
RayR
12-16-2011 10:19 AM
Below you will find a link to the Worm Global.
Queues are fine and dandy, but I'm surprised nobody mentioned using a reference. Queues are probably quicker, but its worth looking into the reference solution. In the two attached VIs, the main calls a subvi. The subvi runs a loop where a variable changes on each iteration. That change is displayed in the main as it happens by using a reference and the Value property node. Property nodes are slower than queues, but the coding is simpler.
12-17-2011 03:05 AM
Hi tbob,
Thanks very much for your message. I will evaluate the possibility to use references. It looks easier indeed.
Thanks for the examples, that's reaaly nice to have a direct reading of an illustration of what you propose.
Thanks a lot.
I'll try it.
Cheers,
yoyo87
12-18-2011 04:40 PM
References are fine as long as you do not need to synchronize between when data is ready (available) and it reads only new data. If you pass only a single data, then a Notifier would also do the trick.
There are many choices to choose from. It usually depends on exactly how you want the sw to behave. Which brings another topic (that I gave up within the forum), which is "designing the software".