Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > WinFX General

Windows Workflow Foundation appropriate to use for operate real hardware?

 
 
Thread Tools Display Modes
Old 11-08-2006   #1 (permalink)
mswlogo
Guest


 

Windows Workflow Foundation appropriate to use for operate real hardware?

I've been looking at various systems, State Machine Compilers, the
state Pattern, and Windows Workflow foundation to control some
hardware. The hardware consists of some simple robotics, lasers, valves
etc. We have already completed a lower level embedded system that
actually operates the hardware. But we need to coordinate the system
with some sort of state machine. Like Running, Idle, Initializing,
Faulted etc. Some individual devices will need sub-state machines as
well (like laser will need it's own Initializing, Warming up, Faulted,
etc.).

I've played with the samples of Windows Workflow. Especially this
sample.

http://www.odetocode.com/Articles/460.aspx

It seems like a good match except that things seem geared towards
multiple instances of statemachines. One for each record in a database
(for example one for each bug) and being able to serialize and
deserialize that state. This is not needed in my case.

Allowing the state machine to be built from XML is a plus (possibly a
big plus) but not absolutely required. We may have some machine for
example with 2 lasers and scientists could consider that without
recompiling.

The system would only have one instance of the highest level state
machine and probably one instance of several sub-state machines.

One other concern is performance. I tried firing events that change
state quickly at a statemachine. Once I fired states faster than say
1/5th of sec things would start to crash. The speed issue is probably
not a problem and might be worked out.

One other thing would be memory and objects. I would be having one
master state machine and it may loop around in this state machine for
days or weeks. I'm just a little concerned if it was designed not to do
this sort of thing.

I've used the state pattern before and it's horrible to maintain. The
statemachine compilers I found are non standard, open source, barely
supported. A direct implementation of a statemachine can get messy.
It's really nice to get a state machine diagram that I can show
scientists using the Workflow stuff. They can mark it up etc.

What do you folks think?

Thanks

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
any way for PowerShell and Windows Workflow Foundation to integrate? Zhao, Q. Alex PowerShell 0 07-20-2006 01:02 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50