ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Streaming PCAPNG file through XNET

Hi All,

 

I have been using 8523 and 8520 interfaces with XNET stack for generating Ethernet traffic. However, is it possible to stream an existing PCAPNG file through XNET interface? So far, I don't see any such option. Please let me know if there is any.

 

PS: I don't want to use external applications like PlayCap and intend to use the LabVIEW native solution.

0 Kudos
Message 1 of 2
(664 Views)

NI-XNET has example for Ethernet Replay \examples\nixnet\projects\NI-XNET Ethernet\Ethernet Replay.vi, but unfortunately LabVIEW does not support reading pcapng to my knowledge.

Perhaps you need to use third-party library like GitHub - rshk/python-pcapng to parse the file and feed the frame to XNET.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 2
(633 Views)