LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Demande d'aide LabVIEW pour projet

Solved!
Go to solution

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!

0 Kudos
Message 1 of 9
(1,072 Views)

[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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 9
(1,063 Views)

To top up what Kevin_Price has shared, see Easily Synchronize and Trigger NI-DAQmx with Channel Expansion

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 3 of 9
(1,023 Views)

Hi Kevin thank you for your response. I understand what do you mean but can you show me a simple example please?

0 Kudos
Message 4 of 9
(981 Views)

Thanks a lot!

0 Kudos
Message 5 of 9
(980 Views)
Solution
Accepted by topic author waldoemerson23

Hi waldo,

 


@waldoemerson23 wrote:

I understand what do you mean but can you show me a simple example please?


See this:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 9
(975 Views)

Thank you so much it is very helpfull. Now to retrieve the data of each entry on different displays how to do it?  

0 Kudos
Message 7 of 9
(967 Views)
Solution
Accepted by topic author waldoemerson23

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(964 Views)

thanks!!!

0 Kudos
Message 9 of 9
(950 Views)