K8000 : test program problem

Hi,
I am using K8000 with two different computers.
The first one has a motherboard LPT port, the second one a Parallel PCI extended card.
First I installed the K8000 test program downloaded on Velleman site (k8000_test_nt_2000_xp.zip) on each computer, with LPT port K8000 worked perfectly, with PCI as foretold it didn’t work (only SCL led was ON).

I downloaded the new version of K8D.dll and K8D.exe, and placed it in the system32 folder of the two computers.
Then I made my own program in VB (ConsoleApplication) to use SetI2CprinterPortAddress and test the communication between K8000 and my computer.
On the first execution of my program on the computer with the PCI port, the SCL led turned OFF and now it is everytime OFF even when I turn power supply off and on again (the led is OK, I’ve tested it).

After that experience I connect K8000 back to the first computer with motherboard LPT port and tested it again with the Velleman program test, it still worked perfectly.
Then I executed my own program on this computer (motherboard LPT port), the same thing happened and K8000 didn’t work.

Most of this, now when I launch the Velleman program test, K8000 don’t work neither and I have an alert message « K8e : This is the I/O routine for the K8000 card. This is not a stand-alone program ». This message did not appear on the first try of K8000.

I really don’t understand what it’s happening and what should I do to make the test program work again and my own program too.

Thanks for your help.

This is very strange problem.
The K8E.EXE should be automatically run from the K8D.DLL.
The communication between K8E.EXE and K8D.DLL is handled using a virtual file. If K8E.EXE doesn’t get proper commands from the DLL the alert (that you saw) will appear.

Maybe you have restarted your PC and the problem persists…?

If K8E.EXE is manually run the error message is also displayed.

When the problem appears you may go to Windows Task Manager and check on the Processes tab if K8E.EXE is running. If is, select it and click End Process button.

The PC restart didn’t fix anything.

Now when I turn off the power supply of K8000 for a while, then turn on again the SCL led turns ON. And it turns OFF when my program launch the SetI2CprinterPortAddress function. But all others function are not working. Here is a part of my code :
[code]System.Console.WriteLine(“K8000 Test Program”)
System.Console.ReadKey()
Start_K8000()
System.Console.WriteLine(“K8000 started”)
System.Console.ReadKey()

    SetI2CprinterPortAddress(&HEC00)
    System.Console.WriteLine("Port EC00")
    
    'Here the SCL led turns OFF

    ConfigIOchannelAsOutput(0)
    ConfigIOchannelAsOutput(1)
    ConfigAllIOasOutput()
    System.Console.WriteLine("IO as Output")
    System.Console.ReadKey()
    ConfigIOchipAsOutput(1)
    IOoutput(1, 128)
    System.Console.WriteLine("Out 16")
    System.Console.ReadKey()
    IOoutput(1, 160)
    System.Console.WriteLine("Out 14 et 16")
    System.Console.ReadKey()

    'Here all I/O leds are still OFF

    OutputDACchannel(1, 40)
    System.Console.WriteLine("DAC 1 a 40")
    System.Console.ReadKey()
    OutputDACchannel(2, 45)
    System.Console.WriteLine("DAC 2 a 45")
    System.Console.ReadKey()

    'Here DAC1 and 2 are still at Vmin

    Stop_K8000()
    System.Console.WriteLine("K8000 stop")[/code]

When the Velleman program test is running, the Task Manager shows the K8E.exe processes running, then I click the alert “OK” button and the processes stops, but the program still not works.

The K8E.EXE must start when you run the demo program, but it should not display the alert as seems to happen.

[quote]Most of this, now when I launch the Velleman program test, K8000 don’t work neither and I have an alert message « K8e : This is the I/O routine for the K8000 card. This is not a stand-alone program ». This message did not appear on the first try of K8000.[/quote] There has happened something in your PC that time. The communication between the K8D.DLL and K8E.EXE is not working.
If you have windows XP you may use the system restore to restore the PC back in time when the K8000 was working.

[quote=“VEL255”]
If you have windows XP you may use the system restore to restore the PC back in time when the K8000 was working.[/quote]

I restarted the whole test on a new PC with motherboard Parallel Port : installed Velleman K8000 program test, it worked, launched my own program it didn’t work and now the Velleman program test don’t work neither. It happened exactly the same that on the other PC.

As I have exactly the same problem with three different computers (windows XP on each), I don’t think that a system restore will fix anything, but I will try.

Is it possible to get the source code of any program (in any language) wich definitly works with a PCI extended card?

You can download a Delphi source that should work with the PCI parallel port card too. It is an installation package. It installs the source files to the C:\Program Files\Velleman\K8000D folder.
vel255.diinoweb.com/files/K8000_ … URCE_2.zip

Many thanks for this source code, I made K8000 running with my PCI card for the first time!
I think there is a problem with Visual Basic as the Delphi program runs perfectly.
I am going to swot Delphi manuals and tutorials