daq info
out = daqhwinfo;
disp(out)
ToolboxName: 'Data Acquisition Toolbox'
ToolboxVersion: '2.16 (R2010a)'
MATLABVersion: '7.10 (R2010a)'
InstalledAdaptors: {3x1 cell}
n = length(out.InstalledAdaptors);
for k= out.InstalledAdaptors';
fprintf('\nAdaptor: %s\n',char(k));
try
h = daqhwinfo(char(k));
fprintf('DLL: %s\n',char(h.AdaptorDllName));
disp(h);
if ~isempty(h.ObjectConstructorName)
fprintf('\nObjectConstructorNames\n');
end
for hc=h.ObjectConstructorName
disp(hc);
end
catch ME
disp(ME.message);
end
end
Adaptor: mcc
DLL: C:\Program Files\Matlab\R2010a\toolbox\daq\daq\private\mwmcc.dll
AdaptorDllName: [1x64 char]
AdaptorDllVersion: '2.16 (R2010a)'
AdaptorName: 'mcc'
BoardNames: {'USB-1208FS'}
InstalledBoardIds: {'0'}
ObjectConstructorName: {1x3 cell}
ObjectConstructorNames
'analoginput('mcc',0)'
'analogoutput('mcc',0)'
'digitalio('mcc',0)'
Adaptor: parallel
DLL: C:\Program Files\Matlab\R2010a\toolbox\daq\daq\private\mwparallel.dll
AdaptorDllName: [1x69 char]
AdaptorDllVersion: '2.16 (R2010a)'
AdaptorName: 'parallel'
BoardNames: {1x0 cell}
InstalledBoardIds: {1x0 cell}
ObjectConstructorName: {0x3 cell}
Adaptor: winsound
DLL: C:\Program Files\Matlab\R2010a\toolbox\daq\daq\private\mwwinsound.dll
AdaptorDllName: [1x69 char]
AdaptorDllVersion: '2.16 (R2010a)'
AdaptorName: 'winsound'
BoardNames: {'SigmaTel Audio'}
InstalledBoardIds: {'0'}
ObjectConstructorName: {1x3 cell}
ObjectConstructorNames
'analoginput('winsound',0)'
'analogoutput('winsound',0)'
{''}
try
ai = analoginput('mcc',0);
catch ME
disp('The analog input system is not found');
disp('Check that DAQ is installed properly.');
return;
end
addchannel(ai,0);
fs = get(ai,'SampleRate');
fprintf('sample rate %g Hz\n',fs);
fprintf('\nSample Rate:\n');
disp(propinfo(ai,'SampleRate'));
fprintf('Input Type: %s\n',get(ai,'InputType'))
ai.Channel.InputRange = [-5 5];
disp(ai);
set(ai,'TriggerType');
sample rate 1000 Hz
Sample Rate:
Type: 'double'
Constraint: 'bounded'
ConstraintValue: [0.6000 50000]
DefaultValue: 1000
ReadOnly: 'whileRunning'
DeviceSpecific: 0
Input Type: Differential
Display Summary of Analog Input (AI) Object Using 'USB-1208FS'.
Acquisition Parameters: 1000 samples per second on each channel.
1000 samples per trigger on each channel.
1 sec. of data to be logged upon START.
Log data to 'Memory' on trigger.
Trigger Parameters: 1 'Immediate' trigger(s) on START.
Engine status: Waiting for START.
0 samples acquired since starting.
0 samples available for GETDATA.
AI object contains channel(s):
Index: ChannelName: HwChannel: InputRange: SensorRange: UnitsRange: Units:
1 '' 0 [-5 5] [-20 20] [-20 20] 'Volts'
[ Manual | {Immediate} | Software | HwDigital ]
try
ao = analogoutput('mcc',0);
catch ME
disp('The analog output system is not found');
disp('Check that DAQ is installed properly.');
return;
end
fprintf('\nAnalogOut Sample Rate:\n');
disp(propinfo(ao,'SampleRate'));
fprintf('AnalogOut:\n');
disp(ao);
AnalogOut Sample Rate:
Type: 'double'
Constraint: 'bounded'
ConstraintValue: [1 10000]
DefaultValue: 1000
ReadOnly: 'whileRunning'
DeviceSpecific: 0
AnalogOut:
Display Summary of Analog Output (AO) Object Using 'USB-1208FS'.
Output Parameters: 1000 samples per second on each channel.
Trigger Parameters: 1 'Immediate' trigger on START.
Engine status: Waiting for START.
0 total sec. of data currently queued for START.
0 samples currently queued by PUTDATA.
0 samples sent to output device since START.
AO object contains no channels.
try
dio = digitalio('mcc',0);
catch ME
disp('The digital I/O system is not found');
disp('Check that DAQ is installed properly.');
return;
end
fprintf('\nDigitalI/O:\n');
disp(dio);
disp([ai ao dio]);
DigitalI/O:
Display Summary of DigitalIO (DIO) Object Using 'USB-1208FS'.
Port Parameters: Port 0 is port configurable for reading and writing.
Port 1 is port configurable for reading and writing.
Engine status: Engine not required.
DIO object contains no lines.
Index: Subsystem: Name:
1 Analog Input mcc0-AI
2 Analog Output mcc0-AO
3 Digital IO mcc0-DIO
for obj=daqfind
delete(obj);
end
clear ao ai dio obj