Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with XNET Start VI after creating sessions

Solved!
Go to solution

I have a timed loop that is sending CAN messages via XNET VIs. This works wonderful, but I always lose the very first message. It does not matter, whether I am sending the first message immediately after creating the XNET session or after some msecs.

 

The attached screenshot is showing the initialization of my four XNET sessions. Although I am pre-starting the session with a XNET Start VI, there is no success in sending the very first message.

 

It seems, that the CAN sessions/interfaces (Selectable and HS CAN cards) are only initialized after the first call to XNET Write. XNET Write seems to imply XNET Start (see documentation), but calling XNET Start manually after creating the sessions does not help.

 

What am I missing to get the interfaces online and ready before sending anything?

 

0 Kudos
Message 1 of 4
(7,532 Views)
Solution
Accepted by topic author pgraebel

I was able to solve this problem as it was actually not related to XNET VIs Smiley Happy Sorry for this post.

 

0 Kudos
Message 2 of 4
(7,510 Views)
Glad to hear. I was actually scratching my head trying to figure out what questions to even ask you.
0 Kudos
Message 3 of 4
(7,507 Views)

would you plaese share your code?

0 Kudos
Message 4 of 4
(6,495 Views)