📄 opc_server_browse.sci
字号:
////////////////////////////////////////////////////////////////
// function for Read OPC Item Value
// Developed by Zhe.Peng & Longhua.Ma
// http://pengzhe1113.googlepages.com/
// Email:pengzhe1113@gmail.com
// Zhejiang Univ. Hangzhou, China
// Dec.2006
////////////////////////////////////////////////////////////////
function ttt=opc_server_browse()
t=call('opc_server_browse','out',[1,600],1,'c');
tt=tokens(t,code2str(100));
ttt=strsubst(tt,' ','');
s=size(ttt);
for i=1:s(1)
ind=strindex(ttt(i),' ');
if ind(1)==1 then
tttt=strsplit(ttt(i),[1]) ;
ttt(i)=tttt(2) ;
end
if length(ttt(i))>0 then
len_l=length(ttt(i))-1;
ttttt=strsplit(ttt(i),[len_l]);
if ttttt(2)==' ' then
ttt(i)=ttttt(1) ;
end
end
end
endfunction
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -