ParameterSet¶
The ParameterSet
element enables to configure a set of signals within one sample.
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <Controller Name="Arcas 5EG-0">
<AxisControl Name="X" Template="LogicalAxisControlStandard3rdOrderTemplate">
<ParameterSet Name="HomingParameters">
<Signal Name="TrajectoryGenerator/MaximumVelocity">0.1</Signal>
<Signal Name="TrajectoryGenerator/MaximumAcceleration">1</Signal>
<Signal Name="TrajectoryGenerator/MaximumJerk">10</Signal>
<Signal Name="TrajectoryInterpolator/DemandAccelerationLimit">1.0</Signal>
<Signal Name="TrajectoryInterpolator/DemandPositionHighLimit">10.0</Signal>
<Signal Name="TrajectoryInterpolator/DemandPositionLowLimit">100.0</Signal>
</ParameterSet>
<ParameterSet Name="MoveParameters">
<Signal Name="TrajectoryGenerator/MaximumVelocity">0.4</Signal>
<Signal Name="TrajectoryGenerator/MaximumAcceleration">4</Signal>
<Signal Name="TrajectoryGenerator/MaximumJerk">40</Signal>
<Signal Name="TrajectoryInterpolator/DemandAccelerationLimit">4.0</Signal>
<Signal Name="TrajectoryInterpolator/DemandPositionHighLimit">40.0</Signal>
<Signal Name="TrajectoryInterpolator/DemandPositionLowLimit">400.0</Signal>
</ParameterSet>
</AxisControl>
</Controller>
|
Note
A ParameterSet
is instantiated (and scoped) within an axis control.
If a ParameterSet
with the provided name already exists in the axis control where it is defined, then either:
if the exact same signals are listed, then the signal values are overwritten;
otherwise, initialization fails.
Note
Signal
definitions in a ParameterSet
are only allowed to contain the Name
attribute of a Signal
,
and the value that is to be applied via the ParameterSet
.
As an example, this means that even though the XML-schema suggests it is valid to specify the Unit
attribute on these signals,
it is not possible to specify or redefine the unit of a Signal
using a ParameterSet
.
XML schema¶
1 2 3 4 5 6 7 8 | <xs:complexType name="ParameterSetType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Signal" type="SignalType"/>
<xs:element name="Variant" type="ParameterSetVariantType"/>
<xs:element name="NamedMutation" type="NamedMutationType"/>
</xs:choice>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
|
Attribute |
Description |
---|---|
|
Used to define a name for a parameter set block. |
1 2 3 4 5 6 7 8 9 10 11 | <xs:complexType name="ParameterSetVariantType">
<xs:complexContent>
<xs:extension base="BaseVariantType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Signal" type="SignalType"/>
<xs:element name="Variant" type="ParameterSetVariantType"/>
<xs:element name="NamedMutation" type="NamedMutationType"/>
</xs:choice>
</xs:extension>
</xs:complexContent>
</xs:complexType>
|