LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Queued State Machine as Parellel Process Enabler


PJS wrote:

Ben,

Isn't there a website that collects old versions of pages on the web?  I don't remember that name of it, nor have time to research today, but maybe there is an archived version there?

-p 


 

I never heard of that before your post. I did read a post by Macahel (?) saying they managed to put most of the non-Lounge post back togtehr by usings someones off-line backups. I believe he also said that they go back and find stuff if necessary.

 

But I can almost summarize that thread.

 

I put forth the idea that the the Queued SM (the version that uses a stack of states that need to execute and in what order) was a throw back to when we had to code using a stack and prevented task that could execute in parallel to wait in line.

 

Most of the other replies were along the lines of "how could you say such a thing?", "I swear by it", and "I would not code without it." ...

 

In a thread from earlier this week we touched on that idea again and this time I was suprised that my "The emporer has no clothes" comments did not make me feel like I was a "voice crying in the wilderness".

 

It is like many other things in programming, were the comfort of the developer plays a big role in how things are implemented. In my case I love brining up the task manager and seeing all of my CPU contributing to the work.

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 31 of 37
(2,304 Views)

I tend to agree with the lava article, although my reasons differ a bit.  I seperated the GUI for one simple reason, Windows, to date, does not allow for a single workspace for multiple users.  IT departments are getting more restrictive, and as such, require a user to log off a terminal when done.  They are not allowing us to use 'common' user names as passwords.  By having the test engine as a service that is launched as a system activitiy, the GUI 'plugs-in' to display the data regardless of which user is logged in.  Thus avoiding issues with applications closing after a forced logout.

 

But at the core, the basic question of whether to use one, or more than one loop in a program really depends on what the programmer is doing.  I have several of the Queued State Machines (QSMs) that are running as sub-vis, and as such are given to handling medium level tasks where decisions and order of execution play a part, but they never rely or include an event structure to operate.... Check that... I have one that reads data from a RS-232 port that is event driven, in that it waits (till timeout) for a set number of bytes at the serial port (event callback) before executing.

 

Of course many people smarter than I could hash these arguements out for a long time.  My advice, be aware of different programming architectures and use what makes sense. 

Message Edited by PJS on 11-05-2009 01:05 PM

Paul
Message 32 of 37
(2,301 Views)

ahhhh, had a bookmark and yes they do have some archives.

 


Paul
0 Kudos
Message 33 of 37
(2,295 Views)

PJS wrote:

I tend to agree with the lava article, although my reasons differ a bit....


Kudos for voicing another view point!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 34 of 37
(2,294 Views)

Ben wrote:

That thread (along with about 500 of my posts Smiley Mad Smiley Sad ) were lost in the LAVA crash of 2009.

 

Ben


 Correction. Those posts are still there. They aren't lost. They are just not assigned to your username. You can do a focused Google search by adding site:lavag.org after your search terms.

 



Michael Aivaliotis
VI Shots LLC
Message 35 of 37
(2,289 Views)

Thank you Michael!

 

That indeed worked. THe the Thread in question can be found here Is the day of the "Queued State machine" behind us?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 36 of 37
(2,284 Views)

Thanks!

Learn something new everyday


Paul
0 Kudos
Message 37 of 37
(2,271 Views)