Thanks for answering. I tried a lot these two days. It worked in some part. But it still has some problems.
The stateflow I developed is quite simple.
I use the excel as input for the signal builder, and I followed your instruction.
However, When I run the simulation, it didn't work very well as a pulse signal. see figure below. I can't figure out why it suddenly decreases to 0 when the input still equal to 1(purple line is the pulse input,yelow line is the output based on the stateflow before).
However, if I setting the simple time to 0.02 seconds(the existance time of pulse is 0.02s) in the simulation options in the singal builder, then it works well.
Sorry for the long replay. It gives me some headache. Could you give some suggestions?