VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI 8512 CAN transmission driven by Simulink model using a time slot caroussel

I have built a project where a signal sent by a model is driving a CAN message transmission by setting the

"Target > Controller NI 8840 > Hardware > Chassis > NI-XNET > CAN > CAN1 Outgoing > MyMessage"

In the following configuration :

Transmission trigger > Transmit trigger : Trigger Channel (non-zero)

And setting "Trigger Channel" to the signal of the model.

 

I'm using a PXI 8512, with NIVS 2015 SP1 and a Controller NI 8840.

 

When using a signal that commands the message transmission once every N = 10 time slots then the transmission doesn't happen. But it does happen when I use N = 11 as illustrated.


Here are 2 scope captures of the issue at hand :

 

When using this signal to drive the transmission then there is no transmission.

 

10.png

 

For N = 11 then the transmission happens as expected.

 

11.png

 

The following time slot counts have been tested :
OK : 3, 4, 8, 9, 11, 19, 21, 31
KO : 10, 20, 30

This is an issue because my actual project needs to be sending with time slots that are a multiple of 10 -it doesn't work at the moment.

I attach all the required files to reproduce the problem with this post -with both prebuilt models dlls and editable Simulink model.

 

0 Kudos
Message 1 of 1
(2,361 Views)