Effacer les filtres
Effacer les filtres

BDaq4 sampling speed up?

12 vues (au cours des 30 derniers jours)
AN
AN le 19 Juin 2022
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

Réponses (1)

Ayush
Ayush le 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!

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by