Thanks!
Jeremy
digitalio
addline
putvalue
The example from the putvalue help file is:
dio = digitalio('nidaq', 'Dev1');
hline = addline(dio, 0:3, 'out');
putvalue(dio, 8)
putvalue(dio, [0 0 0 0])
putvalue(dio.Line(1:4), [0 1 0 1])
In your case, you'd just add one line instead of 4.
I'm also trying to use getvalue to determine the current state. It returns the correct value when I run it in the matlab command line, but not when used in an m file. Any idea why this would be happening?
"Gus Lott" <lottg....@janelia.hhmi.org> wrote in message <gsf6ho$d9n$1...@fred.mathworks.com>...