LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit the LabVIEW Wiki Application Design & Architecture Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Process Spawning Design Pattern
Jim Kring
post Aug 25 2004, 11:48 PM
Post #1


Changing the world, one VI at a time.
*****

JKI
Posts: 1692
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


Hello, all. Michael Aivaliotis gave a good NI Week presentation on process spawning. One factor to consider is the apparent limitation of LabVIEW in that it cannot instantiate new VIs when the root loop hangs (please the bug posting here for more info).

Do any of you out there use this (Process Spawning) design pattern?

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Aug 25 2004, 11:48 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
hmqi
post Dec 15 2004, 08:45 AM
Post #2


5 more posts to go!


Member
Posts: 5
Joined: 15-December 04
Member No.: 1236
LV:6.1
China


Do you have the ppt file about his topic?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Dec 15 2004, 03:10 PM
Post #3


Changing the world, one VI at a time.
*****

JKI
Posts: 1692
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (hmqi @ Dec 15 2004, 12:45 AM)
Do you have the ppt file about his topic?
*


Michael Aivaliotis gave the presentation. Send him a request.

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Dec 15 2004, 04:30 PM
Post #4


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2363
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


QUOTE (Jim Kring @ Dec 15 2004, 10:10 AM)
Michael Aivaliotis gave the presentation.  Send him a request.
*

Here:
Process Spawning

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
hmqi
post Dec 16 2004, 12:52 AM
Post #5


5 more posts to go!


Member
Posts: 5
Joined: 15-December 04
Member No.: 1236
LV:6.1
China


QUOTE (Michael_Aivaliotis @ Dec 16 2004, 01:30 AM)

Thank you very much! It's a great topic!


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
bariman8
post Jan 9 2005, 01:31 AM
Post #6


Active
*

Member
Posts: 14
Joined: 24-August 04
Member No.: 620
LV:7.1


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 smile.gif

beer_mug.gif

Derek Lewis


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Jan 9 2005, 02:32 AM
Post #7


Changing the world, one VI at a time.
*****

JKI
Posts: 1692
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (bariman8 @ Jan 8 2005, 05:31 PM)
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 smile.gif

beer_mug.gif 

Derek Lewis
*


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.

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
bariman8
post Jan 10 2005, 01:35 PM
Post #8


Active
*

Member
Posts: 14
Joined: 24-August 04
Member No.: 620
LV:7.1


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
tetrarch
post Jan 10 2005, 02:04 PM
Post #9


Active
*

Member
Posts: 11
Joined: 18-August 04
Member No.: 607
LV:7.1


QUOTE (bariman8 @ Jan 10 2005, 02:35 PM)
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
*


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.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Jan 10 2005, 04:59 PM
Post #10


Changing the world, one VI at a time.
*****

JKI
Posts: 1692
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (bariman8 @ Jan 10 2005, 05:35 AM)
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
*


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

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

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 04:40 AM