07-28-2005 08:07 AM
07-28-2005 08:19 AM
07-28-2005 08:49 AM
I suggest you first look at the design pattern posted by Jim Kring (LabVIEW Champion and founder of OpenG) that can be found here.
I have used a structure that was inspired by that approach that may serve your needs.
In my case I had a controller that accepted commands via a queue and processed them in order. The controller then returned the result to the requesting entity vai another queue.
This was implemented by first creating a queue by which the controller accepted requests. The "clients" submitted there requests via that queue. Nothing fancy about this yet. Included in the data element transfered to this queue was a reference to a queue. This reference was filled in by the client when the request was submited. When the server completed the task requested, the response was returned the the client via the queue it provided.
It worked like a "self addressed stamped envelope". The server never knew who it was doing the work for. It just did the work, and passed the results back to whoever it was that asked for it.
Meanwhile, back in the client...
The Client would monitor its response queue waiting for its request to be completed.
I hope this helps,
Ben
08-01-2005 02:52 AM
hi, i 'm going to discover your vi, and i have a few questions to ask . First of all , i would like to know what type of data can you use with this commands, because in my case , i must send dats in long type for example. Secondly i must build a multithread communication , so i don't know if i must use this construction each time i have a thread, because my controler must communicate with many threads in a same time.
TheGame
08-01-2005 07:10 AM
08-01-2005 07:14 AM
06-23-2008 04:36 AM
06-24-2008 03:47 PM