Sensor¶
The Sensor
element can be used to configure a sensor.
The Name
attribute of the Sensor
element is used to select the required sensor interface.
See also
- Sensor
Explanation of the general concept of a sensor and its purpose in the motion software.
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <Controller Name="Arcas 5EG-0">
<Controller Name="Cygnus Q3-48-10-1">
<NamedMutation FromDefault="Enc1" To="EncX"/>
<NamedMutation FromDefault="Enc1PosAng" To="EncXPosAng"/>
<Sensor Name="EncX">
<Signal Name="ScaleFactor">1e-7</Signal>
<Signal Name="PositionSource">2</Signal>
<Signal Name="AngleSource">2</Signal>
</Sensor>
<Sensor Name="EncXPosAng">
<Signal Name="EncoderCountsPerRevolution">2500</Signal>
<Signal Name="PolePairs">2</Signal>
</Sensor>
</Controller>
</Controller>
|
XML schema¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | <xs:complexType name="SensorType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Signal" type="SignalType"/>
<xs:element name="Input" type="InputType"/>
<xs:element name="PowerStateMachine" type="StateMachineType"/>
<xs:element name="Event" type="EventType"/>
<xs:element name="Updatable" type="UpdatableType"/>
<xs:element name="Filter" type="FilterType"/>
<xs:element name="Variant" type="SensorVariantType"/>
<xs:element name="NamedMutation" type="NamedMutationType"/>
</xs:choice>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
|
Attribute |
Description |
---|---|
|
Used to specify the sensor, which is required to be used. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <xs:complexType name="SensorVariantType">
<xs:complexContent>
<xs:extension base="BaseVariantType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Signal" type="SignalType"/>
<xs:element name="Input" type="InputType"/>
<xs:element name="PowerStateMachine" type="StateMachineType"/>
<xs:element name="Event" type="EventType"/>
<xs:element name="Updatable" type="UpdatableType"/>
<xs:element name="Filter" type="FilterType"/>
<xs:element name="Variant" type="SensorVariantType"/>
<xs:element name="NamedMutation" type="NamedMutationType"/>
</xs:choice>
</xs:extension>
</xs:complexContent>
</xs:complexType>
|