NI 8452 bitrate issues
古いコメントを表示
I am working with the NI 8452 SPI I2C reader for the Instrument Control Toolbox Support Package.
I would like to read a device at 20 MHz as the pamphlet advertises but am seeing some strange results.
It takes my desktop 0.0416.. seconds to digest 9840 bytes... 9840*8 = 78720 bits... / .0416 seconds ~ 1.8 MHz
perhaps there is a bit of overhead in the protocol... but I cant imagine that much?
any help appreciated
spiObject = spi('ni845x', 0, 0);
spiObject.BitRate = 20000000;
spiObject.ClockPhase = 'SecondEdge';
spiObject.ClockPolarity = 'IdleHigh';
spiObject.ChipSelect = 0;
connect(spiObject);
pause(1)
tic
read(spiObject,9840);
toc
disconnect(spiObject);
2017b
2 件のコメント
Engineer18
2019 年 11 月 13 日
Excuse me,
I want to know if NI-845x I2C/SPI Interface Support Package is 32-bit or 64-bit .
Walter Roberson
2019 年 11 月 13 日
It is available in 64 bits for all supported releases, R2014b and later.
It might possibly also work on Windows 32 in R2014b and R2015a and R2015b
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Instrument Control Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!