I have write the following code in MATLAB:
Output = mAF_GetAttributeArchiveValues('EUC00PPIAF01.scada.ops','Operations','SDKConnection','Temp_Reactor','*-1h','*')
And I have obtained the following... It is attached, How could I check the value?¿
Let me point you to our whitepaper on Matlab.
White Paper - Using PI Data with MATLAB
From this paper, I believe you could use something like this (not tested):
for i = 0:(Output.Count - 1)
fprintf('%s %s\n', char(Output.Item(i).Timestamp;),char(Output.Item(i).Value));
But maybe you'll need to look at P.5 of the white paper to convert the data using .NET if this does not work.
I don't have MATLAB for the time being so I can't test it right now.
Let me know if this work, I can always involve some colleagues who have MATLAB installed , or I'll install it.
What you are getting is an AFValues object - I can see 66 in your screenshot. This is basically a list of AFValue that you can enumerate to get the results.
With .NET I would do it this way:
foreach (var value in afValues)
You'll need to adapt for Matlab though.
Let me know if this works for you.
Patrice, I really appreciated if you could help me
I don't know how to adapt for MATLAB though.
Thanks so much Patrice,
It has worked perfectly...
I have some doubts... How could I write some values?
Please see page 6 Writing back to AF in the before mentioned White Paper.
Retrieving data ...