Specifying a Mixed Physical Implementation

  1. Open the implementation editor for the desired component.
  2. In the implementation editor, do one of the following:

    • Open the Implementation menu and select Add Mixed Physical.
    • Right-click in the Implementation field and select Add Mixed Physical from the context menu.

    Note

    Each component or project can have at most one mixed physical implementation.

    A new implementation named Mixed_Physical_Implementation is created. The Local and Global tabs are combined to one Local/Global tab. The Implementation column shows <undef>. for each element to indicate that no element has an implementation.

    You cannot copy or rename this implementation, and you cannot select it as default implementation.

  3. To edit the implementation of a scalar or composite element, Closeddo the following.

    1. Go to the Local/Global or Impl. Cast tab.

    2. Double-click the desired element.

      A message window shows the following message: Element has no plementation. Use default to edit?

    3. Click OK to continue.

      The implementation editor for the element opens.

    4. Edit the element implementation.

      scalar, array, matrix

      Specifying Individual Implementations

      Assigning an Implementation Type

      method-/process-local element

      Implementing Method-/Process-/Runnable-Local Variables

      characteristic line/map

      Implementing Characteristic Lines/Maps

      reference

      Implementing References

      enumeration

      Specifying an Enumeration Implementation

      logical element

      Specifying the Implementation for a Logical Element

      state variable

      Specifying the Memory Location for State Variables

    5. Click OK to close the implementation editor of the element.

      If you generate code with the Mixed_Physical_Implementation implementation, implemented scalar or composite elements are generated as for implemented code generation, and unimplemented elements are generated as for physical code generation.

  4. To edit the implementation of an included component (e.g., a class instance or record instance), Closeddo the following.

    1. Go to the Local/Global tab.
    2. Double-click the desired included component.

      A message window shows the following message: Element has no implementation. Use default to edit?

    3. Click OK to continue.

      The implementation editor for the included component or the implementation editor for component references opens. If necessary, a mixed physical implementation is created.

    4. Edit the implementation of the included component.

      Note

      You cannot select an implementation other than Mixed_Physical_Implementation for the component instance.

      explicit reference

      Implementing References

      Implementing a Record Instance

      no reference

      Implementing Components

    5. Click OK to close the implementation editor of the included component.

  5. Click OK to close the implementation editor of the component.
  6. To edit the implementation of a process or method, Closeddo the following.

    1. In the Outline tab, select the process or method you want to edit.
    2. Open the Edit menu and select Implementation.

      A message window shows the following message: Method has no implementation. Use default to edit?

    3. Click OK to continue.
    4. Edit the process/method implementation as described in Editing a Process/Method Implementation.

See also

Mixed Physical Implementation

Generating Code with Mixed Physical Implementation