I’ve built the board up and think its working ok. All the relays are working with the push buttons and from the K8090 demo software. Only the relay power LED doesnt illuminate despite the 12v supply.
I want to experiment using VB express 2008. Currently running on Vista SP1.
Have been following the instructions to the T, but an issue with the code for Sample01 (toggle relay program)
It says the DLLNotFoundException was unhandled
Unable to load DLL ‘K8090.dll’: The specified module could not be found.
(Exception from HRESULT: 0x800700E)
[quote=“VEL448”][quote]… DLLNotFound … K8090.dll … could not be found …[/quote] The DLL should have been copied to your system32 folder during installation.
Thanks. The .dll file was in SysWOW64. I pasted it into System32 and have also left it in SysWOW64. I’m debugging the sample01 and it is still not working. I now get the following message:
BadImageFormatException Unhandled
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Any ideas? I seem to have a factory VistaSP1 which is unable to update windows no matter what I try. I’ve tried from fresh install. Perhaps this has something to do with it. Silly things dont work like Indexing etc.
Nothing to do with your version of Windows or anything else that needs updating.
You are compiling a 64 bit application, but the DLL is 32 bit (= BadImageFormat). Change your project’s configuration to compile for 32 bit (Google can tell you how, it’s easy).
[quote=“VEL448”]Nothing to do with your version of Windows or anything else that needs updating.
You are compiling a 64 bit application, but the DLL is 32 bit (= BadImageFormat). Change your project’s configuration to compile for 32 bit (Google can tell you how, it’s easy).[/quote]
Thanks. In the build configuration manager I changed the active solution configuration to new and the active solutions platform to x86. I dont now dont get ny error message when debugging the sample01 but the relays don’t toggle. I’ve tried all the ports but I know its connected via COM4. I do want to try an experiment with my own project rather than just use the demo.
[quote=“postmaster-general”][quote=“VEL448”]Nothing to do with your version of Windows or anything else that needs updating.
You are compiling a 64 bit application, but the DLL is 32 bit (= BadImageFormat). Change your project’s configuration to compile for 32 bit (Google can tell you how, it’s easy).[/quote]
Thanks. In the build configuration manager I changed the active solution configuration to new and the active solutions platform to x86. I dont now dont get ny error message when debugging the sample01 but the relays don’t toggle. I’ve tried all the ports but I know its connected via COM4. I do want to try an experiment with my own project rather than just use the demo.[/quote]
Ignore that, works just fine now, thanks. It was just a matter of disconnecting the usb cable and re-connecting and it works fine. This has really helped. Perhaps this could be mentioned in the instructions for future folk? cheers
A “BadImageFormatException Unhandled” is absolutely because of a 64-bit application using a 32-bit dll. You have fixed this by changing your project settings.
Having to unplug and replug the cable is possibly because it was previously unplugged while the software was connected. I can’t be sure though.
[quote=“VEL448”]A “BadImageFormatException Unhandled” is absolutely because of a 64-bit application using a 32-bit dll. You have fixed this by changing your project settings.
Having to unplug and replug the cable is possibly because it was previously unplugged while the software was connected. I can’t be sure though.