Problem on Matlab with X4M03

Discussion in 'X4M03' started by Peak Thannit, Sep 27, 2018.

  1. Peak Thannit

    Peak Thannit New Member

    Hi everyone
    I have a problem with Matlab.
    "
    Undefined variable "ModuleConnector" or class "ModuleConnector.Library".
    Error in XEP_X4_plot_frame (line 22)
    Lib = ModuleConnector.Library; "

    I don't know this problem. Please help me.
    Thank you : )
     
  2. NSANGOU CHOUAIBOU

    NSANGOU CHOUAIBOU Active Member

    Hi Peak,
    Please open your MATLAB software (version > R2014) select and add to path these folders and their subfolders : 'include', 'lib32' or 'lib64' and 'matlab' .
    Note : You don't need both lib32 and lib64. It depends on your windows version.
    You also need to install MinGW C/C++ (32 or 64 bit according to your windows version) compiler in your MATLAB environment.

    Best regards,
    Chouaibou.
     
    Charlie Shao likes this.
  3. Peak Thannit

    Peak Thannit New Member

    Thank you so much : )
     
  4. Sruthy Skaria

    Sruthy Skaria New Member

    Hi Chouaibou,

    I have tried to run 'BasicRadarClassX4.m' in R2017b but it shows
    Dot indexing is not supported for variables of this type.

    Error in BasicRadarClassX4/disp (line 67)
    displ.(r.mc.lib_name)=libstatus(libisloaded(r.mc.lib_name));

    Would you advice whats wrong?
     
  5. NSANGOU CHOUAIBOU

    NSANGOU CHOUAIBOU Active Member

    Hi Sruthy,
    Are you using the latest version of Module Connector for windows (ver. 1.6.2) ? Have you the compilator MinGW C/C++ installed in your Matlab environment ? Are you sure that "include", "lib64" or "lib32" (depending on your windows version) and "matlab" folders are added to path in your Matlab ?
    Please, you can also use the latest Charlie's examples in GitHub (https://github.com/xethru/XeThru-ModuleConnector-Examples)
    B.R,
    Chouaibou.
     
    Last edited: Dec 11, 2018
  6. NicolasE

    NicolasE New Member

    Hello

    I am using Matlab to control the X4M03. I created an instance of BasicRadarClassX4, but when I try to use the function "cleared_frame=clear(r,name)" from that library it does not seem to work. I get an error as the function used in there "r.bufferSize(name)" does not take any argument, so I modified it. And the next error is because the function "r.radarInstance.clear(name)" does not seem to exist.
    Is there a way to clear the buffer quickly before acquiring a new frame?
    Kind regards

    Nicolas
     
  7. Charlie Shao

    Charlie Shao Moderator Staff Member