 mundo_152
		
			mundo_152
		
		
		
		
		
		
		
		
	
			07-22-2016 12:15 PM
I need to create a program that let you select the start and stop number and start count up and after it wounld start counting down from where it stop. The number would incresing from the constant that also the user is going to select.
 billko
		
			billko
		
		
		
		
		
		
		
		
	
			07-22-2016 12:19 PM - edited 07-22-2016 12:19 PM
@mundo_152 wrote:I need to create a program that let you select the start and stop number and start count up and after it wounld start counting down from where it stop. The number would incresing from the constant that also the user is going to select.
Show us the vi that isn't working for you.
 James.M
		
			James.M
		
		
		
		
		
		
		
		
	
			07-22-2016 12:24 PM
What have you tried so far?
I'm guessing you will need to use some or all of these:
Cheers
--------,       Unofficial Forum Rules and Guidelines                                           ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			07-22-2016 12:43 PM
@mundo_152 wrote:I need to create a program that let you select the start and stop number and start count up and after it wounld start counting down from where it stop. The number would incresing from the constant that also the user is going to select.
It would help if you could give an example of the desired output, e.g.
start=5
stop=8
output = 5-6-7-8-7-6-5
Is this about right or do you want something different?
 PalanivelThiruv
		
			PalanivelThiruv 
		
		
		
		
		
	
			07-22-2016 02:08 PM
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			07-22-2016 02:12 PM - edited 07-23-2016 10:49 AM
You don't need any shift registers! Here's a bunch of primitives sufficient to generate the required up-down ramp. All that's missing are the wires. 😄
 
Some assembly required 😄 😮
(there are many ways to do this of course.)
07-22-2016 02:13 PM
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			07-22-2016 02:16 PM
Don't let the user change diagram constants. Use controls like everybody else.
(diagram constant are for the programmer, not for the operator!)
(My code above (once assembled!) creates an array of number that you can wire directly to a graph;))
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			07-22-2016 02:48 PM
There is also the Ramp VI in the Signal Processing->Signal Generation palette that could do the job for you.
 AnalogKid2Digit
		
			AnalogKid2Digit07-22-2016 03:15 PM
Altenbach- the "Ikea" of LabVIEW 🙂