Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

K8055 counter [was: libusb access...]

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Valdas Jankūnas

Mark Morgan Lloyd ra??:

Luca Olivetti wrote:

...

Show quoted text 8 lines
This is now working fairly well and I'm starting to add extras- variable rate polling, counter rate extraction and so on. I'm left with one niggle though which has a fairly significant cosmetic effect. I've replaced the scrollbars in the original app with vertical TrackBars and ProgressBars for analogue output and input respectively. The ProgressBars work nicely with zero at the bottom, but the TrackBars appears to have zero immutably at the top.

If I set debounce time to 0ms for I2 (with my app developed in Lazarus) then counter starts counting "air" (board is free from external connections)- it not stops even I shortening I2 input with Inp1 button. Can You test this with Your board?

Valdas Jank?nas

Reply by email

Mark Morgan Lloyd
to Valdas Jankūnas

Valdas Janku-nas wrote:

[Apologies to The List but I've chopped the original text- it was coming out as a single line here and I'd rather not spend time reformatting. Apologies also if this is considered off-topic.]

The control byte, set to a fixed $05 in the C++ demo program, appears to be sensitive to other values. I'm considering approaching Velleman to ask if they have documentation with the (mild) threat that I'll load the app onto Sourceforge or Berlios with the reset and debounce facilities disabled and a pop-up hint that they wouldn't tell me.

I can confirm the "counting-air" behaviour from last night. What's more something told the board to do something to the kernel (Linux 2.6.x) that subsequently prevented the board from initialising itself- that was only cured when I rebooted the computer. I don't think these boards have any USB-accessible non-volatile storage but I was obviously worried that I'd broken something.

In extremis I'll load the Velleman software onto one of our very few Windows computers and see if I can sniff the bus, I really don't like doing this since I don't want to risk fouling up a system used for e.g. PABX setup.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email