How can I run the National Instruments PCI-6052E at its maximum specified sample rate of 333kHz with the Data Acquisition Toolbox 2.12 (R2008a)?
2 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2010-5-19
编辑: Salaheddin Hosseinzadeh
2014-3-10
I am trying to use the National Instruments PCI-6052E with two channels using the Data Acquisition Toolbox. I use the following commands to create the analog output object and add channels:
ao = analogoutput('nidaq','Dev3')
chans = addchannel(ao,0)
When I execute the PROPINFO command on the analog output object to check the maximum sample rate:
propinfo(ao,'SampleRate')
The maximum sample rate reported is 333,000:
Type: 'double'
Constraint: 'bounded'
ConstraintValue: [0.6000 333000]
DefaultValue: 1000
ReadOnly: 'whileRunning'
DeviceSpecific: 0
However, when I make use of both channels available on this device:
ao = analogoutput('nidaq','Dev3')
chans = addchannel(ao,0:1)
The maximum sample rate drops to 166,000. This is indicated by the output of the PROPINFO command on the analogoutput object:
%
Type: 'double'
Constraint: 'bounded'
ConstraintValue: [0.6000 166000]
DefaultValue: 1000
ReadOnly: 'whileRunning'
DeviceSpecific: 0
I would like to utilize the maximum sample rate of 333,000 Samples / second on both channels.
采纳的回答
MathWorks Support Team
2010-5-19
This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
To work around this issue with the Data Acquisition Toolbox 2.12 (R2008a), perform the following steps
1. Exit MATLAB.
2. Find the following file:
$MATLABROOT\toolbox\daq\daq\private\mwnidaqmx.ini
where $MATLABROOT is the MATLAB root installation directory obtained by issuing:
matlabroot
at the MATLAB Command Prompt.
3. Make a copy of this file and rename it to mwnidaqmx.ini.old.
4. Open the file mwnidaqmx.ini in a text editor, and search for the following line of text:
[PCI-6052E]
5. In this section, replace the following line:
maxAOSampleRate = 333000,166000
with
maxAOSampleRate = 333000,333000
5. Save the file mwnidaqmx.ini and restart MATLAB.
For versions of Data Acquisition Toolbox prior to 2.10 (R2007a), there are no workarounds.
1 个评论
Salaheddin Hosseinzadeh
2014-3-10
编辑:Salaheddin Hosseinzadeh
2014-3-10
Is this applied to sound card 'winsound'? Because I can't use max sampling frequency of my device which is 192Khz, I'm limitted to 96K by MATLAB 2012a, and I really need it as I'm working on 20Khz and I can only take/make a 4 sampled signal!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 National Instruments Frame Grabbers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!