Quantcast
Viewing all articles
Browse latest Browse all 2180

Start data acquisition in NI-USB 6501

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

Viewing all articles
Browse latest Browse all 2180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>