OPC Logging DataChangeFcn

1 view (last 30 days)
Andrew Groth
Andrew Groth on 2 Sep 2011
I am trying to configure the DataChangeFcn to us a callback function that reads the latest record and move the data into an array associated with each OPC Tag I'm monitoring. I am getting an intermittent error when during execution that says: "Group is not logging and no records are available" I checked and the group is logging, however on each change event, I'm using the getdata function to process the latest record.
Can someone explain how the Data Change event works? Also, should I expect there to be a new record after a data change event occurs?
Thanks!

Answers (0)

Community Treasure Hunt

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

Start Hunting!