Jump to content

Process Spawning Design Pattern


Recommended Posts

  • 3 months later...
  • 4 weeks later...

Jim,

On a recent project I designed a CAN "server" that would actually spawn new engines for each CAN card configured using a configuration tool. Each engine would be initialized with User event references to hook into any main program. The engine would then take care of sending/receiving event driven messages or periodic messaging.

I have to say that Michael Aivaliotis' NI week presentation opened up my eyes to this new idea in coding style. I think my next foray will be into the wonderful world of GOOP :)

:beer:

Derek Lewis

Link to comment
Jim,

On a recent project I designed a CAN "server" that would actually spawn new engines for each CAN card configured using a configuration tool.  Each engine would be initialized with User event references to hook into any main program.  The engine would then take care of sending/receiving event driven messages or periodic messaging. 

I have to say that Michael Aivaliotis' NI week presentation opened up my eyes to this new idea in coding style.  I think my next foray will be into the wonderful world of GOOP :)

:beer: 

Derek Lewis

3432[/snapback]

GOOP and Process Spawning are can be used together very nicely. For example, when spawning multiple processes (multiple instances of the same process), it is often a good idea to create a new instance of a GOOP object associated with it for managing the instance's data. Usually, I accomplish this, by doing the process spawning inside of the GOOP object's constructor. I pass the process a reference to the GOOP instance, and then the process can access the instance's data store, using that reference. I store the spawned VI's reference inside of the GOOP data store, so that a call to the GOOP destructor can kill (Abort) the spawned VI, if it can't stop it using some form of messaging.

Link to comment
Very Interesting Jim,

I definitely need to look into GOOP design.  Do you know of any good websites out there that explain GOOP and its functionality?  I downloaded the OpenG GOOP toolkit but a lot of it doesn't make sense to me.

Thanks,

Derek Lewis

3439[/snapback]

Plenty of links here. Some of them might even still work... you might want to read up about OO design methodologies and UML notation, if any of it is unfamiliar.

Link to comment
Very Interesting Jim,

I definitely need to look into GOOP design.  Do you know of any good websites out there that explain GOOP and its functionality?  I downloaded the OpenG GOOP toolkit but a lot of it doesn't make sense to me.

Thanks,

Derek Lewis

3439[/snapback]

Here is a page at OpenG.org which is dedicated to GOOP information:

http://openg.org/tiki/tiki-index.php?page=GOOP

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.