NVA-R661 control using Matlab

Discussion in 'General' started by smrkang, Sep 26, 2017.

  1. smrkang

    smrkang New Member

    Hello,
    I use the NVA-R661 development kit to measure distances and detect people using MATLAB.

    I have a few questions about setting the MATLAB API and Tx frequency.

    First, In the demo code provided by "Novelda Radarlib3 Matlab Sample Script". there is some code written like Variables('AveragingFactor') = 5;

    So, I think I can write to the X2 register in that way.

    However, I can't find variable names that I can use in the script, and there is a difference in variable names between "Novelda Radarlib3 Matlab Example Script" and Datasheet such like "AveragingFactor" and "Iteration"

    Also, I can't match the variable name between the script and an Overview paper named "Novelda Nanoscale Radar API Overview" and there is few variable document for NVA_R661 in Overview document like under picture.
    [​IMG]

    upload_2017-9-26_9-37-35.png

    So can I get a datasheet composed of variable tables that can be used in MATLAB for R661?

    Second, how can I use an Action trigger such as MeasureALL API, in a matlab script?

    In case of writing register, I always use

    Variables('FrameStitch') = FrameStitch;

    and

    varlist = keys(Variables);
    radar.TryUpdateChip(char(varlist(n)),Variables(char(varlist(n))));


    or in case of reading register,

    radar.Item('DACStep').Value.ToInt();

    However, I can find the example of action trigger.

    Third, There is a strange result when modifying the PGselect register.

    In the following example,

    upload_2017-9-26_9-37-47.png
    upload_2017-9-26_9-37-50.png
    [​IMG]
    [​IMG]

    The higher the Tx frequency, the smaller the amplitude of the signal.

    According to the X2 data sheet, it is understood that setting the Tx frequency higher causes the Tx power to drop.

    However, the result of my signal is too low to be detected.

    So, when you modify the TX frequency, are there any additional registers to set such as the sampling delay?

    Thanks!
     
  2. brendon

    brendon New Member

    I agree, I'm presently confused as well! From Radarllb3.pdf 17.3.1
    upload_2017-9-29_12-9-19.png

    Implies PulsesPerStep and AveragingFactor the same thing, yet I can read either from the API, though only set PulsesPerStep. I can also set them to different values and they read back as different. Its quite ambigious...
     
  3. hyungil kang

    hyungil kang New Member

    The third question is solved. It was an antenna bandwidth problem. However, if you have a tip when controlling the PG select register, tell them about it.