AnalogOutput
Description
The AnalogOutput object allows outputting a certain voltage at an analog output pin.
This object was introduced in InCore 2.8.
- › Inherits:
Overview
Properties
Methods
Signals
Enumerations
Properties
current
This property holds the current to output.
- › Type:
Float
- › Default:
0- › Signal:
currentChanged()
- › Attributes:
Writable
error
This property holds the most recently occurred error or AnalogOutput.NoError if no error occurred. If the same error occurs multiple times this property does not change. Use the errorOccurred() signal to detect multiple occurrences of the same error.
- › Type:
- › Signal:
errorChanged()
- › Attributes:
Readonly
errorString
This property holds the current human readable error string corresponding to the current value in the error property. It may include additional information such as failure reasons or locations.
- › Type:
String
- › Signal:
errorStringChanged()
- › Attributes:
Readonly
fault
This property holds the current state of the analog output’s fault pin.
- › Type:
Boolean
- › Signal:
faultChanged()
- › Attributes:
Readonly, Requires Polling
index
This property holds the index of the input. This property has to be set to work properly.
- › Type:
- › Default:
- › Signal:
indexChanged()
- › Attributes:
Writable
Methods
pollFault()
This method polls the fault property. It is called automatically when using a Polling property modifier on this property and usually does not have to be called manually.
Signals
errorOccurred()
This signal is emitted whenever an error has occurred, regardless of whether the error property has changed or not. In contrast to the change notification signal of the error property this signal is also emitted several times if a certain error occurs several times in succession.
Enumerations
Error
This enumeration describes all errors which can occur in AnalogOutput objects. The most recently occurred error is stored in the error property.
Name |
Value |
Description |
|---|---|---|
|
|
No error occurred or was detected. |
|
|
No hardware driver available for this device. |
Index
This enumeration describes the supported analog output indexes.
Name |
Value |
Description |
|---|---|---|
|
|
No index assigned. |
|
|
The first analog output. |
|
|
The second analog output. |