05-21-2019 03:25 AM
Hello,
i need to stop for and while loop in a same time with single stop button.
I tried with local variable, but it doesn't work. Push button is set to SWITCH WHEN PRESSED.
Channel wires i cannot find anywhere.
In att.
Has someone sugestions?
Thanks a lot.
Milan
05-21-2019 03:32 AM
05-21-2019 04:05 AM
Tag channel wire doesn't work. Please check VI in att.
Also i am not able to find Reinint to default in Property node.
Please advise...
Thanks.
05-21-2019 06:32 AM
The loop will not stop until everything in that iteration of the loop has completed execution. You're top loop could take several seconds to run depending on the number of turns. If you need more precise timing then do not take so much data in a single acquisition. Try changing your code to take, for instance, 0.5 seconds of data. Then the loops will stop within 0.5 seconds of each other.
05-27-2019
01:31 AM
- last edited on
11-26-2024
05:46 PM
by
Content Cleaner
Hi Milan,
Both of them (channel wire and local variable) work, when you take care of timing of your loops mentioned you before. You cannot stops the loop right away, when it's still executing.
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
Hope this helps.
Regards,