CSData QML Type
Object that represents control system data. More...
Import Statement: | import CSDataQuick.Data 1.0 |
Instantiates: | QCSData |
Properties
- accessRight : int
- alarm : CSDataAlarm
- connected : bool
- count : int
- extraProperties : map
- fieldType : enumeration
- host : string
- precision : int
- range : CSDataRange
- source : string
- stateStrings : list
- timeStamp : Date
- units : string
- value : var
Detailed Description
Example:
CSData { id: voltagePV source: 'MTEST:Voltage' onValueChanged: console.log(timeStamp, ' voltage = ', value) }
Property Documentation
This property holds the access right of the data.
This is a bitwise or of QCSData::AccessFlag.
alarm : CSDataAlarm |
This property holds the alarm information.
This property holds native type of the data.
See also QCSData::FieldType.
range : CSDataRange |
This property holds the limits information.
This property holds the data's source name.
The source name is of form "[engine://]data_id". engine:// selects the data engine where this data comes. If it is omitted, the default data engine is selected, which is EPICS channel access engine. data_id is the unique id to the data inside the selected data engine.
"ca://my_pv" or simply "my_pv" both specify the data comes from process variable my_pv.
Note: If empty source name is assigned, the data will be be disconnected from the data engine if connected, and reset to its initial state.
timeStamp : Date |
This property holds the timestamp of data's last change.
value : var |
This property holds the value of the data.
The value can be of scalar, array type or anything that the underlying data engine provides. However it might be upcasted to QML Basic Types. In case of array type, the Javascript environment can only understand QVector<int>, QVector<double>.
Note: Qt 5.6 and below does not understand QVector type at all. It requires helper functions for element-wise operation.
See also Utils::vectorGet and Utils::vectorSet.