Shop OBEX P1 Docs P2 Docs Learn Events
Scaling RCTIME — Parallax Forums

Scaling RCTIME

statemachinestatemachine Posts: 24
edited 2005-12-06 18:03 in Learn with BlocklyProp
On page 24 of Industrial Control there is a short program that scales some values.Could anyone comment on this,or point me to some notes on the Parallax site that goes into detail on this matter?Bry.

Comments

  • Martin HebelMartin Hebel Posts: 1,239
    edited 2005-12-06 00:35
    TempSet = TempSet / 30?
    That was done simply to reduce the value received from RC time to within a range appropriate to the example being performed. RCTime provided a value way outside the range of a normal shower temperature.

    Does this clear it up?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <i>Electronic Systems Technologies
    Southern Illinois University Carbondale

    Personal Links - Lot of BASIC Stamp info

    and

    SelmaWare Solutions

    StampPlot Pro Version 3 Release 4

    Graphical Data Acquisition for your Micro and Imagination!

    Now allows additional controls to be added, or developed.
  • statemachinestatemachine Posts: 24
    edited 2005-12-06 01:56
    Actually, it was page 26.Why is CurTemp/5?Docs say to select at least 4 RC timeperiods.
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2005-12-06 02:09
    Well, I'm just all confused, my page 26 is a blank page. Are in version 1.1 or the pdf on line? I'd take a stab, but would prefer to see it in context for a book I really haven't looked recently.

    -MH

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <i>Electronic Systems Technologies
    Southern Illinois University Carbondale

    Personal Links - Lot of BASIC Stamp info

    and

    SelmaWare Solutions

    StampPlot Pro Version 3 Release 4

    Graphical Data Acquisition for your Micro and Imagination!

    Now allows additional controls to be added, or developed.
  • statemachinestatemachine Posts: 24
    edited 2005-12-06 02:36
    It was page 26,the PDF online.
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2005-12-06 02:45
    Ah, I see now. It's on 24 in the PDF I opened using the text page numbers instead of the pdf page numbers. Confusion clearing...

    In that program, I was trying to have the BASIC Stamp mimic the response of a system. So the the output wasn't linear, but more of a 1st order type response. THe larger the difference, the more effect it would have. By using CurTemp = CurTemp - TempSet/5, the amount changed by curTemp would be affect by the size of TempSet. The value of 5 I think was more or less trial and error for the desired results.

    I know we said we'd let the reader figure it out, but never really expected anyone to ask [noparse]:)[/noparse]

    Hope this clears it up somewhat?

    -Martin
  • statemachinestatemachine Posts: 24
    edited 2005-12-06 17:28
    Yes,thank you,Martin.But I think I still need to do some homework on this matter.Part of the problem is me jumping around through all these various manuals for whatever looks interesting.Did you write StamPlot?
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2005-12-06 18:03
    Yup, both lite and pro, and StampDAQ also, adn of course a co-author on industrial control.

    Let me know if we can help more.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <i>Electronic Systems Technologies
    Southern Illinois University Carbondale

    Personal Links - Lot of BASIC Stamp info

    and

    SelmaWare Solutions

    StampPlot Pro Version 3 Release 4

    Graphical Data Acquisition for your Micro and Imagination!

    Now allows additional controls to be added, or developed.
Sign In or Register to comment.