04-04-2018 01:46 PM
I try to collect data from festo PLC via opc server. I use open datasocket, read datasocket and close datasocket labview functions. I have a problem. Data in opc server changes 10 times per second. It's low. I had try read sine function from ni.opc.demo.server and got the same frequency. I don't find any frequency properties of datasocket server.
Thank you.
04-05-2018 11:54 AM
I am not clear on what your question is as it seems like your DataSocket Read is occurring at the same rate as the data on your OPC Server. Are you trying to read at a rate slower than your server's update rate or faster (and get potentially stagnant values)?
There are two things you can do to change your rate of reading from the DataSocket Read:
?updaterate=rate_in_ms
to the end of your opc url. So, if your url is
opc://ni.opc.demo.server
then you would make it
opc://ni.opc.demo.server?updaterate=20
if you want to set your maximum update rate to 20 milliseconds.
04-06-2018 02:32 AM
Thank you for your answer.
You wrote about url options:
?updaterate=rate_in_ms
What more options we can add to url?
04-09-2018 01:27 AM
You're welcome! The only other url parameter I know of for opc url in DataSocket is deadband. So if you had the two parameters added on, it might look something like
?updaterate=100&deadband=0.7