04-10-2012 08:17 AM
You should spend a bit of time to learn about producer / consumer design pattern with events.
Basically, you would have two loops running in parallel, where the top loop (producer) handles the events and the consumer loop (consumer) executes the state triggered by the events.
The messages from the producer to the consumer loop are typically passed using a queue or notifier.
The reason I am mentionning this is so that your program can scale and to ensure a better response from the GUI.
It is worth investing time to learn what I suggest. You'll be using that architecture more often than you can imagine.
04-10-2012 10:02 AM
Can you please take a look at another topic of mine about plotting too? I got a problem with defining axis names and plotting I got stuck now.
Thanks