src/api/interface/traceManager.ts
This class groups all the services related to the CNC TraceManager.
The TraceManager displays signal information about CNC variables.
Properties |
Methods |
constructor(hmiComm: CommHmiNodeServer)
|
||||||
Parameters :
|
route |
Type : string
|
Public read |
read()
|
This function reads trace's state in data format, showing variables from TraceData. TODO: If there are more than one traces active, a UID will be used to identify each one of them. Returns a ServiceResponse promise. This promise is fulfilled with returnCode = 0 if everything is OK or returnCode = -1 when something goes wrong. Example in javascript:
|
Public setConfig | ||||||||
setConfig(config: TraceConfiguration)
|
||||||||
This function sets customized configuration TraceConfiguration for the TraceManager Returns TraceConfigReturn data related to the variables set. Examples in javascript:
The channel period (tSampleCh) and the main period (tSample) are optional. (Note: Period units for setconfig: microsec) By default the period is set to be equal to a CNC loop cycle (by default 4ms) when there is no channel period or period inputs. If both periods are set in the config, the smallest value will be set as period.
Parameters :
|
Public start |
start()
|
This function enables to start a previously configured Oscilloscope trace. Returns a ServiceResponse promise. This promise is fulfilled with returnCode = 0 if everything is OK or returnCode = -1 when something goes wrong. Example in javascript:
|
Public stop |
stop()
|
This function stops the TraceManager. Returns a ServiceResponse promise. This promise is fulfilled with returnCode = 0 if everything is OK or returnCode = -1 when something goes wrong. Example in javascript:
|