cancel
Showing results for 
Search instead for 
Did you mean: 

Counting without loop iteration

SOLVED
Maiz
Member
Solved!

Counting without loop iteration

Hello everyone,

 

I having trouble creating a simple counter that will count from 0 to 10000 and then repeat the sequence without using the while loop iteration. Can anybody help please? 

 

Best regards,

 

Maiz

10 REPLIES 10
RavensFan
Knight of NI

Re: Counting without loop iteration

Use a For Loop.

 

This sounds like a homework assignment.  Is there some other reason you can't use a while loop?

Maiz
Member

Re: Counting without loop iteration

Hi,

 

The counter will be inside a while loop but I am having trouble counting up and then repeating the sequence when I use the loop iteration.

 

I am very new to labview so apologies if this sound trivial.

 

Best regards,

 

Maiz

RavensFan
Knight of NI

Re: Counting without loop iteration

Perhaps you should look at Quotient Remainder function.  Particularly the Remainder output after you divide by 10,000

Maiz
Member

Re: Counting without loop iteration

Hi Ravensfan,

 

I would be really grateful if you can help me with a sample VI. Is that possible?

RavensFan
Knight of NI
Solution

Re: Counting without loop iteration

Message contains an image Message contains an attachment

Like this.

 

JÞB
Knight of NI

Re: Counting without loop iteration

Message contains an image

I also suspect this may be a homework assignment.  So, without doing your homework for you...... Try this as a thought-provolking exercise.

 

Untitled.png

Think about what might have been hidden..........


"Should be" isn't "Is" -Jay
Maiz
Member

Re: Counting without loop iteration

Lol, it not as assignment, it is part of a bigger program I am trying to develop for a weighing machine at work. Just for info I started programming only last week although we bought the SW years ago. I have made good progress with the NI site and Youtube, I really should think about training.

 

I will try and work out the missing blocks but it would be really easy if you just told me lol Smiley Happy

Maiz
Member

Re: Counting without loop iteration

Perfect thank you!!

Hooovahh
Proven Zealot

Re: Counting without loop iteration

Message contains a hyperlink

Some free training if you haven't found them already.

 

3 Hour Introduction http://www.ni.com/white-paper/5243/en/

6 Hour Introduction http://www.ni.com/white-paper/5241/en/

LabVEW Basics http://www.ni.com/gettingstarted/labviewbasics/

Self Paced training for students http://www.ni.com/academic/students/learn/

Self Paced training beginner to advanced, SSP Required http://sine.ni.com/myni/self-paced-training/app/main.xhtml

LabVIEW Wiki on Training http://labviewwiki.org/LabVIEW_tutorial#External_Links