Yes this is much better as the test button requests and displays the employee ID and serial number when the knob is set to all tests (state 0 ) but it doesn't write data to the serial port to request the test selected by the knob...
I like the fact that you have set it up where changing the knob will initialize a write to the serial port but I
also would like the test button to not only request the employee ID & the serial number but to also write the knob
value (+1) to the serial port to start the test...
I hav ebeen playing around with what you sent but have not figured out how to start the test after the serial number
and employee ID have been entered and are displayed...
thanks again for all your help with this.
OK, it is very close.
Attached are a few modifications that I made.
Not sur if this is the right way to do this but i added code to send a command after getting the
serial number and amployee ID.
I also set the loop not to time out as it was not finishing.
It runs slow and not sure why yet but I also need to look at the device's code.