11-22-2005 01:30 PM
HI
well I am having some troubles with the arrays...I want to have an array with 2 elements which takes data continuously each second from a source and store them in those 2 locations,
e.g.. a value been stored as the 0 element and the next value comes from the same source will be stored as the new 0 element and the value already there (in the 0 element) will be passed to 1st When. when the next value comes in, the value in the 1st element will be deleted and the value in the 0 element will be stored in the 1 element and goes on like that..
can you give me a clue how to do that please.
PS I want to have recognize to recognise when the temperature values going up and when the temperature values going down..comparing the 2 elements in the array.
11-22-2005 01:42 PM
11-22-2005 01:49 PM
11-23-2005 05:26 AM
Hi,
A far less complicated way of doing things (if you only need the temp going up/down) is shown in the following example. By simply using a shift register and a compare function you can see when the temperature has increased from the last itteration.
(you may want to add timing into the loop to slow it down...)
Hope this is helpful
AdamB
NIUK
11-23-2005 08:33 AM
11-23-2005 11:32 AM