EnTech Taiwan EnTech Taiwan
June 25, 2017, 09:31:58 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TVicLPT Interrupt Query  (Read 7546 times)
Overberg

Posts: 3


« on: September 01, 2009, 06:18:24 AM »

I am using your TVicLPT component in Delphi 7 using the IRQTest Application program for reading multiple interrupts.

I would like to use the IRQTest program without having to click on any buttons or checkboxes. When I delete the buttons (Open TVicLPT, etc.) and checkboxes (unmask irq, etc) and put the code together the program does not work all the time.

I would like to integrate this code into my program, but need it to work without any clicking of buttons.

The origional IRQTest does not always work. I sometime have to wait a long time or reset my XP computer.

Any advise?

Thanks.
Logged
Overberg

Posts: 3


« Reply #1 on: September 04, 2009, 12:18:08 AM »

If this question is not clear please let me know so that I can rephrase it.
I assume that the trial version will expire soon on my PC.
It would be nice to sort this out before the time.

Thanks.

Logged
Dmitry
Administrator
*****
Posts: 136


« Reply #2 on: September 09, 2009, 12:48:28 AM »


All you need to handle LPT interruptions is following:

- place TVicLPT on the form or create TVicLPT instance

- install the handler for OnLptInterrupt event

- VicLPT1.Active := 1; //open the driver (once at begin of your application)

- VicLPT1.CurrentLptMode := LPT_SPP_MODE; // set LPT mode

- VicLPT1.IrqNumber := 7; // set IRQ number

- VicLPT1.UnmaskIrq(); // enable interrupt processing

....

- VicLPT1.Active := 0; //close the driver (once at end of your application)

P.S. I do not want to be discourteous, but I think this (IRQTest) example is quite sufficient fore any programmer. Click on buttons/boxes at the design time and grab the sources!
Logged

Dmitry,
Toolkits technical support
Overberg

Posts: 3


« Reply #3 on: September 09, 2009, 03:15:23 AM »

Thanks for the reply.
No offense taken.
I just want the component to work WITHOUT having to click any buttons to start it.

I did exactly what you suggested (before and now again). Still no success.

I figured that maybe I must look at the hardware as you are very confident about the component.
Maybe you had such a problem in the past.
I first run your original IRQTest program with the buttons - then everything works.
I then run the modified program without any buttons but code as you suggested. It only sees the first event.
When I run the original IRQTest program again then it does not work.
I must then restart Windows XP.
What could be wrong.

Thanks.


Thanks.
Logged
Dmitry
Administrator
*****
Posts: 136


« Reply #4 on: October 15, 2009, 03:17:08 AM »

I just want the component to work WITHOUT having to click any buttons to start it.

Click on buttons in the *design-time*! And grab the content!
Logged

Dmitry,
Toolkits technical support
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!