Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How are inputs and outputs names of a SCADE operator sorted? Is it possible to sort them alphabetically?

0
Posted

How are inputs and outputs names of a SCADE operator sorted? Is it possible to sort them alphabetically?

0

The I/O of SCADE operators are sorted in the declaration order. The user has the possibility to modify this order, but this should be done manually (drag-and-drop). The order of the I/O in the interface of a node in the Framework view represents the order of the I/O when the node is instantiated. Besides, the SCADE openness to TCL scripting makes it is easy to create a new view in which you will have the I/O sorted in alphabetical order. Here is an example of TCL script that allows such a feature: proc ForEachLocal {rlocals local} { upvar $rlocals locals lappend $rlocals [list $local [get $local name] ] return 1 } proc ForEachNode {model bExpanded node} { set locals “” if { $bExpanded } { fwreport -expanded $node $model } else { fwreport $node $model } MapRole $node input “ForEachLocal locals” MapRole $node output “ForEachLocal locals” MapRole $node hidden “ForEachLocal locals” MapRole $node local “ForEachLocal locals” set sortedlist [lsort -dictionary -index 1 $locals] foreach pair $s

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123