LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you make a simple counter loop in labview 7.1?

Solved!
Go to solution

I'm trying to teach myself how to use labview 7.1 but having difficulty figuring out how to use the functions correctly. I'm trying to create a simple loop to count from 1-10 with a 1 second delay between each number. I would appreciate the help!!!

0 Kudos
Message 1 of 4
(11,819 Views)
Solution
Accepted by topic author botenb

 Have classes started again?

 

Key words are "loop" (try a FOR loop from the structures palettte), "delay" (try a wait(ms) from the timing palette). Use a diagram constant for the "1 second" (or 1000ms). and use a numeric indicator to display the current count (e.g. using an indicator wired to the iteration terminal of the FOR loop). Since [i] starts counting from 0, use a +1 primitive first. Wire a constant to the N of the loop to determine the total number of iterations. You should be able to figure out the correct value, either by math or by trial and error. 😉

 

Now try to assemble everything, shouldn't be too hard. Where are you having problems? Have you looked at the examples? Have you done any tutorials?

 

Once you have a draft, post it here and we can suggest possible improvements.

 

 

Message 2 of 4
(11,815 Views)

Cool thanks for the help with that. This isn't for a class I'm learning it for work purposes I'm sure I will be posting a ton more over the next couple of weeks. 

0 Kudos
Message 3 of 4
(11,808 Views)

@botenb wrote:

Cool thanks for the help with that. This isn't for a class I'm learning it for work purposes I'm sure I will be posting a ton more over the next couple of weeks. 



If you are doing it for work I would try to talk them into a class and make your life a little easier.  There are many options for getting training.

 

There are free options  http://www.ni.com/gettingstarted/labviewbasics/ or just search the web.  But the NI site has tons of information and examples.

 

Paid options range from buying a LabVIEW book "LabVIEW for Everyone" or taking a self paced NI course with a CD or take an actual NI course (more expensive).

 

I have taken a few LabVIEW courses at a local college through the adult education programs and a few on CD from NI.

0 Kudos
Message 4 of 4
(11,794 Views)