Hello,
I am trying to send digital outputs with Matlab DAQ toolbox to a NI PCI-6224 card (and through a NI SCB-68 connector block to a Plexon recording rig), but am having trouble getting the signals to the connector block.
I'm using Matlab R2007a, DAQ toolbox version 2.10, the NI-DAQmx 8.6.1 driver, and the correct adaptors ('nidaq', 'parallel', and 'winsound') are working. Furthermore, I know that the card and connector block are working because someone else is accessing it with LabVIEW for a totally different task.
I know the board ID is 'Dev1', and when I run the following code, I don't get any error messages. Again, however, I can't get it to write signals to the connector block (or measure them using NI Measurement and Automation Explorer).
>>dio = digitalio('nidaq','Dev1');
addline(dio,0:7,'out');
pval = [1 1 1 1 0 1 0 1];
putvalue(dio,pval)
gval = getvalue(dio);
delete(dio)
clear dio
I'm not sure where to go from here. Any suggestions would be very much appreciated.
Thanks.
-Ben