Hi,
I am trying to send triggers to two trigger devices (BioSemi EEG and Delsys EMG) connected to NI-USB 6501. I want to be able to start the data acquisition in both simultaneously. I am using the following MATLAB code to send triggers:
s=daq.createSession('ni');
addDigitalChannel(s,'Dev1','Port1/Line0:3','OutputOnly');
addDigitalChannel(s,'Dev1','Port2/Line0:3','OutputOnly');
outputSingleScan(s,[0 1 1 1, 0 0 0 1]);
However the 4 bit trigger codes for starting and stopping the acquisition keep changing with every run. Is it possible to have one set of code for starting the acquisition and one for stopping.
Thanks,
Neelesh