<< OutPort_getType OutPort RTC >>

RTCscilab >> RTComponent > OutPort > OutPort_write

OutPort_write

Write Data to OutPort

Calling Sequence

ret=OutPort_write(port, data)

Parameters

port

Handle value of Outport.

data

vector.

ret

Negative value if failed.

Description

This function write user's data to OutPort.

Matrix data is written in the order as follows:

Matrix                                          Sequence
|1  4  7|
|2  5  8|
|3  6  9|  ----------- DataOutPort ---------- [1 2 3 4 5 6 7 8 9]

Examples

initRTM("Scilab");
rtc = RTC_create();

port = RTC_registerOutPort(rtc, "TimedDoubleSeq", "out0");
OutPort_write(port, [1,4,7;2,5,8;3,6,9]);

See Also

Authors

<< OutPort_getType OutPort RTC >>