From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boucles imbriquées

Bonjour,

 

Je réalise une chaine d'acquisition de données hémodynamiques. Pour cela j'ai crée un VI qui permet d'afficher et d'enregistrer les données quand l'utilisateur le souhaite.

Je mets en pièce jointe les 2 faces du VI

L'utilisateur enregistre sous forme de séquences qui corresponde chacune a un fichier. J'ai donc fait deux boucles for pour cela.

Mon problème est que quand je clique sur le bouton stop le VI ne s'arréte pas...

 

Merci d'avance pour votre aide

 

ps: il doit y avoir d'autres erreurs ou améliorations possibles mais le VI fonctionne 🙂

Download All
0 Kudos
Message 1 of 2
(2,058 Views)

I recommend that you make a copy of this VI, remove everything except the stop buttons, and then run it with Execution Highlighting (the "light bulb" icon in the toolbar). You might also want to put a delay (the Wait(ms)) function inside the inner while loop. See if that helps you understand the problem. The way your code is currently set up, you need to first push the "stop 2" button, then the "stop" button, and the whole VI will stop. Pushing only one button, or pushing them in the wrong order, won't work.

0 Kudos
Message 2 of 2
(2,033 Views)