
Re: How could I check the value of a Attribute considering MATLAB to PI connection using SDK?
pthivierge Jun 7, 2016 12:24 PM (in response to jsalazarMadrid)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.

Re: How could I check the value of a Attribute considering MATLAB to PI connection using SDK?
jsalazarMadrid Jun 7, 2016 2:26 PM (in response to pthivierge)Patrice, I really appreciated if you could help me
I don't know how to adapt for MATLAB though.

Re: How could I check the value of a Attribute considering MATLAB to PI connection using SDK?
pthivierge Jun 7, 2016 3:34 PM (in response to jsalazarMadrid)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.

Re: How could I check the value of a Attribute considering MATLAB to PI connection using SDK?
jsalazarMadrid Jun 7, 2016 4:39 PM (in response to pthivierge)Thanks so much Patrice,
It has worked perfectly...
I have some doubts... How could I write some values?

Re: How could I check the value of a Attribute considering MATLAB to PI connection using SDK?
gregor Jun 7, 2016 8:17 PM (in response to jsalazarMadrid)Hello Johanna,
Please see page 6 Writing back to AF in the before mentioned White Paper.



