evergreen
05-16-2006, 11:55 AM
Hey guys,
So pretty much I'm saving 400 values, with each value between 0-4095. I'm saving them as words, in EEPROM locations of 0-800 (step 2). After all of my data is saved (I tested by saving 4095 to all 400 locations), I run the attached program (dump test 001), which is a modified version of the example code that came with DAQ. I then go into DAQ, check the "download data" box, and click the "connect" button. DAQ then quickly reads all of the values in EEPROM locations 0-800 (step 2), and dumps it into a row.
Now here' the problem. All of the values are 255, instead of 4095. I've messed with the example dump code, and made all the variables words, hoping they would be large enough to hold the number "4095".
Does anyone know how to fix this problem?
Thanks
Matt
So pretty much I'm saving 400 values, with each value between 0-4095. I'm saving them as words, in EEPROM locations of 0-800 (step 2). After all of my data is saved (I tested by saving 4095 to all 400 locations), I run the attached program (dump test 001), which is a modified version of the example code that came with DAQ. I then go into DAQ, check the "download data" box, and click the "connect" button. DAQ then quickly reads all of the values in EEPROM locations 0-800 (step 2), and dumps it into a row.
Now here' the problem. All of the values are 255, instead of 4095. I've messed with the example dump code, and made all the variables words, hoping they would be large enough to hold the number "4095".
Does anyone know how to fix this problem?
Thanks
Matt