LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a counter

Could some one guide me on how to create a counter in labview I want to create a counter that starts at 0000 and ends at 1111.
Any help would be appreciated
 
Thanks.
0 Kudos
Message 1 of 7
(3,541 Views)
What kind of things do you want to count?
0 Kudos
Message 2 of 7
(3,536 Views)
The counter will be used to acess RAM memory locations so I need to start at 0000 and increment bu 1 bit until I have 1111
 
Thanks
0 Kudos
Message 3 of 7
(3,533 Views)
Doesn't come much simpler than this.
 
 
You should go to http://www.ni.com/devzone/lvzone/fundamentals.htm and look at all of the resources available for learning the basics of LabVIEW. Reviewing the shipping examples of LabVIEW program would also be a very worthwhile exercise.

Message Edited by Dennis Knutson on 03-03-2006 09:30 AM

0 Kudos
Message 4 of 7
(3,518 Views)

I think aztlan wants to count in binary- 0000, 0001, 0010,0011....1111.

Could use the for/next loop method and convert the number to a binary array of 4 bits. Then use the bits to fire digital outputs connected to the memory's address lines (if in fact this is a physical device)

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 7
(3,501 Views)
I almost suspect that you want to go from binary 0000 to binary 1111, so just set the loop counter in Dennis' example to 16 and set the display of the indicator to (format: binary, 4 digits, pad with leading zeroes). 🙂
0 Kudos
Message 6 of 7
(3,501 Views)
Thanks this really helps. Thats is exactly what I want t do.
0 Kudos
Message 7 of 7
(3,493 Views)