|
Post by Rob Bell on Mar 15, 2004 12:49:27 GMT -5
Guys, I wonder if any of you out there are experts in programming? Tim Jenner has been working on an analogue to digital converter to work in conjunction with a laptop to log temperature over time. If we can get this all to work, then we have a powerful tool for measuring temperature over time to determine whether the electric water pump works, and indeed to look into other problems, including the oft discussed thermal cycling...
Tim has put together this bit of code - but the problem is that the channels refuse to read independently of one another. If one ignores 2 of the three channels, then that one channel records correctly - irrespective of which channel is being interrogated.
Any thoughts/ suggestions would be much appreciated!
Here's Tim's code comming up...
|
|
|
Post by Rob Bell on Mar 15, 2004 12:55:49 GMT -5
[glow=red,2,300]PART ONE[/glow]
|
|
|
Post by Rob Bell on Mar 15, 2004 13:01:15 GMT -5
[glow=red,2,300]PART TWO[/glow]
|
|
|
Post by Rob Bell on Mar 15, 2004 13:02:14 GMT -5
I can email anyone how is interested Tim's original code if they'd prefer - just let me know!
|
|
|
Post by TimW on Mar 15, 2004 13:22:32 GMT -5
Surely it's blindingly obvious...!!!!!!
|
|
|
Post by Rob Bell on Mar 15, 2004 13:24:46 GMT -5
Surely it's blindingly obvious...!!!!!! My thoughts exactly... err...
|
|
|
Post by Rob Bell on Mar 16, 2004 7:26:29 GMT -5
|
|
|
Post by ScarletFever on Mar 16, 2004 8:13:02 GMT -5
Sorry guys can't help with this one - might as well be double dutch for all i know!
|
|
|
Post by dave on Mar 16, 2004 18:38:31 GMT -5
I used to know Cobol and a bit of Assembler, but I guess that was a few years ago now
|
|
|
Post by TimW on Mar 17, 2004 2:01:57 GMT -5
Of course, depending how precious Tim is of the code, it would be a natural choice to have a chat with Carl at Emerald, I think he is perfectly placed to advise on the code, albeit it might get incorporated into the next Emerald software release Tim
|
|
|
Post by Rob Bell on Mar 17, 2004 7:00:37 GMT -5
I used to know Cobol and a bit of Assembler, but I guess that was a few years ago now Major respect Dave! Unfortunately, my programming extended as far as BBC BASIC, a bit of 6502 assembler and I've dabbled a little bit in C/ Java/ html... But why Tim's code doesn't work as it should elludes me Tim, would Karl be prepared to look at this code for gratis? For a guru responsible for the Emerald M3D map, it shouldn't present him with too much of a problem...
|
|
|
Post by apttony on Mar 17, 2004 8:43:04 GMT -5
I've just downloaded the code & will have a look - no promises though
|
|
|
Post by Rob Bell on Mar 17, 2004 9:48:02 GMT -5
Thanks Tony - you're a star!
|
|
|
Post by apttony on Mar 17, 2004 10:09:49 GMT -5
Message for Tim Jenner:
Tim, I've only had a quick look so far & have not as yet used this device, and I am not sure of the h'ware aspects that this is built into, so bear with me if I'm covering ground you have already looked at.
1: MAXIM 118 spec says that when power is first applied, a conversion should be performed to initialize the MAX118, but disregard the data output. I don't see that in the code.
2: DATAIN: does pcont need to be initialised by forcing it to a specific bit pattern rather than bitwise inclusive OR with an arbitary unknown state on power-up.
3: Again, I don't know the hardware build, but are delays reqd when addressing the ADC's. The spec talks of a min time before conversion time e.g. 260 ns?
4. Similarly there could be a delay reqd while conversion takes place.
5. Since it apparently works on just one address, it could be the lack of delays when moving on to the next address.
Rob: Is there an easier way of talking with Tim? ;D
|
|
|
Post by Rob Bell on Mar 17, 2004 10:17:58 GMT -5
Tony, Tim reads the forum, but because of work comitments, he's often away from base. I'll get Tim to email you?
|
|