MBDT Timed Subsystem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MBDT Timed Subsystem

跳至解决方案
758 次查看
C_Zuercher_APR
Contributor III

Hi,

I have created a timed subsystem (1ms), within which sits two CAN Transmit blocks, a PWM Output block and an ADC Block, all joined together with a series of PI, P & I Controllers etc.

The CAN Tx blocks appear to behave as I'd expect them to do so; picking up and transmitting the relevant signals (as seen on CANalyzer)

The issue I'm having is with the CAN Rx block; almost regardless of what I do with it, the signal (see Simulink block diagram attached) doesn't reach the CAN Tx blocks, and is seen on CANalyzer as "0" when it should be within 20 and 80.

I've tried:

- Putting the CAN Rx area into a timed subsystem & using a rate transition block to connect the two subsystems

- Putting the CAN Rx area inside the timed subsystem

The only way this has worked for me thus far is when I don't have the timed subsystem at all. However, I need to have control over the CAN Tx times & control algorithm execution.

Any assistance is greatly appreciated.

Thanks,

Crispin

标记 (4)
0 项奖励
1 解答
724 次查看
C_Zuercher_APR
Contributor III

Apologies; issue has been resolved. I hadn't included an initialisation area to take in the CAN Message and therefore trigger the function.

在原帖中查看解决方案

2 回复数
725 次查看
C_Zuercher_APR
Contributor III

Apologies; issue has been resolved. I hadn't included an initialisation area to take in the CAN Message and therefore trigger the function.

718 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @C_Zuercher_APR ,

Nice to hear this!

Regards,

Marius

0 项奖励