필터 지우기
필터 지우기

BDaq4 sampling speed up?

조회 수: 12 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by