BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

for(imstuck) gets bold!


@tst wrote:

Technically, it should probably be while(imstuck)... 😉

 

Or do you have a well defined iteration count on that? Maybe something like for(postcount=0,postcount<5000,postcount++){imstuck}? That's a bit of a mouthful...


Wire a -1 to the 'N' terminal, you'll run forever (this was brought to my attention on LAVA). In fact, I considered doing this with a conditional terminal in my code, just as my "signature" Smiley Very Happy

0 Kudos
Message 21 of 39
(6,593 Views)

@for(imstuck) wrote:

Wire a -1 to the 'N' terminal, you'll run forever (this was brought to my attention on LAVA). In fact, I considered doing this with a conditional terminal in my code, just as my "signature" Smiley Very Happy

Sounds cool.  Except my For Loop runs 0 times with a -1 on the N terminal

Message 22 of 39
(6,588 Views)

@RavensFan wrote:

@for(imstuck) wrote:

Wire a -1 to the 'N' terminal, you'll run forever (this was brought to my attention on LAVA). In fact, I considered doing this with a conditional terminal in my code, just as my "signature" Smiley Very Happy

Sounds cool.  Except my For Loop runs 0 times with a -1 on the N terminal


oh mannnnnnnnnnnnnnnnnnn You know what? Now that I think about it, I think I actually heard it from Ben not on LAVA! But, I obviously never tried it. That's interesting -- makes me wonder why the N terminal isn't a U32 then. Maybe so you can decrement the output of the terminal and get negative numbers without having to do the coerce to I32 yourself.

0 Kudos
Message 23 of 39
(6,576 Views)

Congrats Greg. Its a well deserved honor.



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
Message 24 of 39
(6,572 Views)

@for(imstuck) wrote:

oh mannnnnnnnnnnnnnnnnnn


Just apply Zeno's paradox to it and it will run forever... 😉


Anyway, the terminal is I32 because all indexing operations are I32 (the i terminal, array indices, etc.).


___________________
Try to take over the world!
Message 25 of 39
(6,570 Views)

Congratulations

Message 26 of 39
(6,547 Views)

@for(imstuck) wrote:

@tst wrote:

Technically, it should probably be while(imstuck)... 😉

 

Or do you have a well defined iteration count on that? Maybe something like for(postcount=0,postcount<5000,postcount++){imstuck}? That's a bit of a mouthful...


Wire a -1 to the 'N' terminal, you'll run forever (this was brought to my attention on LAVA). In fact, I considered doing this with a conditional terminal in my code, just as my "signature" Smiley Very Happy


Actually, My mobile sometimes pauses animated icons- then they "Catch up"  My 8-ball gets a ton of english, Aeastet's can cause nausea, Greg's.... Just makes me smile (Zippp, zippppp, zipppppppppp! round and round!Smiley LOL)

 

Again, Thanks For the contributions!  3K more to PZ!


"Should be" isn't "Is" -Jay
0 Kudos
Message 27 of 39
(6,540 Views)

Congrats Greg! Thanks for all your advice over the years Smiley Happy

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 28 of 39
(6,521 Views)

congrats in gettn BOLD !

Message 29 of 39
(6,494 Views)

Congratulations to you, Greg!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 30 of 39
(6,466 Views)