Hit Crossing driven by a signal of type 'single'

조회 수: 4 (최근 30일)
geieraffe
geieraffe 2014년 9월 16일
답변: geieraffe 2014년 9월 17일
Hey community, I'm frustrated by now. I can't use the given Simulink block for a Relay because I have to change the switch on/off boarders (so they have to be inputs).
So I constructed my own "relay block" with a Hit Crossing block in it. But I can't build this, because of the Hit Crossing block can only be driven by double signals. But for some reasons I'm only allowed to use integers, singles and booleans.
Anybody knows an alternative way?

채택된 답변

geieraffe
geieraffe 2014년 9월 17일
Ok, for all who are/were interested, here is my solution:
I constructed my own hit crossing block.
Change the "less or equal"/"greater or equal" blocks for rising/falling hit crossing.

추가 답변 (1개)

Anthony Poulin
Anthony Poulin 2014년 9월 16일
Hey, indeed this block only accepts the type "double" for input. Is it an acceptable way for you to use the block "Data Type Convertion" just before the "hit crossing" block?
With this block whatever the type of the input it will be converted in double through the "Data Type Conversion" block and then goes to the "Hit crossing" block.
  댓글 수: 1
geieraffe
geieraffe 2014년 9월 17일
That's the same answer I got from the support, too. Unfortunately I'm not allowed to use any calculations with doubles. So the "Data Type Conversion" block combined with the "Hit Crossing" block is no solution - for my problem.
I think I'll have to construct my own hit crossing.

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

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by