DashXL.net
August 20, 2018, 05:08:46 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to read a pid only while a Button is pressed.  (Read 412 times)
0 Members and 1 Guest are viewing this topic.
kgtm
Newbie
*
Offline Offline

Posts: 4


View Profile
« 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
Logged
Mike
Jr. Member
**
Offline Offline

Posts: 70


View Profile
« 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

Logged
kgtm
Newbie
*
Offline Offline

Posts: 4


View Profile
« 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 20 queries.