Problem in SIL Mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in SIL Mode

Jump to solution
1,842 Views
yangyanhui
Contributor II

186763_186763.pngpastedImage_1.png

 

186776_186776.pngpastedImage_2.png

186777_186777.pngpastedImage_3.png

Original Attachment has been moved to: Problem-in-SIL-Mode.zip

1 Solution
1,548 Views
yangyanhui
Contributor II

Hi Daniel,

When I installed a compiler, I solved my problem. 

Thank you!

View solution in original post

0 Kudos
10 Replies
1,548 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi yangyanhui‌,

I do not know if this a pure coincidence or not - but i just uploaded a video showing step by step how to configure SIL. 

Please have a look here and let us know if you fixed the issue.

Video Link : 7844 

Hope this helps!

Daniel

0 Kudos
1,548 Views
yangyanhui
Contributor II

Hi Daniel,

I'm sorry that it didn't solve my problem. 

Errors occur only when I use partial motor control functions.

Detailed information is described in the attachment.

 

Thank you very much!

 

 

0 Kudos
1,548 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi yangyanhui‌,

I played a bit with your model. First thing i noticed is you have different setting for solver between test_SIL_TOP and test_test_SIL models.

Unfortunately, i can't run your original model on my side since i do not have license for the Simscape Power System to use the 3 phase side generator - but i changed a bit the harness model to use standard Simulink blocks and it works fine.

Please find attached the models. Can you please try it on your side and confirm these ones works?

Best regards,
Daniel

1.JPG

2.JPG

0 Kudos
1,548 Views
yangyanhui
Contributor II

Hi Daniel,

I try your model, then

pastedImage_1.png

       Did my computer configuration affect the results ?
0 Kudos
1,548 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi yangyanhui‌,

Please delete the slprj folder from my orginal zip file and retest. Usually, if the files are generated the Matlab will cache them without regeneration. This might cause issues since other paths are used.

Hope it helps!

Daniel

0 Kudos
1,548 Views
yangyanhui
Contributor II

Hi Daniel,

  I try it , the same result. 

I will find an other computer to try again? But will take same time

0 Kudos
1,548 Views
dumitru-daniel_
NXP Employee
NXP Employee

Before going to other computer can you please run this command into your Matlab console and tell us what returns ?

mex -setup

I have a feeling that your Matlab is not configured to support the Microsoft Windows SDK 7.1 compiler.

Best regards,
Daniel

0 Kudos
1,548 Views
yangyanhui
Contributor II

Hi Daniel,

Yes,you are right!

pastedImage_1.png

When solve it ,I will let you know!

Thank you very much!

0 Kudos
1,548 Views
dumitru-daniel_
NXP Employee
NXP Employee

Please have a look here in case you get into troubles: Why does the SDK 7.1 installation fail with an "Installation Failed" message on my Windows system? -... 

Hope this helps!

Daniel

0 Kudos
1,549 Views
yangyanhui
Contributor II

Hi Daniel,

When I installed a compiler, I solved my problem. 

Thank you!

0 Kudos