フィルターのクリア

sampling time issue with c2000 F28379d and matlab simulation.

18 ビュー (過去 30 日間)
mahesh reddy pundru
mahesh reddy pundru 2020 年 2 月 27 日
hello,
I am implementing a simulation for hardware in matlab. The simulink file is running at sampling time at 1e-4. At this sasmpling frequency, I am losing some samples, and ADC not taking total samples of voltage signal values above 2khz. Then i try to dump the simulink file at a sampling time 1e-6, it showing some error, and it not reaching the data to target also. the error like it showing is" code replacement library must provide entries for semaphore/mutex creation."I am running an induction motor at 1e-4 sampling time with an open loop. Now I am sensing the voltage signal at a switching frequency of 10 kHz through ADC in hardware. As per my design of the voltage sensing circuit will give a peak to peak 3.3v or less. But, input to the ADC and output of ADC is not matching. Then I thought of running my simulation at sampling time 1e-6 because of my sampling time at least ten times the switching frequency. Then I check the ADC through a function generator at sampling time 1e-4 of pulse generation wave with a duty of 50%. The rate of the pulse wave is initially 1khz later I varied the frequency, but the output of my ADC has not matched. Please tell me where I made a mistake in the simulation, what I do to run the simulation entirely at both sampling time 1e-4 and 1e-6.
The below-attached results are an image of my simulation at 1e-4.
  4 件のコメント
Rajanikant Metri
Rajanikant Metri 2022 年 5 月 21 日
Have you found any solution?
mahesh reddy pundru
mahesh reddy pundru 2022 年 5 月 21 日
Hi Rajinikant ,
Do you want sense the voltages of inverter output. can you elabarate little more. I have faced the problem when inverter voltages is switching frequency components so that when we use ADC through matlab its sampling frequency is 1e-4. but switching frequency is aroud 5 to 10 kHz so i have not got samples. My friends used two boards of F28379D for sensing one board and another one for dumping code and generate pulses. the sensing one operate at 1e-5 sampling frequency.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeC2000 Microcontroller Blockset についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by