|
|
| Author |
Message |
mcbridep Guest
|
Posted: Mon Dec 16, 2002 12:42 pm Post subject: TC-08 and Linux |
|
|
We intend using a Pico TC-08 with Linux (Red Hat 7.2). We have obtained the file tc08.tar, but need answers to the following questions.
-The driver tc08lnx places the results of conversions in the shared memory block. How may we convert these integer numbers to temperatures?
-The driver does not appear to provide any means of changing the resolution of the device, filter factor or accessing the cold junction temperature etc. How may this be acheived?
-The file tc08.tar does not contain the source file tc08lnx.c . How may we obtain this file?
Regards
Peter |
|
| Back to top |
|
 |
matthew Site Admin

Joined: 25 Sep 2002
Posts: 133
Location: Cambridgeshire, UK
|
Posted: Wed Dec 18, 2002 11:38 am Post subject: |
|
|
Hi Peter,
The best answer to your first question lies in the help files tc08.hlp (located in the Start Menu | Programs | Pico Technology once you have installed the windows application)
This contains information on how to convert values.
The Linux driver does not have the capability to change the resolution directly but the following information will help you to modify the driver (from the help file):
0x00, /* Channel 1 */
0x20, /* Channel 2 */
0x40, /* Channel 3 */
0x60, /* Channel 4 */
0x80, /* Channel 5 */
0xA0, /* Channel 6 */
0xC0, /* Channel 7 */
0xE0, /* Channel 8 */
0x01, /* version */
0x22, /* Cold junction- reference */
0x42, /* Cold junction- thermistor */
RES_16BIT 0
RES_15BIT 0x04
RES_14BIT 0x08
RES_13BIT 0x0C
The above would be #defines in your application
All you need to do is perform a logical bitwise OR on the channel address with the resolution code:
| Code: | | channel_3 = 0x40 | RES_14BIT |
(All channels must be the same resolution though).
With regards to the driver code you would like ... I will email this to you.
Best Regards, |
|
| Back to top |
|
 |
jaycee Guest
|
Posted: Tue Feb 11, 2003 12:04 pm Post subject: Driver code |
|
|
| matthew wrote: | Hi Peter,
<snippage>
With regards to the driver code you would like ... I will email this to you.
Best Regards, |
I'm looking at using the TC-08 on our underpowered lab logging PCs, and consequently started with a view to using linux.
Is it possible to get this driver code? I'd find it really useful to get a grip on the wire-protocol being used without having to sniff the serial connection!
On a related note, is the source not included in the tar file for corporate, or for other reasons?
Many thanks,
jc |
|
| Back to top |
|
 |
Jonathan Matthews Guest
|
Posted: Tue Feb 11, 2003 12:28 pm Post subject: Re: Driver code |
|
|
| jaycee wrote: | | matthew wrote: | Hi Peter,
<snippage>
With regards to the driver code you would like ... I will email this to you.
Best Regards, |
I'm looking at using the TC-08 on our underpowered lab logging PCs, and consequently started with a view to using linux.
Is it possible to get this driver code? I'd find it really useful to get a grip on the wire-protocol being used without having to sniff the serial connection!
On a related note, is the source not included in the tar file for corporate, or for other reasons?
Many thanks,
jc |
Baa humbug.
Did the registering thing, but not the subsequent logging in thing.
I posted the quoted message, FWIW.
jc |
|
| Back to top |
|
 |
David ward Newbie
Joined: 31 Oct 2007
Posts: 1
|
Posted: Wed Oct 31, 2007 10:30 am Post subject: Copy of tc08lnx.c |
|
|
Could you send me a copy of the source for tc08lnx.c too please?
I would like to modify the driver to log to a file in the standard format we use on our instrument rather than have a separate process just to convert the format of a text file. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|