سؤال

The VI contains a for loop. In case of error i want to stop the for-loop.
So i unbundle the error line. and make a while-loop round the for-loop.
Setting is stop on error .
My issue: How to get out the value from the for-loop?
* Shifting register is not really working
* indexing cannto be configured (due to error line is a cluster?

هل كانت مفيدة؟

المحلول

Found the solution:

For-Loop --> right click on border --> add condition terminal --> connect this with the unbundle element

Screenshot of solution (yellow)

نصائح أخرى

Depending of LabVIEW version you are using you can do it differently. Conditional for loop was introduced sometimes at LabVIEW 8.6, before that version the only solution is to use while loop instead of for loop. No need to unbundle the error cluster, it can be wired directly into stop terminal. Error wire is also can be wired directly into boolean nodes in the latest versions of LabVIEW.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top