Page 1 of 1

ReadAsync

Posted: 13 Jun 2014, 11:18
by perezjo
Hello,
Is it possible to use this function somehow to refresh the variable values? If I'm not worng, it only uses the variable NodeId when clicking it in UaExpert. I would need to implement a cyclic routine to take events from a FIFO. I can create a timer, but is there any other way?
Thank you.

Re: ReadAsync

Posted: 13 Jun 2014, 12:36
by Support Team
Hello,

Are you familiar with the Subscription/Monitored Items service?
http://documentation.unified-automation ... ption.html

Best regards
Support Team

Re: ReadAsync

Posted: 16 Jun 2014, 15:48
by perezjo
Thanks for your advice.
Then, should I introduce my variable refreshing code in the Data Sampling Routine? How could I control its' periodicity if the routine is called each sampling rate g_aiSamplingRates[NUM_SAMPLINGRATES] = {50, 100, 250, 500, 1000, 2500, 5000}? Is it possible to define a single sample rate or these are needed for other internal procedures?
Many thanks.
Regards