BDaq4 sampling speed up?

10 visualizzazioni (ultimi 30 giorni)
AN
AN il 19 Giu 2022
Risposto: Ayush il 4 Set 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

Risposte (1)

Ayush
Ayush il 4 Set 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!

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by