Name

ScilabComp — RT Component gateway. You can create ScilabComp object using ScilabComp_create function. See also ScilabComp_create.

ScilabComp Interface

  • registInPort(this, type, name)

    -regist DataInPort(which has type, name) to rtc. Return value should be stored as a new ScilabComp value.

              rtc = ScilabComp_create();
              ...
              newrtc = rtc.registInPort(rtc, type, name);
  • registOutPort(this, type, name)

    -regist DataOutPort(which has type, name) to rtc. Return value should be stored as a new ScilabComp value.

              rtc = ScilabComp_create();
              ...
              newrtc = rtc.registOutPort(rtc, type, name)
  • deletePort(this, name)

    -delete DataPort by name.Return value should be stored as a new ScilabComp value.

              rtc = ScilabComp_create();
              ...
              newrtc = rtc.deletePort(rtc, type, name)
  • operator(name)

    - get dataport by name. Return value is DataPort object. See SciInPort / SciOutPort.

              rtc = ScilabComp_create();
              ...
              port = rtc("out0");
            

Description

This class object allows you to access RT Component. You can append / delete DataOutPort and DataInPort whenever you want.

To write / read DataPorts, see SciOutPort / SciInPort.

Examples

      initRTM("Scilab");
      rtc = ScilabComp_create();
      
      rtc = rtc.registOutPort(rtc, "TimedFloat", "out0");
      rtc = rtc.registInPort(rtc, "TimedFloat", "in0");
      
      ...
      
      ScilabComp_destroy(rtc);
    

See Also

Authors

Yuki Suga (ysuga.net)