LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two inputs increment/decrement respectively

Hi

I've been trying, to no avail, to increment and decrement a single value. I have two inputs which must trigger the increment and decrement respectively. Each input is digital and must be event orientated. It seems so simple in my brain, but I haven't seem to have gotten it at all and feel pretty stupid.

 

So...

Button A is triggered, event causes an increment of the single numeric value.

Button B is triggered, event causes a decrement of the single numeric value.

 

E.g.. A triggered, value to 1

A triggered again, value to 2

B triggered, value to 1

 

If anyone could help this would be awesome. 

0 Kudos
Message 1 of 2
(2,032 Views)

Homework? However here is a 2min version

 

Got the same but with with ttl signals up to 80Mhz (about 40MHz mean) 😉

I choosed the easy way, counted both on 32bit counter (giving me 100sec to measure)  and calc the difference in software ..

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 2
(2,025 Views)