VM110/K8055, Vista and Matlab 7.1 not cooperating

Hello everyone!
I recently purchased a VM110 and had been looking forward to interfacing with it using Matlab 7.1 on my Sony Vaio running Windows Vista.

If someone has any experience with this I would very much like to hear about it.

For me it doesn’t appear to work at all. The included testing software is able to control the VM110, but when I call the DLL (K8055D.dll) from matlab it returns some libpointers but nothing happens with the VM110.

I have tried using the files and procedure supplied here:
hackhole.blogspot.com/2007/11/in … -with.html
but that doesn’t work. I have also tried this procedure using the K8055D_C.h header file included on the CD that came with the VM110. Neither that works.

I have also tried to use a mex-interface dll-file from my university (which calls K8055.dll) that I have successfully used myself on computers running Windows 98 (or 2000). Neither this works on my Vaio.

It seems to me that the problem is caused by incompatible software. Could it be Vista? Could it be Matlab 7.1? Or both?

I discussed the problem with some of my fellow students yesterday and they recommended that I tried to interface with the VM110 from within some older windows version running in VirtualBox (see virtualbox.org/). I haven’t yet found any installation cd’s for older Windows versions yet but I will try this method as well. Do you think it could work?

Looking forward to reading your replies!

Thanks
/Martin

Have you tried the latest DLL version too?
k8055dll_rev3_0_2.zip
New DLL (rev 3.0.2) file for K8055 & VM110, with Windows Vista support.

You’ll find it from the downloads page:
velleman.be/be/en/download/files/

That solution works and was way better and way simpler! Thanks a lot! :smiley:
(Feeling sorry for myself for not knowing about that download page)

Hello, nice to read that someone got this to work.

I got the same problem, I think…
(I’m very new at this thing)

I have downloaded the new files you talked about. Changed them with the ones in this program i find:

function K8055_Connect
%Function loads the Velleman K8055 USB Experament Interface Board’s
%included DLL and H files and connects to the specified board address

ChannelAdress = input('    Channel (0-3): ');
fprintf ('    Status:')
addpath('C:\***\***\place');      %   Directs to folder containing DLL and H files
loadlibrary('K8055D.dll','K8055D.h');                               %   Loads DLL and H file
tmp = calllib('K8055D', 'OpenDevice',ChannelAdress);        %   Connects to board at given address
if ( tmp == -1)
    fprintf ('\tBoard %d not connected\n\n',ChannelAdress)
else
    fprintf ('\tConnected to board %d\n',ChannelAdress )
    libfunctionsview('K8055D');                                      %   View functions in the K8055D Dll
end

end

But when i run the program i get this error:


K8055_Connect
Channel (0-3): 0
Status:??? Error using ==> loadlibrary at 367
Failed to preprocess the input file.
Output from preprocessor is:‘cl’ is not recognized as an internal or external command,
operable program or batch file.

Error in ==> K8055_Connect at 8
loadlibrary(‘K8055D.dll’,‘K8055D.h’);
% Loads DLL and H file

I’m on a Vista Home Premium-64bit 4GB-RAM 2*2,5Ghz

I hope i don’t ask for to much, any help is much appreciated. :wink:

Edit: A bit of Swedish in the code to English

I put to Google “Output from preprocessor is”.
Found this and some other possible solutions:
groups.google.ca/group/comp.soft … c6870fe72f