Good morning Mark,
RS = Reading / Time difference between readings
DT = Time differance between readings.
If you have access to a function generator set it to a known frequency and connect the input to counter 7 and set the frequency at say 300 Hz and try this bit of code.
BEGIN
RA1S T 7C(R)
END
As we are asking for the number of counts per second we would expect to see a value of 300 Hz and over all it will be very close. But if you look closely every so often you will see one count is high and the next is low, overall there is the correct amount but it does vary.
What happens is that the DT800 has been doing its house keeping routine and so one reading was taken slightly late and the next at the correct time.
Now try
BEGIN
RA1S T 7C(RS,R)
END
Now the readings will be quite steady because the time base has been corrected for any slight variations in time that may occur.
You can use the DT function to show any time variation between sequential readings. This type f function is often used for things like control loops (PID) or where the process is time sensitive.
BEGIN
RA1S T 7C(RS,R) 7C(DT)
END
Regards,
Roger
Good morning Mark,
RS = Reading / Time difference between readings
DT = Time differance between readings.
If you have access to a function generator set it to a known frequency and connect the input to counter 7 and set the frequency at say 300 Hz and try this bit of code.
BEGIN
RA1S T 7C(R)
END
As we are asking for the number of counts per second we would expect to see a value of 300 Hz and over all it will be very close. But if you look closely every so often you will see one count is high and the next is low, overall there is the correct amount but it does vary.
What happens is that the DT800 has been doing its house keeping routine and so one reading was taken slightly late and the next at the correct time.
Now try
BEGIN
RA1S T 7C(RS,R)
END
Now the readings will be quite steady because the time base has been corrected for any slight variations in time that may occur.
You can use the DT function to show any time variation between sequential readings. This type f function is often used for things like control loops (PID) or where the process is time sensitive.
BEGIN
RA1S T 7C(RS,R) 7C(DT)
END
Regards,
Roger