OPC UA Server data access
I'm learning how to use python to create a simple third-party client to get data from the currentscaled node of the OPCUA client.
My problem is that I set the sampling rate of the channel to 5000 hz, this means that 5,000 data will be collected per second, but I've only read a few hundred of them, does this mean that currentscaled nodes reduce the amount of data they send, how do I get the full 5,000 pieces of data , thank you very much.
Attached files:
Dear Nai,
Thank you for reaching us. Can you please send us your file and we can check?
Best regards!
This is the core code of the opcua third-party client I wrote in python. I set it to read data once in 1/5000 seconds, and the reading time is 10 seconds. I should have gotten 50,000 values, but I only got a few hundred.My python code and get the data txt file are in the attachment.If you have some advices,thank you very much.
Attached files:
Dear Nai,
Thank you for pending. We have checked your script and changed it little bit. Now it read the data with sample rate of ~100 Hz. DewesoftX has a limit rate for OPC UA 100 Hz. You can set a higher frequency in the script, but in this case data will be duplicated, please look at the attached screenshot.
When using a sample rate of 100 Hz, the script works well please look at the attached screenshot.
However, we have added functionality for OpcUaClient v4.0.0 to read the CurrentScaledValue node via the MonitoredItem mechanism. In this mode, it is possible to sample the CurrentScaledValue node at a sampling frequency of up to 1000 Hz. In this case, it is necessary to update both the OPC UA client and server to v4.0.0 in DewesoftX RC 2024.1.
Attached files: