ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

While loop

I am just developing a code.
 
Its purpose is it needs to increment to a set of value(for ex: from 1 to 1000) and then it needs to reset and repeat the same until the stop button is pressed.
Also I need to find out how many times it has repeated that.
 
Please help me how to reset the while loop and start counting again.I have attached my code.
 
Thanks
0 Kudos
Message 1 of 7
(3,292 Views)

Hi,

I've done a simple example with what you want.

 



Message Edited by Jorge Amaral on 04-22-2008 05:25 AM
Software developer
www.mcm-electronics.com





PORTUGAL
Download All
0 Kudos
Message 2 of 7
(3,289 Views)

Hope this helps....

Mathan

 

Don't forget to rate a good answer

Message 3 of 7
(3,256 Views)
i recommend you two things:
1.) Clean up your sourcecode. It is on the edge of getting unreadable. Get accustomed to document your code.
2.) Use the quotient&remainder function out of the numeric palette. It does exacly what you are looking for

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 7
(3,249 Views)

This would only work if your loop was running pretty quickly, but I only have 8.2 so I can't tell whether it is or not.  If it's running fast enough, this is your best bet.



Message Edited by JeffOverton on 04-22-2008 08:11 AM
0 Kudos
Message 5 of 7
(3,244 Views)

Thanks Jorge

Really thats the one i was looking for.

Good answer

 

Thanks

 

0 Kudos
Message 6 of 7
(3,216 Views)
Thanks everyone for your help
 
 
0 Kudos
Message 7 of 7
(3,215 Views)