How to set the OPC source timestamp with writeValue()?

조회 수: 17 (최근 30일)
Martin Kosch
Martin Kosch 2020년 3월 30일
답변: Martin Kosch 2020년 5월 19일
Dear MATLAB community,
I am currently trying to establish a connection between MATLAB's OPC toolbox and a python OPC-UA server (aysncua). When manipulating variables on the server, it is very helpful to provide the local UTC time of the client as a source timestamp.
Apparently, MATLAB does not send a source timestamp when using writeValue(uaClient, node, value), as can be seen in Wireshark:
I tried various things and studied the docs but could not find advice on how to send the current system time. Can anybody give me a hint?

채택된 답변

Martin Kosch
Martin Kosch 2020년 5월 19일
I found the solution myself: It was no MATLAB issue. Instead, the FreeOpcUa python server I am using does not support setting time stamps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Unified Architecture에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by