You are not logged in - Log in
Sign up for our newsletter! 
Home Dashboards Forum Tools Help Contact Us

Author Topic: How to read a pid only while a Button is pressed.  (Read 668 times)

Offline kgtm

  • Newbie
  • *
  • Posts: 4
    • View Profile
How to read a pid only while a Button is pressed.
« on: May 22, 2018, 04:07:55 am »
Does anyone know how to do a Skin that has a button that will read a PID only while a button is pressed if the button is release it will stop reading those pids.

Thanks in advance

Offline Mike

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: How to read a pid only while a Button is pressed.
« Reply #1 on: May 23, 2018, 11:39:38 pm »
Not sure I understand.
You could perhaps do this (pseudo logic) ...
If button NOT_PRESSED
   buttonA text  = "Press for PID value"
   buttonA visible = true
   buttonB visible = false
If button PRESSED
   buttonA visible = false
   buttonB visible = true
   buttonB use PID = true
   buttonB text  = "Your PID is %S

Hint: Use a state conditions for the if clauses.

Lotta assumptions made.

Cheers,
Mike


Offline kgtm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: How to read a pid only while a Button is pressed.
« Reply #2 on: May 25, 2018, 06:26:15 pm »
Mike thanks for reply.
what I want to do is add to PID read list while the button is pressed an then remove it once released.
so lets say, it is scanning for Speed and RPM only, so PID 0C and 0D, if I press the coolant temp and hold it it will add coolant temp Pid 05 and once I let go it will removed it and go back to scan 0C and 0D only.

Thanks for help.

 

Home | Dashboards | Forum | Help | Contact Us | Terms of Service
Powered by Palmer Performance
Copyright © 2018 Palmer Performance Engineering, Inc. All Rights Reserved.