ReadAsync

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
perezjo
Sr. Member
Sr. Member
Posts: 14
Joined: 27 Mar 2014, 10:46

ReadAsync

Post 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.

User avatar
Support Team
Hero Member
Hero Member
Posts: 2532
Joined: 18 Mar 2011, 15:09

Re: ReadAsync

Post by Support Team »

Hello,

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

Best regards
Support Team

perezjo
Sr. Member
Sr. Member
Posts: 14
Joined: 27 Mar 2014, 10:46

Re: ReadAsync

Post 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

Post Reply