Clear Filters
Clear Filters

BDaq4 sampling speed up?

8 views (last 30 days)
AN
AN on 19 Jun 2022
Answered: Ayush on 4 Sep 2023
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

Answers (1)

Ayush
Ayush on 4 Sep 2023
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!

Categories

Find more on MATLAB in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!