Results 1 to 2 of 2

Thread: Process-stateMachine

  1. #1
    Join Date
    Feb 2011
    Location
    Slemmestad, Norway
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Process-stateMachine

    This is the first time i have posted any thing on this forum.
    I do hope this is the right way.

    The reason is becaus I'am going to write an application where I shall make a process doing the following:

    The process can be cycled up to 6 times.

    1.)_The process starts by activating LED #1.
    2.)_After 30 seconds, LED #2 and LED #3 are activated.
    3.)_After 15 additional seconds LED#4 is activated.
    4.)_Hold this state for (x) minutes. (e.g. a value read from variable xValue).
    5.)_After (x) minutes deactivate LED#2, and activate LED#5.
    6.)_ Set TIMER#01 to timeout(15, 30 or 45 -> selectable minutes).
    In the meantime do the following:
    7.)_30 seconds after step 5 deactivate LED#3, LED#4 and LED#5.
    8.)_Activate LED#6
    9.)_After 5 minutes, deactivate LED#6
    10.)_Wait until TIMER#01 has timed out.
    If (Cycles -= 1) > 0, repeat the process, else
    11.)_Deactivate LED#1, Process done.

    Is QStateMachine the way to go?

    Can someone point me in the right direction?
    Examples would be much appreciated.

    rgds, John Eric (newbie++)

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Process-stateMachine

    http://wiki.forum.nokia.com/index.ph...tateMachine%3F

    http://doc.qt.nokia.com/latest/state...factorial.html

    There are many more in the "statemachine" directory of the "examples" directory that comes with the Qt distribution.

Similar Threads

  1. Determine the Process ID
    By Jimmy2775 in forum General Programming
    Replies: 5
    Last Post: 7th October 2011, 09:16
  2. Polling in a StateMachine-driven application
    By MarianAldenhoevel in forum Qt Programming
    Replies: 0
    Last Post: 11th January 2011, 09:18
  3. how to process hexadecimal
    By mohanakrishnan in forum Qt Programming
    Replies: 2
    Last Post: 20th November 2009, 04:33
  4. How to communicate Qt Process with non-qt process
    By nrabara in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 15th February 2009, 21:01
  5. How to detect a process ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 19th April 2007, 13:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.