Wikipedia: In computing, multitasking is a concept of performing multiple task (also known as processes) over a certain period of time by executing them concurrently. New tasks start and interrupt already started ones before they have reached completion, instead of executing the tasks sequentially so each started task needs to reach its end before a new one is started. As a result, a computer executes segments of multiple tasks in an interleaved manner, while the tasks share common processing resources such as central processing units (CPUs) and main memory.
Multitasking is also implemented in the Arduino Finite State Machine. It is possible to have more than one active state, but handled on a higher level then describes above. Multitasking is made on the user level instead of the operating system level (not implemented in the core, but in the sketch). It is possible to start additional states from an already running (or active) state bij calling "TransitionToState". All of the active states, act on there own and use the common resources of the board. The code of all active states are handled in every loop of the board. All actions to be executed in a certain state are processed before handling control to another active state. As a result; take care of the use of delay() and endless loops in the code of the active state.
press here for more information
I've made 3 new commands for communication between the board and HMI, e.g.: CLT, TIM and RAM. Specially made for the monitor application. The CLT command is made for measuring the cycle time. Keep in mind that also the processing of the communication with HMI is part of the loop. TIM is a command for gettting the actual time from the board, just for checking the time. RAM is another command for sending the free RAM of the sketch. By means of the command, it is possible to monitor free RAM and check the loss of RAM by for example the use of linked list in the sketch.
Press here for info.
Can it be easier? Just configure your I/O, make your FSM, connect a com port at 128k and get testing!
It is now possible to download the VBA debug application. You don't have to code the VBA application, just add the serial com port to the shortcut and start the application. Standard speed on 128K. The debug application will setup the communication with the board. The standard functionality is available for monitoring, forcing en masking I/O tags. Also the current state(s) of the FSM(s) are presented in a checked listbox together with the current cycle time, the free RAM on the board and the current time of the board. Funny!
See also HMI Debug application.
Development of sketches and visual studio applications now under Visual Studio 2015 (was Visual Studio 2013). Just downloaded the software of visual studio and also the IDE for Arduino and Xamarin. No problems occured with the installation of the software. It seems that applications made under VS2013 are updated correctly and are working whitout problems.
Next step in development is making the sketch with the wifi shield more stable and make a start with the development of android based applications, communicating via tcp/ip. Goal is making a standard monitor on an android cell Phone, just like the already made windows based monitor communicating via a serial connection. Also one of the goals is increasing the scope of the windows based standard environment with the DA part of SCADA. Development will take place under VS 2015 for all platforms (so nice...).
I have made this site to share my knowledge of Arduino and learn more about Arduino/Visual Studio and Joomla. See also the introduction text for more information about this site. The site is not complete and will not always be on-line. For more information, you can reach me via the contact page.