Hello,
I would like to use matlab to trigger a TTL via the NI-6602 (and BNC 2121 accessory).
My code:
dio=digitalio('nidaq',2);
hwlines=addline(dio,0,'out');
data=1;
putvalue(dio,data);
start(dio);
getvalue(dio)
I'm having two problems:
1) The output does not look like a square wave on a scope.
2) I can't use the same line (zero in the above code) to send the output twice in a row. I have to keep switching it between line 0 and one for it to work consecutively.
Can anyone advise?
May thanks in advance,
Gene