From: Junix Junix on
Hello,
(sorry for my english, I'm french)

I try to follow the "Data Acquisition Toolbox Adaptor Kit 2" user's guide for make a dll for a new device.

I have Visual Studio Pro 2008, but I can't build the demo adaptor ($MATLAB/toolbox/daq/daqadaptor/Demo).

I have these errors :
http://matlab.pastebin.com/XESpG9WS

Yet, the manual says that Visual Studio 2008 is compatible with the demo adaptor.

Have you ideas ?
Have you already build an adaptor with Visual Studio Pro 2008 ?

Thanx a lot...
From: Sherryl Radbil on
Hi Junix,
Thanks for the link to the errors, it was very helpful.
You are using MATLAB R2009a.
Support for Visual Studio 2008 was added to Data Acquisition Toolbox V2.16/MATLAB R2010a.

Your best bet is to upgrade to MATLAB R2010a because work on the Adaptor Kit in that release solved a number of issues (rather than downgrade to Visual Studio 2005).

All the best,
Sherryl
From: Junix Junix on
Thanx Sherryl, you're the first to find a response to my problem.

I can't to upgrade my Matlab (it's an academic computer), so I'll try to use MEX files.

Thx again.
From: Alejandro on
"Junix Junix" <ju(a)jsand.net> wrote in message <i1q6p9$6k3$1(a)fred.mathworks.com>...
> Thanx Sherryl, you're the first to find a response to my problem.
>
> I can't to upgrade my Matlab (it's an academic computer), so I'll try to use MEX files.
>
> Thx again.

Hi Junix Junix. I´m having the same problem as you, and I see that you decided to write a MEX-file. I would like to know if you succeded doing this, as I understand that it is difficult to do. I have to write and adaptor to the daq Advantech PCI 1741U and I´m finding lots of problems in using a MEX file in simulink and importing its results to the scope.

I would be most grateful for any help provided. Sorry about my english, I´m Argentinian

Thanks a lot