160
edits
No edit summary |
No edit summary |
||
[https://wiki.physics.wisc.edu/yavuz/images/7/70/DAQ_user_guide_6002.pdf General 6002 Manual] (for OEM and non-OEM version)
==Notes==
1.) Example code:
s = daq.createSession('ni');
ch1 = addAnalogInputChannel(s,'Dev1','ai3' , 'Voltage'); % Adds analog input channel ai3
ch1.TerminalConfig = 'SingleEnded'; % Sets grounding configuration (Differential or SingleEnded)
ACQrate = 50000; % Sample rate. Maximum rate 50,000/sec total. If there are n channels then each channel samples at 50,000/n
ACQduration = 10; % Acquisition duration in seconds
s.Rate = ACQrate;
s.DurationInSeconds = ACQduration;
PD_data = s.startForeground(); % Begins collecting data
2.) There are 4 analog inputs in differential mode and 8 in single ended mode
3.) There are sometimes voltage offset issues due to grounding. Make sure to double check.
|