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 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 May 2010
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 Comment
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh on 10 Mar 2014
Edited: Salaheddin Hosseinzadeh on 10 Mar 2014
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!

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!