NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
pgraebel
Posts: 72
0 Kudos
Accepted Solution

Problem with XNET Start VI after creating sessions

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?

 

Member
pgraebel
Posts: 72
0 Kudos

Re: Problem with XNET Start VI after creating sessions

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

 

Active Participant
GPIB_Guru
Posts: 518
0 Kudos

Re: Problem with XNET Start VI after creating sessions

Glad to hear. I was actually scratching my head trying to figure out what questions to even ask you.
Member
sanjay mane
Posts: 3
0 Kudos

Re: Problem with XNET Start VI after creating sessions

would you plaese share your code?

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page