Why stateflow use different data according to entry

Hi everyone ,
I use stateflow for gearshifting operation, but I have problem about it .
stateflow's inputs are throtte,engine rpm and
In stateflow I have some simulink function (Look up tables in it), which are determine gear situatiıon, Gear 1 2 3 4 etc.
When I read engine rpm from entry of stateflow and local stateflow engine rpms,(which is engine rpm) these values are different .
Entry of stateflow engine's rpm is less than in stateflow . Why I have this problem .
Although, engine rpm isn't reached critical rpm ,gear is changed (when we read from entry of stateflow engine rpm).
but, ın same process, When we read engine rpm from local of stateflow ,it is reached to critical rpm and gear is changed
Thank you for your help.

댓글 수: 10

TAB
TAB 2013년 1월 8일
It is hard to suggest anything without looking at your implementation. Please post the snapshot of you stateflow diagram.
Ilkay Meseli
Ilkay Meseli 2013년 1월 8일
편집: Ilkay Meseli 2013년 1월 8일
aT same time , rpm value are diffrent ,
in stateflow, ı read true value, entry of stateflow ı read wrong value at same time.
Ilkay Meseli
Ilkay Meseli 2013년 1월 8일
편집: Ilkay Meseli 2013년 1월 8일
I noticed one thing that might our work., In my driveline model, I have some torque source, Which some of them produce negative torque.
When I get out og these torque source, which are produce negative torque. System works normaly.
But when I put these torque source, I get this stateflow problem.
I have torque lost in my system and must apply this negative torque.
example negative torque system,
TAB
TAB 2013년 1월 8일
Sorry, your imgaes are not visible to me.
I fix them and control,now you can see
TAB
TAB 2013년 1월 8일
편집: TAB 2013년 1월 8일
Still images are not visible. Upload the image on the image hosting sites which do not require Login to upload and see the image.
I always use picasa web which need login to upload but, linked images are displayed to everyone.
now ı use picasa, thanks
Is the RPM in the 'display' supposed to be the exact same RPM in that box in Stateflow?
Can you show how you created the RPM input via model explorer in Stateflow?
yes, the RPM in the 'display' supposed to be the exact same RPM in that box in Stateflow.
You can see below where it was created RPM,
You can see below how to create these RPMs in the Stateflow Explorer
It looks like you're using 12b. Instead of using the breakpoint, setup the Simulink stepper (the buttons next to the play button) to allow to rewind the model. Set it to pause at whatever time this happens at. Backstep to see if it matches before the transition. Forward step to see if the simulink model matches up later.
I suspect the issue may be that the model is 'in between' steps. That is to say the Stateflow model pauses the model before a full step has occurred in the solver and you are seeing different results. This is just an educated guess.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Automotive Applications에 대해 자세히 알아보기

질문:

2013년 1월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by