pid_loader.sce

来自「rtai-3.1-test3的源代码(Real-Time Application」· SCE 代码 · 共 26 行

SCE
26
字号
//exec file used to load the "compiled" block into Scilabrdnom='pid'// get the absolute path of this loader file[units,typs,nams]=file();clear units typs;for k=size(nams,'*'):-1:1   l=strindex(nams(k),rdnom+'_loader.sce');   if l<>[] then     DIR=part(nams(k),1:l($)-1);     break   endendarchname=emptystr()Makename = DIR+rdnom+'_Makefile';select getenv('COMPILER','NO');case 'VC++'   then   Makename = strsubst(Makename,'/','\')+'.mak';case 'ABSOFT' then   Makename = strsubst(Makename,'/','\')+'.amk';endlibn=ilib_compile('libpid',Makename)//unlink if necessary[a,b]=c_link(rdnom); while a ;ulink(b);[a,b]=c_link(rdnom);endlink(libn,rdnom,'c')//load the gui functiongetf(DIR+'/'+rdnom+'_c.sci');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?