Ansys Learning Forum Forums Discuss Simulation Embedded Software How to include text values for constants in SCADE Reply To: How to include text values for constants in SCADE

Jair Gonzalez
Ansys Employee

 

 

Hello,

It is possible to create a textual declaration of the constant, just adjusting the file to met the scade language syntax, as shown in the figure below where the datain.scade file has the declaration of the const with name DATAIN, of type samples, equal to the values listed between brackets. 

 The datain.scade files had to be added to the const.etp project. 

After the file insertion, the tool will check the textual declaration and will issue an error in the output window in case the syntax is not correct. By the way, it would be possible to write scade textual models following this procedure. For details, check the “SCADE Language Primer” that is found in the SCADE/help directory in your installation