I'm not a great programmer. Ok, not even a good one, but I still need applications. This week I needed an app to read a rotary shaft encoder, do some math based on a few other inputs, and give the user a running result.
Installing the encoder driver, I noticed that it used the exact same FTDI D2xx USB chip as my Prologix USB converter. Cool, as I had written a control program for my HP distortion analyzer last year using the USB converter.
Didn't have a clue as to how to do a continuously running task, but looked at the PB examples and found PwrClock that shows how to set up a timer.
Ok, brought up PBForms and created a screen. Stole the few lines of timer code from PwrClock. Copied the FTDI control code from my previously written app. Bingo, a nice working app in a couple hours to wow my boss and co-workers. Not the big complex stuff some of you do, but it's sure nice to have things just fall together every now and then.
Installing the encoder driver, I noticed that it used the exact same FTDI D2xx USB chip as my Prologix USB converter. Cool, as I had written a control program for my HP distortion analyzer last year using the USB converter.
Didn't have a clue as to how to do a continuously running task, but looked at the PB examples and found PwrClock that shows how to set up a timer.
Ok, brought up PBForms and created a screen. Stole the few lines of timer code from PwrClock. Copied the FTDI control code from my previously written app. Bingo, a nice working app in a couple hours to wow my boss and co-workers. Not the big complex stuff some of you do, but it's sure nice to have things just fall together every now and then.

Comment