Shop OBEX P1 Docs P2 Docs Learn Events
select just one k table — Parallax Forums

select just one k table

dbjdbj Posts: 75
edited 2005-11-12 18:04 in BASIC Stamp
How would you change code to use k type and output just F temp without haveing to type 1 on keboard? this code stuff is tuff!




Post Edited (dbj) : 11/9/2005 12:12:58 AM GMT

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-06 21:19
    That's a very old program -- I've attached a newer version that is far easier to update (this is available from our DS2760 page).· All you have to do is hard-code the thermocouple type instead of looking for user input.· Keep in mind that everything starts with C and gets converted to F -- so· you probably can't remove any variables without creating a problem somewhere.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • dbjdbj Posts: 75
    edited 2005-11-06 22:31
    When you say hard code you mean the identifyer that I got when I ran the one wire device ID program, I have two DS2760 to run data from. each has its own number.
    Thanks David
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-06 22:55
    What I meant is that you can hard-code the table selection so that you only use the K table. If you've got two DS2760s on the same IO pin, you'll need to use the MatchROM command to communicate with each individually.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • dbjdbj Posts: 75
    edited 2005-11-07 01:37
    Is this what you mean?? it still only shows one sensor not the one on i/o 9

    Post Edited (dbj) : 11/9/2005 12:15:14 AM GMT
  • dbjdbj Posts: 75
    edited 2005-11-07 05:57
    I feel like a child in a toy store, too mutch!! This cant find one wire device? Why

    Post Edited (dbj) : 11/9/2005 12:17:29 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-07 06:04
    Hello,

    ·· Your messages would be easier to read if you would attach your code rather than pasting it in the message body.· Especially with the size of this program.· Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • dbjdbj Posts: 75
    edited 2005-11-09 00:18
    Thanks chris sorry. Have a great day!! David
  • dbjdbj Posts: 75
    edited 2005-11-12 07:03
    I am trying to display temps useing one type of thermocouple (k) type, cant figure out how to do this without selecting (1) from the keyboard.Just load the (k) table for math and conversions. Thanks
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-12 18:04
    Well for starters, the first program is trying to load a table with a different filename than you have here.· To be honest, this doesn't look like enough of a program to do what you're trying to do.· There is no real functional code here.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.