Parameters in the ADAS slexFMCWMu​ltiTargets​DOAExample

Hi there,
I have tried running the slexFMCWMultiTargetsDOAExample and modifying the parameters in the helper file but there is no difference in output when I run the simulation. I have tried setting null values in range and velocity, but the display at the output remains unchanged. I have overwritten the original example file in the phaseddemo folder, but it did not work. I am sure there should be a method of changing the parameters and obtaining a different value for target range, velocity and angle, but I cannot explain how that should be set for this Simulink example.
This is my modification:
paramFMCWRSA.Fs = 300e6;
paramFMCWRSA.T = 5.5*400/3e8;
paramFMCWRSA.ppow = 0.00316227766016838;
paramFMCWRSA.TxGain = 36.0042142909402;
paramFMCWRSA.RadarVel = [ 65*1600/3600; 0; 0];
paramFMCWRSA.RadarPos = [0;0;0];
paramFMCWRSA.Fc = 77e9;
paramFMCWRSA.RCS = [100 100 100];
paramFMCWRSA.CarVel = [0 0 0;0 0 0;0 0 0];
paramFMCWRSA.CarPos = [0 0 0;2 -2 0;0 0 0];
paramFMCWRSA.C = 3e8;
paramFMCWRSA.NF = 4.5;
paramFMCWRSA.RxGain = 42.0042142909402;
paramFMCWRSA.lambda = paramFMCWRSA.C/paramFMCWRSA.Fc;
Any help is greatly appreciated.
All the best, Cristian

 Risposta accettata

Could you clarify what you saw? If you execute the lines you listed above in the command window and run slexFMCWMultiTargetsDOAExample, it should use the parameters you specified. Are you not seeing this? Thanks.

4 Commenti

Hi Honglei,
I was able to make it work now. The problem was that the register values were set to the old ones and I needed to run (I guess) the param file to set them. Is that correct?
I have another question though. When I try to run another file, say helperslexFMCWMultiTargetsDOAParam2 and I use paramFMCWRSA2.Fs I still get the value used from the previous registers paramFMCWRSA.Fs.
paramFMCWRSA2.Fs = 300e6;
paramFMCWRSA2.T = 5.5*400/3e8;
paramFMCWRSA2.ppow = 0.00316227766016838;
paramFMCWRSA2.TxGain = 36.0042142909402;
paramFMCWRSA2.RadarVel = [ 65*1600/3600; 0; 0];
paramFMCWRSA2.RadarPos = [0;0;0];
paramFMCWRSA2.Fc = 77e9;
paramFMCWRSA2.RCS = [100 100 100];
paramFMCWRSA2.CarVel = [0 0 0;0 0 0;0 0 0];
paramFMCWRSA2.CarPos = [100 200 300;2 -2 0;0 0 0];
paramFMCWRSA2.C = 3e8;
paramFMCWRSA2.NF = 4.5;
paramFMCWRSA2.RxGain = 42.0042142909402;
paramFMCWRSA2.lambda = paramFMCWRSA2.C/paramFMCWRSA2.Fc;
Notice the old values in the left hand side scopes for distance. It should be 100, 200 and 300, but it displays 30, 40 and 60 (a previous value I set in helperslexFMCWMultiTargetsDOAParam)
Is there any way to clean all in Simulink?
Thank you.
Best wishes, Cristian
I figured it out. I needed to change the initial position to paramFMCWRSA2.CarPos from the platform in the channel and target system.
I was actually expecting the same thing to happen when I modified the sample rate, the sweep time and sweep bandwidth. lol :)
Cheers, Cristian
Just to follow up, alternatively, if you have a different parameter file, you can consider using the same struct name, then you just need to run the different file but you don't have to update the parameter in each block.
Also, the model is configured to run the helper file when loading. You can adjust which file to run when loading by right clicking the model and then go to properties -> callbacks
HTH
Thank you very much. That is helpful.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by