BDaq4 sampling speed up?

11 ビュー (過去 30 日間)
AN
AN 2022 年 6 月 19 日
回答済み: Ayush 2023 年 9 月 4 日
hi Is it possible to speed up sampling time (I get max about 80 S/s) working with code in Matlab (instant sampling method only, in real time desktop) using a function?:
function wynik = AI()
BDaq = NET.addAssembly('Automation.BDaq4');
instantAiCtrl = Automation.BDaq.InstantAiCtrl();
instantAiCtrl.SelectedDevice = Automation.BDaq.DeviceInformation('USB-4716,BID#0');
data = NET.createArray('System.Double', 1);
instantAiCtrl.Read(0, 1, data);
wynik=data.Get(0);
instantAiCtrl.Dispose();
end
Best Regards AN

回答 (1 件)

Ayush
Ayush 2023 年 9 月 4 日
Hi @AN,
Please note that the maximum sampling rate is influenced by factors such as hardware sampling rate, the processing power of your computer and the communication speed between the hardware device and your computer. It's important to consider these factors when attempting to achieve a higher sampling rate.
Additionally, there may be limitations within the Automation.BDaq4 library or the specific device you are using that restrict the sampling rate to 80 S/s. In such cases, you would need to consult the documentation or support resources provided by the library or the device manufacturer to determine if there are any alternative methods or workarounds to increase the sampling rate.
In summary, to achieve a higher sampling rate, you would need to upgrade to a hardware device that supports a higher sampling rate and ensure that your computer and communication setup can handle the increased data throughput.
Hope this helps!

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by