terrible errors when running x4m200 in Matlab(from a Chinese college student)

Discussion in 'Respiration Sensor' started by wen shun, Dec 14, 2019.

  1. wen shun

    wen shun New Member

    I'm so uncomfortable. I used matlab to run the sample programs in the downloaded materials. None of them succeeded. I always got errors. What went wrong? I am a novice, a Chinese college student, can any teacher help me?
    Error in disp_module_info (line 25)
    mc = ModuleConnector.ModuleConnector (device_name, 0);

    Error in xt_modules_plot_record_playback_radar_raw_data_message (line 77)
    disp_module_info (input);
    It is these errors, I cry, I really cry. Save the child
    I Am crying
    Help me
     
  2. Allen Wu

    Allen Wu Moderator Staff Member

    Hi wen shun,

    I’ve try to reproduce the error, this is what I do:

    Connect X4M200 module to PC
    Download and install a trial version of MATLAB R2019b, run in win10.
    Download and unzip moduleconnector to C:\temp\ModuleConnector-win32_win64-1.6.2\
    Download the GitHub example to: C:\temp\ModuleConnector-win32_win64-1.6.2\matlab\git_ex

    In MATLAB:
    >> cd C:\temp\ModuleConnector-win32_win64-1.6.2\matlab\
    >> addpath(pwd)
    >> doc ModuleConnector

    >> cd C:\temp\ModuleConnector-win32_win64-1.6.2\matlab\git_ex

    >> xt_sensors_plot_record_playback_baseband_IQ_AP_message
    Library is already loaded.
    Unrecognized function or variable 'disp_module_info'.

    Error in xt_sensors_plot_record_playback_baseband_IQ_AP_message (line 70)
    OrderCode = disp_module_info(input);

    >>

    //===== this error is quite similar to yours

    Then, I copy all the *.m file in the GitHub to C:\temp\ModuleConnector-win32_win64-1.6.2\matlab\git_ex (including the file “disp_module_info.m”)

    Run the .m file again

    >> xt_sensors_plot_record_playback_baseband_IQ_AP_message
    Library is already loaded.
    Library is already loaded.
    ********** XeThru Module Information **********
    Received pong= AAEEAEEA connection build!
    FirmWareID = Annapurna
    Version = 1.6.8
    Build = 1.6.8+0.sha.7677a50d6ccdcda904af8f7ffe10fc07a863fe8f
    VersionList = Annapurna:1.6.8;XEP:4.0.1;X4C51:2.0.0:DSPlibs-target:1.6.7
    OrderCode = X4M200
    ItemNumber = 000167-007
    SerialNumber = 100000029640

    //===== This time it runs ok and there is a windows pop up with the plot of Amplitude and Phase.

    Allen
     
    wen shun likes this.
  3. wen shun

    wen shun New Member

    thank you very much!thank you !!!
     
  4. wen shun

    wen shun New Member

    hello Allen
    Coulde you tell me where I can downlod GitHub? Thank you
     
  5. wen shun

    wen shun New Member

    Hello Allen:
    I did it your way, but there was error, and it seems that the error happening in calling x4m200. why is that? I wish you can answer it for me

    xt_sensors_plot_record_playback_baseband_IQ_AP_message
    Library is already loaded.
    Library is already loaded.
    结构体内容引用自非结构体数组对象。

    出错 ModuleConnector.X4M200/set_sensor_mode (line 171)
    status = this.radarInterface.set_sensor_mode( this.X4M200_instance, mode );

    出错 disp_module_info (line 29)
    app.set_sensor_mode('stop');

    出错 xt_sensors_plot_record_playback_baseband_IQ_AP_message (line 70)
    OrderCode = disp_module_info(input);