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?¿

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?¿

Hello Johanna,

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) { Console.WriteLine("{0} {1}",value.Timestamp,value.Value.ToString()); }

You'll need to adapt for Matlab though.

Let me know if this works for you.

Hello Johanna,

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)); end

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.

Hello Johanna,

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):

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.