Welcome to our user forum (read only mode).
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Error: STG2008 from Matlab

Go down

Error: STG2008 from Matlab Empty Error: STG2008 from Matlab

Post  Admin Tue Jun 10, 2008 12:47 pm

I am using Matlab (7.4.0.287 - R2007a) and the very latest version of the MC_Stimulus II package (2.4.1) and I would like to use Matlab to interact with the STG2008 (SW: 2.33, HW: 3.02 15.01.2004).

Unfortunately, following the very first two lines of the 'example.m' script file, I get an error after typing:

>>> cd C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab
>>> addpath('C:/Program Files/Multi Channel Systems/MC_Stimulus II')
>>> loadlibrary('MCS_USB_Lib', 'MCS_USB_Lib.h')
??? There was an error loading the library "MCS_USB_Lib"
Error using ==> loaddefinedlibrary
The specified module could not be found.

Adding
>>> addpath('C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\C++\DLL')

and/or

>>> addpath('C:\Program Files\Multi Channel Systems\MC_Stimulus II\Driver')

does not help.

As these are the very first lines of the "example.m" script provided in the Matlab directory, I am lost.


Typing instead:
>> loadlibrary('McsUsbDLL', 'MCS_USB_Lib.h')

successfully returns but produces the following warnings..

Warning: The function 'STG200x_GetStringDescriptor' was not found in the library
> In loadlibrary at 321
Warning: The function 'STG200x_GetIdent' was not found in the library
> In loadlibrary at 321


Do I have to replace 'McsUsbDLL' wherever there is 'MCS_USB_Lib' ?

Thanks in advance,
Yours
Michele

Admin
Admin

Posts : 6
Join date : 2008-04-28

https://multichannelsystems.forumieren.de

Back to top Go down

Error: STG2008 from Matlab Empty Re: Error: STG2008 from Matlab

Post  Admin Tue Jun 10, 2008 12:47 pm

Dear Michele,

we introduced new USB devices and we wanted one function call for all devices. Therefore we introduced the functions McsUsb_GetStringDescriptor and McsUsb_GetIdent. Sorry for the inconvenience.

Kind regards,

Gerald

Admin
Admin

Posts : 6
Join date : 2008-04-28

https://multichannelsystems.forumieren.de

Back to top Go down

Error: STG2008 from Matlab Empty Re: Error: STG2008 from Matlab

Post  Admin Tue Jun 10, 2008 12:48 pm

Thanks indeed for your reply..

I still have serious problems: this time I tried to run one of the example matlab script (example_streaming.m): it consistently crashes the computer showing the "blue screen" :-((((

I just downloaded the new version of McRack and updated to the latest STG8000 firmware.

I have two STG8000 and ..I would love to be able to use them from Matlab. Any idea to help me for this serious repeatable crash of Windows?

Thanks in advance to any user who might want to share his code and or experience on this topic.

Yours,
M

Admin
Admin

Posts : 6
Join date : 2008-04-28

https://multichannelsystems.forumieren.de

Back to top Go down

Error: STG2008 from Matlab Empty Re: Error: STG2008 from Matlab

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum