pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

Review PINI/TSE settings #102

Closed klauer closed 5 years ago

klauer commented 5 years ago

Setpoints should not have PINI=1

TSE=-2 on a waveform "output" keeps its timestamp as invalid:

$ caget -S -d 14 ADS_TST:Str
ADS_TST:Str
    Native data type: DBF_CHAR
    Request type:     DBR_TIME_STRING
    Element count:    0
    Value:                0
    Timestamp:        <undefined>
    Status:           NO_ALARM
    Severity:         NO_ALARM

$ caput ADS_TST:Str.TSE 0
Old : ADS_TST:Str.TSE                -2
New : ADS_TST:Str.TSE                0

$ caput -S ADS_TST:Str "test"
Old : ADS_TST:Str \a
New : ADS_TST:Str test

$ caget -S -d 14 ADS_TST:Str
ADS_TST:Str
    Native data type: DBF_CHAR
    Request type:     DBR_TIME_STRING
    Element count:    5
    Value:            116 101 115 116 0
    Timestamp:        2019-08-13 16:37:53.155367
    Status:           NO_ALARM
    Severity:         NO_ALARM

The RBV does not have that issue.