Skip to content
Snippets Groups Projects
Commit 8ed7d02c authored by Cristian Galperti's avatar Cristian Galperti
Browse files

F4E example runs on standard MDS+/Matlab interface

Standard Java based MDS+/Matlab interface tested
with the F4E example. Previously SPC mdsipmex based
interfaced was used, not suitable for a public
accessible example. NB: we do not know if
the Java interface is as optimized as the mdsipmex
one (i.e. if it uses a connection stack for example),
for for SPC usage we have to revert back to the
mdsipmex version or implement a connection
stack/ corrnection order in the SCDclass* objects.
parent d0a57941
No related branches found
No related tags found
No related merge requests found
......@@ -110,9 +110,13 @@ classdef SCDclass_mdswgsigarray1 < SCDclass_mdswg
for ii=1:numel(sourceidxs)
mdschannel=sprintf(obj.tdiexpr, sourceidxs(ii));
data=tdi(mdschannel);
value.Data(:,ii)= single(interp1(data.dim{1},data.data,timebase,'linear',0));
%data=tdi(mdschannel);
%value.Data(:,ii)= single(interp1(data.dim{1},data.data,timebase,'linear',0));
dbdata=mdsvalue(mdschannel);
dbtime=mdsvalue(['dim_of(' mdschannel ')']);
value.Data = single(interp1(dbtime,dbdata,timebase,'linear',0))';
end
end
......
......@@ -90,9 +90,12 @@ classdef SCDclass_mdswgsigsingle < SCDclass_mdswg
value.Time = timebase;
value.Data = single(zeros(numel(timebase),1));
data=tdi(obj.tdiexpr);
value.Data = single(interp1(data.dim{1},data.data,timebase,'linear',0))';
%data=tdi(obj.tdiexpr);
%value.Data = single(interp1(data.dim{1},data.data,timebase,'linear',0))';
dbdata=mdsvalue(obj.tdiexpr);
dbtime=mdsvalue(['dim_of(' obj.tdiexpr ')']);
value.Data = single(interp1(dbtime,dbdata,timebase,'linear',0))';
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment