11-08-2005 05:42 AM
11-09-2005 04:25 AM
11-09-2005 09:30 AM
Hi Francois,
Looking at your code, it seems you are outputting values on analog output 0. And then reading these in on analog input 0.
How are these two lines connected externally/physically?
Can you test your voltage outputs directly using an oscilloscope?- do you get the signal you want/ were expecting?
Thanks
Emma R
NIUK & Ireland
11-09-2005 09:39 AM
11-10-2005 05:57 AM
Hi Francois,
I noticed that in your read loop you have set "dt" on your timing loop to 250. "dt" is the time between executions, which means currently that loop is only executing 4 times a second. Looking back at your original functionality specifications you stated that you required a sampling frequency of 250Hz. You therefore require a "dt" of 4.
Try changing this value accordingly and running your application. The difference in sampling rate may be the cause of the voltage output correspondance issue you were having.
11-10-2005 06:45 AM
11-10-2005 08:14 AM