Multiple DAQ Sessions in Background
Afficher commentaires plus anciens
I am aware that acquiring multiple channels with different sampling rates is not currently supported as such. I came across the possible workaround of creating an individual session for each channel and setting those sessions' sampling rate.
This would also allow me to easily control the place where the data should be stored for each channel.
The questions on this are:
- Is is even possible?
- What would that mean for the background acquisition process? In my scenario up to eight channels and therefore eight different sessions would acquire in the background. A listener waits for 3 Mio. datapoint being taken before triggering a storage script, which stores those 3 Mio datapoints into a new file.
- Individual sampling rates are not an absolute must. Is there an easy way to extract data from individual channels?
I am using a NI-PCI 6123 on a Windows 7 machine, MATLAB 2016b. Typical Sampling rates are 100 kHz.
Réponses (2)
Christian
le 15 Déc 2016
2 votes
Vinod
le 29 Déc 2016
1 vote
You can have multiple DAQ sessions with different devices, just not multiple sessions with the same device.
In your application I would set the sampling rate to the highest you need and downsample the data for the other channels using the ' resample' function.
1 commentaire
Christian
le 29 Déc 2016
Catégories
En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!