LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you set a breakpoint to activate after a certain number of loop iterations?

I would like to troubleshoot my loop activity after more than a hundred iterations, and I would like to do it without modifying the original code.  This seems like a function that would be popular - have I just not found it, or is there a reason it's not available?  I'm interested in answers pertaining to any version of LabVIEW.
0 Kudos
Message 1 of 3
(3,076 Views)
You need a conditional breakpoint.  Right click on the wire coming out of the i of your for loop.  If you don't have one make up an indicator so you have the wire.  Right click and select Custom Probe>>Conditional Signed32 Probe.  Then click on the condition tab and set it as you want.
0 Kudos
Message 2 of 3
(3,067 Views)

With LabVIEW 7.0 and later, you can stick a custom probe on a wire coming from the iteration terminal of the loop.  In the custom probe, you have the option to have the probe pause (i.e. hit a breakpoint) if the numeric value in the probe is equal to, greater than, or less than a certain value.  I think this should suit your needs (if you're using LabVIEW 7.0 or later).  If not, then yes, you have to modify the code by sticking in a case structure with a breakpoint in the case that executes when the iteration goes past a certain value.

Hope this helps,

-D

0 Kudos
Message 3 of 3
(3,066 Views)