LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipulating variables

Solved!
Go to solution

Hi! I believe my problem is a very simple one, nevertheless i can`t figure out how to solve it. Here it goes: i'm reading the output of a millisecond timer which is in a while cycle. What i would like to do is to be able to subtract the new value with the old one, keeping the new one in order to do the same in the next cycle. Here is an example:

 

cycle 1: ms count= 1000

             output=1000

cycle 2: ms count=2500

             output=2500 - 1000 = 1500

cycle 3: ms count=3300

             output=3300-2500 = 800

cycle 4: ms count=4000

             output=4000-3300=700

 

As you con see it seems quite simple, but aint no labview expert.. jje!

Thanks in advance!!!!

 

 

 

 

 

 

0 Kudos
Message 1 of 4
(2,591 Views)
shift register.  Don't know what it is?  Now is a good time to find out.
Message 2 of 4
(2,585 Views)
Solution
Accepted by topic author berper

Hey,

 

You can use shift-registers, as in the following:



image

Christian
Message 3 of 4
(2,582 Views)

Thanks guys! That was exactly what i was looking for!!!

Thanks again, see you soon! (can bet for it)

0 Kudos
Message 4 of 4
(2,560 Views)