SCALE-RT

Modeling Guidelines

Top  Previous  Next

Please ensure to create the Scicos® model in accordance with the following 'Modeling Guidelines'. Failure to follow the guidelines may result in the model not working correctly in real-time.

 

1.Only Scalar input and output are permitted.

 

If you have a vector as an output, please use the de-multiplexer to create the scalars out of your vector.

       _img28

 

2.Use of Sample Time clocks inside of the model.

 

If you use a sample time clock in the model please be aware that everything after the sixth position after the decimal point of the frequency and the offset is dropped. This is necessary to ensure that the sample time clock works accurately in the real-time model.

 

3.Forbidden blocks in real-time models.

 

Due to the code generation in Scilab/ Scisos Version 4.1.2, some blocks do not work in real-time simulation. The blocks which do not work properly are:

 

       

The activation clock :  to solve this problem please use the sample time clock.

       _img29 _img30

       

 

The following event blocks do not work.

       _img31_img32 _img33 _img34

 

       

Blocks which are not working but have no use in real-time simulation.

       _img35_img36 _img37_img38_img39

       

The threshold palette does not work.

       _img40

In addition the sample time clock is not working in some cases. For example if you have two sample time clocks in your model and the frequency and the offset of each sample time clock are equal, you might have problems in your real-time simulation.
4.Purging the model before code generation.

 

If you change the model by deleting and inserting some blocks, you should purge your diagram before generating the real-time code. This can be done manually by selecting 'Purge'  in the 'Diagram' pop down menu in the Scicos® window.