LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there someone who is expert in xnet?

I'm having some problem with xnet communication.

my code looks perfect to me. and by my thought it should work properly.

However when I check with xnet bus monitor. Xnet write and read is not working at all.

 

Can somebody tell me what is the problem?

johndoe81818_1-1747026526121.png

 

0 Kudos
Message 1 of 2
(243 Views)

Hello, 

your code continuously create and dispose the XNET connection. 2 XNET sessions are created every 100 ms. 
Move the XNET session initialization VIs and the clear vis outside the loop. Just keep the 2 VIs read and write inside the loop.
The image below shows an example. Please note that it's just an example. It isn't a fixed version of your code. 

andcadev_0-1747032187989.png

 

0 Kudos
Message 2 of 2
(210 Views)