06-09-2008 11:00 AM
06-09-2008 11:09 AM
06-09-2008 11:21 AM
06-09-2008 10:54 PM
06-10-2008 02:56 AM
turbot wrote:
Hi tbd, the method is great. What I original thinking is1. use only one queue and one notifier to handle all the comunication. The queue is for component to apply to main.vi. The notifier is used for reply and later for component to inform main.vi to start transfer. A component ID will be send in the header of the notifier.2. use one queue and multi notifier. Each component has one notifier, which used by component talk to the main.vi. The name of the notifier is the name of the component. This name will be transferred by the the queue in application at first time linkup.I am not sure which one is good.
Hi turbot,
I don't know which option is more appropriate for you application. Having each Component filter Notifications - so one response Notifier can be shared - seems awkward to me. Personally, I don't use Named Notifiers - I'd rather see a [unnamed] Notifier-wire routed to every place it's used because then I easily know which parts of the program are dependent on each other. However, you know your application and it sounds to me like you have a very good understanding of the fundamental principles - you can probably develop a better solution than I can suggest.![]()
Although it seems you won't need it, my example needs an important improvement! Late responses (after timeout) could be confused with subsequent "transactions". I think each "transaction" needs an unique "index" so late responses can be identified. This late-response consideration may apply to you solution(s) as well!![]()
Cheers.
06-10-2008 03:27 AM
06-11-2008 12:40 AM
06-11-2008 07:48 AM
Not sure if this helps but Jim Krnig poasted a design pattern here entitled "
" that may help.
Ben
06-11-2008 08:58 PM
06-12-2008 12:41 AM