Weekly report 11 June 2010
This week I have implemented functions (hybm_gen_maindgr and auxiliary functions), which generate Xcos block diagram (in the form of scs_m structure) from description of hybrid automaton's state equations (ODEs) and transitions. An example block diagram generated for a standard "two water tanks" hybrid automaton [1] is shown below.
I sent all code to Gerrit.
However I found a problem with simulation of diagrams containing AUTOMAT blocks (in particular, diagrams, generated by hybm_gen_maindgr). For example, if one drags CONST_m and AUTOMAT blocks to diagram, sets CONST_m value to [0;0;0], connects it to both inputs of AUTOMAT block and starts simulation, then simulation fails with messages "Undefined Function type" in Scilab console. I sent description of the problem (with my conjectures about it's source) to Yann Collette and Antonie Elias. Possibly related problems are described in bug reports #7213 [2], #5151 [3].
Plans for the next week
* Implement "parsing" of hybrid automaton state diagrams created with help of utility blocks (CSB/DSB/TGB).
* Integrate state diagram parsing and block diagram generation into HAS block.