06-29-2023 09:53 AM
Bonjour. J'ai déjà fait mon programme LabVIEW pour récupérer le couple, la vitesse et la température d'un moteur. J'utilise la carte NI USB-6211. Mon problème est que je n'arrive pas à récupérer toutes les valeurs à la fois alors que j'utilise des entrées analogiques différentes pour chaque grandeur physique. Voici l'erreur qui s'affiche: La source spécifiée est réservée!
Solved! Go to Solution.
06-29-2023 10:36 AM
[Hopefully you can translate this back to French and it'll make enough sense.]
The device only has 1 timing engine available to drive AI sampling, so you need to have just 1 task that includes all the AI channels. You can chain several calls to DAQmx Create Virtual Channel in a row, one for each channel you need to configure uniquely. Be sure to wire each 'task out' terminal to the next 'task in' terminal.
Note that one consequence of this is that all channels will be acquired at the same sample rate.
-Kevin P
06-29-2023 01:54 PM
To top up what Kevin_Price has shared, see Easily Synchronize and Trigger NI-DAQmx with Channel Expansion
07-03-2023 01:23 AM
Hi Kevin thank you for your response. I understand what do you mean but can you show me a simple example please?
07-03-2023 01:24 AM
Thanks a lot!
07-03-2023 01:59 AM - edited 07-03-2023 01:59 AM
Hi waldo,
@waldoemerson23 wrote:
I understand what do you mean but can you show me a simple example please?
See this:
07-03-2023 02:12 AM
Thank you so much it is very helpfull. Now to retrieve the data of each entry on different displays how to do it?
07-03-2023 02:15 AM
Hi waldo,
@waldoemerson23 wrote:
Now to retrieve the data of each entry on different displays how to do it?
Use one DAQmxRead call to read all channels (mode "N channels").
Then use IndexArray to get the elements/channels for each display…
07-03-2023 02:57 AM
thanks!!!