Hello everyone,
Many thanks for all your suggestions. As many of you suggested, the
answer was to use 'Sample and Hold' objects.
Thanks once again,
Warren
Many thanks for all your suggestions. As many of you suggested, the
answer was to use 'Sample and Hold' objects.
Thanks once again,
Warren
gvg@lvld.hp.com / 970-679-2305 / FAX 970-679-5971
to: Warren Pickles
date: Friday, 21 March 1997 0823 MST
Sir:
Got a simple example program I can inspect?
[%%] regards -- gvg
--------------------------------- cut here ----------------------------------
> Hello everyone,
>
> I'm confused about execution flow in VEE. I had always understood
> that once an object has received data at all its input pins, and its
> sequence input pin has been 'pinged', it will execute. It may not be
> the next object to execute, but it WILL execute.
>
> However, I have been working on a userfunction that contains a
> userobject (called 'SaveResultsToFile') that meets the above criteria
> but never executes. As soon as the sequence input pin on
> SaveResultsToFile is pinged, the userfunction exits. All the input
> data is there. There are no Exit UserObjects until after
> SaveResultsToFile.
>
> Does anyone know of any circumstance where an object will not execute
> despite all its inputs being satisfied? Perhaps I have a subthread
> somewhere that is holding up execution in some way. Perhaps my
> assumptions (in the first paragraph) are incorrect.
>
> I have found a workaround, which is to have all the data input pins on
> SaveResultsToFile being fed by Get Global objects, the globals being
> set earlier in the userfunction. However, this is messy, and bad
> programming practice, and anyway I would prefer to understand what's
> going on.
>
> Unfortunately the userfunction is rather complicated, so I can't
> reproduce it fully here, but here is a rough sketch. I would
> welcome any thoughts.
>
>
> +-------+
> | Until |
> | Break |------------------------+
> +-------+ |
> | +-------------------------------+
> | | Main part of userfunction, |
> | | which captures readings from | data
> | | an instrument. |----------+
> | | At some point, this loop | output |
> | | breaks. | |
> +-------+ +-------------------------------+ |
> | |
> +------------------------------------------------------------+
> | |
> | +-------------------+
> | | userobject |
> +----| SaveResultsToFile |
> +-------------------+
>
>
> The data output is being continuously generated, i.e. updated with each
> reading, but this shouldn't cause my problem.
>
> Regards,
>
> Warren Pickles
> M/A-Com Eurotec, Cork, Ireland