Xcos block's output to change in real time
melmak
melnikov.maksim at gmail.com
Sat Feb 4 00:58:17 CET 2012
function block=AI_CF(block,flag)
slMount(1)
if slCheck(1,3)==1 then
slConfig(1,9600,8,0,1);
slOpen(1,3);
else
break
end
if flag==1 then
if slCount(1)==1 then
block.outptr(1) = (slReadByte(1,1))/51
else
slFlush(1)
block.outptr(1) = (slReadByte(1,1))/51
end
else
break
end
endfunction
--
View this message in context: http://mailinglists.scilab.org/Xcos-block-s-output-to-change-in-real-time-tp3714632p3714632.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list