Giter Site home page Giter Site logo

Error using run_mea about mcsusbnet_examples HOT 7 OPEN

ghanaei avatar ghanaei commented on August 12, 2024
Error using run_mea

from mcsusbnet_examples.

Comments (7)

jesinger avatar jesinger commented on August 12, 2024

Hu ghanaei,

thanks for the report, we are looking into it.

Which version of Matlab are you using?

Peter

from mcsusbnet_examples.

ghanaei avatar ghanaei commented on August 12, 2024

Hi, the version of Matlab is 2021.

from mcsusbnet_examples.

jesinger avatar jesinger commented on August 12, 2024

Hi ghanaei,

could you re-check if you update the McsUsbNet DLL to Version 5.2.3?

It is available from here: https://github.com/multichannelsystems/McsUsbNet.git

we could not re-produce the issue with that version

Please let me know if this fixes your problem

Thanks!

Peter

from mcsusbnet_examples.

ghanaei avatar ghanaei commented on August 12, 2024

Hi, Thank you for your response.
I checked with the McsUsbNet DLL version ’5.2.3’, and there is no error message.

Now, I have another problem. In the example (Matlab_MEA Recording) in line ‘63’ mentioned ‘if (X=500) break % stop after 500 data packet (~ 5 second)’. However, I think it contradicts the line ‘35’.
In line ‘35’ mentioned 5000=100 ms (0.1 s) of data (a data packet). So, I think, the line ‘63’ needs to be corrected as ‘if (X=500) break % stop after 500 data packet (~ 50 second) ‘, because of 500 × 100 ms (0.1 s) = 50 second. Is it right?

Another problem is that according the above reasoning, I expect that code (with X=500) last about 50 second, but when the code runs, it takes about 17 second and stops. So, I couldn’t collect data for 50 second.
I’d appreciate it if you explain the issue.

from mcsusbnet_examples.

happypanda94 avatar happypanda94 commented on August 12, 2024

I am also running into the same issue. I am using the 5.2.3 version, but I still get the same error. My MATLAB version is 2019b. I looked into it, and I found that the main issue is that the device instance does not seem to have anything in the ChannelBlock attribute. I went through the manuals and I at least expected a ChannelBlockNet or something similar, just like how the other attributes have something.

image

Can you please explain if this is the issue? I already have the 5.2.3 DLL version, but I still cannot seem to overcome this issue. How do I solve it? I would greatly appreciate if you provide me a solution.

from mcsusbnet_examples.

jesinger avatar jesinger commented on August 12, 2024

Hello, I used the example (Matlab_MEA Recording) and get run. But the bellow error happens: “Error using run_mea (line 38) Message: The namespace for the type ‘SampleSize’ does not exist. MATLAB requires all .NET types to be within a namespace. " How can I solve the error in coding? Thank you for your help.

IMG_ERROR

Do you have the option to try in Visual Studio with C# or a newer Version of Matlab ?

In C# you can use it like this for example:

dacq.ChannelBlock.ReadFramesI32(i, 0, threshold, out int frames_ret)

ChannelBlock is defined as a property of type ChannelBlockNet within CMcsUsbDacqNet

and ChannelBlockNet is a class with members like AddBlocksAndChannels, ReadFramesUI16, ...

from mcsusbnet_examples.

happypanda94 avatar happypanda94 commented on August 12, 2024

Thank you very much. I have managed to solve the issue.

from mcsusbnet_examples.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.