LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xnet using only one interface to log the reiceived and sent frames

Hello,

 

i'm using XNET to communicate with our CAN device. I send and then receive several frames one by one through one Interface. Now i want to use the same Interface (CAN-Node) to log or trace both the sent and reiceived frames. Therefor i put another session (frame in stream) in my programm, you can see it in the attached photo. But i can only see the reiceived frames, but not the sent. Can anybody help me? Thx very much!

0 Kudos
Message 1 of 6
(3,444 Views)

Is there an option to 'echo transmitted frames' with your CAN device? I think the XNET CAN devices have this functionality where any transmitted frames also appear as 'read' frames so you can log everything on the network. Either that or you can create a queue for CAN frames and when you read/write to the CAN device also enqueue those frames - you can then have a logging loop that dequeues the frames and writes them to disk.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 6
(3,433 Views)

thank u very much for your reply. I have tried to set the 'echo transmitted frames' option in my program to true, but in this way my device can not work well, and it seems like i can only see the sent frames, but not the reiceived.

 

0 Kudos
Message 3 of 6
(3,422 Views)

You need to show us your code that does not work, if we should have any chance on helping you.

0 Kudos
Message 4 of 6
(3,407 Views)

mexaviesta a écrit :

Hello,

 

i'm using XNET to communicate with our CAN device. I send and then receive several frames one by one through one Interface. Now i want to use the same Interface (CAN-Node) to log or trace both the sent and reiceived frames. Therefor i put another session (frame in stream) in my programm, you can see it in the attached photo. But i can only see the reiceived frames, but not the sent. Can anybody help me? Thx very much!


You have to make sure the Frame Input Stream session configuration is completed before the first write in the top thread of your code.

 

Ben64

0 Kudos
Message 5 of 6
(3,384 Views)

Thanks a lot, i've attached my code here.

0 Kudos
Message 6 of 6
(3,376 Views)