08-10-2007 03:44 PM
Hi Raghunathan, Gerardo,
Re: Globals, I'm a big fan of the structure [relatively] recently labeled "Action Engine" (which may be the same thing as a "Functional Global"?) - but try to avoid passing data via globals as they tend to make logic harder to understand & debug. To be honest, I'm not 100% sure I understand Raghunathan's application, and maybe there's a good argument for using a Global here!
Cheers!
08-10-2007 06:22 PM
08-10-2007 09:35 PM
08-16-2007 07:09 AM
08-17-2007 07:32 PM
08-18-2007 06:40 AM
08-18-2007 06:53 AM
08-18-2007 04:23 PM
@Raghunathan wrote:
ANd what I did was to configure the numeric queue as single element and made the Main.vi run at 500ms loop and the sub panel VI which was dequeing the numeric at 1000ms. But I found that no data was lost as I expected - the enqueing was happeing at 500ms and dequeuing was at 1000ms with the queue size at single element.
I don't think I understand how thats possible, unless there is a background buffer....
08-18-2007 04:45 PM
@tbd wrote:
A single-element queue would work
A single element queue could work - but the Enqueue time-out (in Queue Main) would need to be set to something other than "wait forever". As is, the Queue-main timed-loop will "hang" until the queue is emptied by SubVI - so Main only runs as fast as SubVI.
08-18-2007 08:52 PM