LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put a breakpoint inside a for loop.

Hi, I would like to know the steps to put a breakpoint inside a for loop.

 

Normally when I place a breakpoint on a for loop, the red border is in the outer area.

 

I am trying to put the red border inside the for loop.

 

Figure is attached for your reference.

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

Hi msabah,

 

place a breakpoint on a wire inside the FOR loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,115 Views)

Hi GerdW,

 

When I place breakpoint on a wire inside a for loop, a red dot symbol appears on the wire.

 

Whereas I am looking for breakpoint with red border in the inner loop as shown in above post figure.

0 Kudos
Message 3 of 9
(2,099 Views)

You have to decide, where you want to have your breakpoint.

 

It is either on a wire or structure inside the loop (with the appropiate symbol, usually a stop), OR it is on the loop then LabVIEW will stop on the entrance of the loop.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 9
(2,090 Views)

@JensG69 wrote:

You have to decide, where you want to have your breakpoint.

 

I want the breakpoint in the inner boundary of for loop as shown below.

IMG-20210810-WA0000.jpg



Please tell the steps how to get this.

 

 

0 Kudos
Message 5 of 9
(2,082 Views)

You can't do that specifically. Why is it that you want the red square inside the loop? What are you trying to accomplish? If you basically want to stop at when the loop iteration is complete you need to locate the wire that will most likely be executed last and place a break point on that wire. In your example below place the break point on the wire after the Add. The update of the shift register and the indicator will be the last thing to be executed in the loop.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 9
(2,079 Views)

Hi msabah,

 


@msabah38 wrote:

Please tell the steps how to get this.


Which LabVIEW version was used to create that image?

Which LabVIEW version do you use now?

There probably was a (subtle) change on how the block diagram shows breakpoints set on structures regarding "inside"/"outside" structure borders!

 

To repeat all that has been said: Either set the breakpoint

  • on the structure border to stop when the structure is entered
  • on a wire inside the structure to stop inside that structure each iteration/execution
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(2,075 Views)

@GerdW wrote:

Hi msabah,



Which LabVIEW version was used to create that image?

 


I don't know. It is taken from a CLD re-certification exam sample question paper.


@GerdW wrote:

Which LabVIEW version do you use now?

I use 2019 LabVIEW version.

0 Kudos
Message 8 of 9
(2,045 Views)

@msabah38 wrote:

@JensG69 wrote:

You have to decide, where you want to have your breakpoint.

 

I want the breakpoint in the inner boundary of for loop as shown below.

IMG-20210810-WA0000.jpg



Please tell the steps how to get this.

 

 


  1. Shift-right-click to get the diagram tools palette
  2. Pick the breakpoint tool
  3. Click inside the FOR loop.

altenbach_0-1628617610641.png

 

 

Message 9 of 9
(2,036 Views)