Embedded Software

Embedded Software

Topics related to SCADE Suite, SCADE Display, SCADE One and more.

Access operator output by parameter name in text operator body

    • Flix
      Subscriber

      In ScadeOne, you can access operator output by specifying the output parameter name in the adaptation on the wite connection.

      Is this possible within the text representation as well? I could only find you can access the output by position, i.e. op().(1) for the first output. It is neither allowed to do op().out1 nor op().(out1).

    • Benjamin Descorps
      Ansys Employee

      Hello,

      The output group of a text instance (of the form ‘op()’) is considered positional. So, indeed, you can only access outputs by their index (op().(1)). For an instance in a block diagram, the output group can be either positional or named.

      In practice, you should prefer a direct access to the equation x, out1, z = op() where you can only get the output you are interested in. Example:

      _, out1,_=op() or _,out1,..=op()

      Hope this helps,

      Benjamin

Viewing 1 reply thread
  • You must be logged in to reply to this topic.