le 01-21-2021 11:33 AM
Bonjour,
Je suis sous Labview 2018 et toolkit Sound and Vibratin 2018.
Il y a un exemple Continuous Frequency sweep (Daqmx).vi que je souhaiterai modifier pour faire 2 acquisitions à la suite avec 2 générateurs différents.
Je n'arrive pas à mettre cet exemple dans une boucle. La première boucle est bonne, mais pas la seconde.
Etant débutant sous labview, ce programme est vraiment très complexe pour moi (conduit de données, synchro, buffer). J'ai réussi à modifier le programme pour effacer la tâche (qui était simplement arrêtée, et donc ne pouvait pas être dans une boucle) et pouvoir la recommencer une deuxième fois : OK. La tâche est recréée dans la seconde boucle. Par contre, il y a un blocage au niveau du buffer de données.
"Error -1916 occurred at SoundVib_ContSweptSine.lvlib:sv_Check for Continuous Swept Settings.vi:7 Possible reason(s): Sound & Vibration: Expected waveform attribute was not found."
C'est une acquisition en continue, et en fait, à la première boucle, le buffer termine l'acquisition (done) et elle reste bloquée pour la seconde, ce qui donne l'erreur. Je n'arrive pas à voir comment réinitialiser ce conduit de données.
Si quelqu'un peut m'aider, merci d'avance.
le 01-25-2021 04:13 AM
Hi,
as I understood you want to use the Continous Frequency Sweep (DAQmx).vi example for measuring the frequency response of two Devices (DUT) simultaneously and continuously?
The program should run as long as it emits all frequencies in the given frequency range and measures response. If you want to measure two samples simultaneously I suppose it would be enough to copy everything in the block diagram and past below it. Then you choose AI channels, AO channels do all connections and the program does the measurement.
le 01-25-2021 04:30 AM
Hi,
Thank you for your answer.
I want to do it in a sequence : The first one with a generator dev/a0 and the second after with the second generator dev/a1.
I think I have find my mistake. When I copy the example in a sequence, I have rely the wrong error wire to the stream in a while box. I have to test now with the right wire, but I have no time for instance. Perhaps at the end of the week...
Best