1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="standard_inputs">
4
<refname>standard_inputs</refname>
5
<refpurpose>Get the position of the input ports of a block in Xcos editor.</refpurpose>
8
<title>Calling Sequence</title>
9
<synopsis>[x,y,typ] = standard_inputs(block)
13
<title>Arguments</title>
18
<para>xcos block.</para>
25
x position of the port. When multiple ports are described, <varname>x</varname> is a float vector of x positions.
33
y position of the port. When multiple ports are described, <varname>y</varname> is a float vector of y positions.
41
determine the type of ports. It can take the following values: <literal>-1</literal> if this is a clock port; <literal>1</literal> if this is an explicit port; <literal>2</literal> if this is an implicit port. When multiple ports are described, <varname>typ</varname> is a vector.
48
<title>Description</title>
50
This Scilab function is used to get the position (<varname>x</varname>,<varname>y</varname>) of each input port of an Xcos block.
54
<title>Example</title>
55
<programlisting role="example"><![CDATA[
4
<refname>standard_inputs</refname>
5
<refpurpose>Get the position of the input ports of a block in Xcos editor.</refpurpose>
8
<title>Calling Sequence</title>
9
<synopsis>[x,y,typ] = standard_inputs(block)
13
<title>Arguments</title>
18
<para>xcos block.</para>
25
x position of the port. When multiple ports are described, <varname>x</varname> is a float vector of x positions.
33
y position of the port. When multiple ports are described, <varname>y</varname> is a float vector of y positions.
41
determine the type of ports. It can take the following values: <literal>-1</literal> if this is a clock port; <literal>1</literal> if this is an explicit port; <literal>2</literal> if this is an implicit port. When multiple ports are described, <varname>typ</varname> is a vector.
48
<title>Description</title>
50
This Scilab function is used to get the position (<varname>x</varname>,<varname>y</varname>) of each input port of an Xcos block.
54
<title>Example</title>
55
<programlisting role="example"><![CDATA[
57
57
o1 = CSCOPE("define");
58
58
[x1,y1,typ1] = standard_inputs(o1)
59
59
o2 = Capacitor("define");
60
60
[x2,y2,typ2] = standard_inputs(o2)
61
61
]]></programlisting>
63
<refsection role="see also">
64
<title>See Also</title>
65
<simplelist type="inline">
67
<link linkend="standard_outputs">standard_outputs</link>
70
<link linkend="standard_origin">standard_origin</link>
63
<refsection role="see also">
64
<title>See Also</title>
65
<simplelist type="inline">
67
<link linkend="standard_outputs">standard_outputs</link>
70
<link linkend="standard_origin">standard_origin</link>