1
function [x,y,typ] = rtai4_comedi_dioin(job,arg1,arg2)
5
exprs=arg1.graphics.exprs;
10
[x,y,typ]=standard_inputs(arg1)
11
case 'getoutputs' then
12
[x,y,typ]=standard_outputs(arg1)
14
[x,y]=standard_origin(arg1)
17
model=arg1.model;graphics=arg1.graphics;
21
getvalue('Set RTAI-COMEDI DIO block parameters',..
24
list('vec',-1,'str',1),exprs)
26
if exists('outport') then out=ones(outport,1), in=[], else out=1, in=[], end
27
[model,graphics,ok]=check_io(model,graphics,in,out,1,[])
35
x.graphics=graphics;x.model=model
43
model.sim=list('rt_comedi_dioin',4)
44
if exists('outport') then model.out=ones(outport,1), model.in=[], else model.out=1, model.in=[], end
52
exprs=[sci2exp(ch),name]
53
gr_i=['xstringb(orig(1),orig(2),[''COMEDI DI'';name+'' CH-''+string(ch)],sz(1),sz(2),''fill'');']
54
x=standard_define([3 2],model,exprs,gr_i)