Test and Measurement Forum

usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Post any questions you may have about our current range of USB data loggers

usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Tue Nov 02, 2010 9:14 pm

I am getting following error:

??? Error using ==> loadlibrary at 368
Failed to preprocess the input file.
Output from preprocessor is:usbtc08.h
C:\Users..........\usbtc08.h(7):
fatal error C1189: #error : Operating system not defined / supported

It has been working fine for a while, after perhaps some of the updates this happened. I have Visual Studio 2008 Professional x86 and WoW 64 on the computer with 2005, 2008, and 2010 VC redistributables.

Please help,
Thank you,
Nick.
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Tue Nov 02, 2010 11:39 pm

Sorry for posting it in the wrong category. Could moderators please move it to the Writing Your Own Software/C and C++.

Thank you
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Tue Nov 02, 2010 11:44 pm

What's weird is that everything worked fine before those Windows updates.

The code in usbtc08.h file:

#ifndef WIN32
#error Operating system not defined / supported
#endif

clearly prevents operation in 64-bit system, I have no idea why it worked before.

Any help?

Thank you
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Wed Nov 03, 2010 2:16 am

Just realized that I never used usbtc08.dll directly out of my 64-bit Win 7 PC.

Also found several post by Pico Tech reps that usbtc08.dll will only work in 32-bit environment.

It should be CLEARLY listed in TC-08 specs that SDK is for 32-bit ONLY.

At our university PC purchases are coming from the overhead and handled by the department (what ever deal they have going on with Dell). If you want to buy a PC with 4 cores you are pretty much stuck with Win 7 64-bit.

I realize that you might need some time to do necessary code modifications and testing but 64bit OS have been around for a long time now and at this point I'd settle for buggy beta than nothing at all.
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Chris » Wed Nov 03, 2010 9:34 am

Try putting the dll's into the

Windows\sysWOW64 directory


-Chris
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Wed Nov 03, 2010 3:41 pm

Thank you, Chris, for the tip.

It still did not work with Matlab. From what I understand WoW64 allows 32 bit apps to work in 64 bit environment and call 32 bit dlls. A 64 bit app (such as my copy of Matlab) still cannot call a 32 bit library.

This did give me a hope that I might be able to write a 32bit app in C++ on a 32bit PC and try and call it out of Matlab on 64 bit PC. That could actually work with WoW64.

I'll post it here if it works out.

Is there a plan for releasing 64bit library?

Thank you,
Nick.
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Chris » Thu Nov 04, 2010 8:21 am

looks like you could install 32bit Matlab on your 64bit PC....

http://www.mathworks.com/support/soluti ... n=1-579TVF


No plans for a 64bit driver
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: usbtc08.dll + Win 7 64-bit + Matlab 2010a 64-bit

Postby Nikolai » Wed Nov 10, 2010 10:29 pm

There are problems running 32bit Matlab on a 64bit system:
http://www.mathworks.com/support/soluti ... on=1-1CAT7

There are also some issues with CUDA, which we use a lot.

I talked our support guys into reinstalling OS. So now I will have 32bit Windows and everything should work just fine.

I still think that you should mention in your specs that the included SDK is 32bit only.

Thanks for your help.
Nikolai
Newbie
 
Posts: 0
Joined: Tue Nov 02, 2010 9:02 pm


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 0 guests