Matlab support NI PCIe 6321?

9 views (last 30 days)
Fares
Fares on 6 Apr 2014
Commented: Gaurav on 26 Apr 2023
Hi all,
I am currently using Matlab 2013a and would prefer to use the National Instuments PCIe 6321 data aquisition card for the project but the simulink block like "Analog Input" don't recognize the device.
devices =
Data acquisition devices:
index Vendor Device ID Description
----- ------ --------- ------------------------------
1 ni Dev1 National Instruments PCIe-6321
2 ni Dev2 National Instruments PCI-6220
Thanks, Fares
  1 Comment
Gaurav
Gaurav on 26 Apr 2023
clc;
close all;
clear all;
% User Inputs
bit_size=input('Enter the bit size '); % Bit size is taken as input
nf=7; % Flip-flops in LFSR
% Feedback tap positions
taps=[6 7]; % taps in LFSR
ri=randi([0 1],1,nf); % LFSR with random seed inputlr=zeros(1,nf); % LFSR initialization
l=128; % PRBS length
ls=zeros(l,nf); % sequence initialization in LFSR
for i=1:l
% LFSR shift operation
y= sum(ri(taps)); % xor operation output
x= mod(y,2);
lr(2:end) = ri(1:end-1) ; % Shifting in LFSR
lr(1)=x;
% Feedback in LFSR
ri=lr;
% updating value of ri
ls(i,:)=lr;
% generation of LFSR Sequence
end

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 6 Apr 2014
It is supported in current releases. This appears to be new as of R2014a, and requires that you use the Support Package installer.

Community Treasure Hunt

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

Start Hunting!