LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anybody knows how to read the data size through my network card

Anybody knows how to read the data size through my network card, includes sent data size and received size. who knows ? thanks in advance.
0 Kudos
Message 1 of 9
(3,278 Views)
Hi Gilbert,

what do you want to do? Your question is incomplete, lacks any detail. What do you have already? Show us your code and we might show you a solution.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 9
(3,268 Views)
Hi,
        Thanks, I want to make a program with labVIEW, the program can read all the data size(received ant sent)  through local network card (LAN), I don't know how to do this, the basic function is similar with " Local area connection status".
Message 3 of 9
(3,264 Views)
Hello Gilbert,

I'm not familiar with this function, but for a network connection there are several options, which protocol do you use?

Ton


Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 9
(3,259 Views)

Hello,

         Thanks, I want to get the data size through LAN back, and display for user, how many data in and out !

See enclosed !

0 Kudos
Message 5 of 9
(3,259 Views)
Whow,

that is deep down Windows. I *think* that you have to do a win32.dll call, but i'm not sure.

sorry,

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 9
(3,254 Views)

Maybe a .vbs script file will work. This reads raw performance counter data. You may need to read the initial values when you start labview and then subtract them from the current readings.

http://www.microsoft.com/technet/scriptcenter/scripts/network/monitor/nwmovb19.mspx

The results from running this:


==========================================
Computer: HPA1230N
==========================================
BytesReceivedPersec: 64047717
BytesSentPersec: 7878006
BytesTotalPersec: 71925723
Caption:
CurrentBandwidth: 100000000
Description:
Frequency_Object: 0
Frequency_PerfTime: 3579545
Frequency_Sys100NS: 10000000
Name: Realtek RTL8139_810x Family Fast Ethernet NIC - Packet Scheduler Miniport
OutputQueueLength: 0
PacketsOutboundDiscarded: 0
PacketsOutboundErrors: 0
PacketsPersec: 150081
PacketsReceivedDiscarded: 0
PacketsReceivedErrors: 0
PacketsReceivedNonUnicastPersec: 46096
PacketsReceivedPersec: 100461
PacketsReceivedUnicastPersec: 54289
PacketsReceivedUnknown: 76
PacketsSentNonUnicastPersec: 540
PacketsSentPersec: 49620
PacketsSentUnicastPersec: 49080
Timestamp_Object: 0
Timestamp_PerfTime: 307990938968
Timestamp_Sys100NS: 127917316675144325

BytesReceivedPersec: 22831657
BytesSentPersec: 22831657
BytesTotalPersec: 45663314
Caption:
CurrentBandwidth: 10000000
Description:
Frequency_Object: 0
Frequency_PerfTime: 3579545
Frequency_Sys100NS: 10000000
Name: MS TCP Loopback interface
OutputQueueLength: 0
PacketsOutboundDiscarded: 0
PacketsOutboundErrors: 0
PacketsPersec: 157354
PacketsReceivedDiscarded: 0
PacketsReceivedErrors: 0
PacketsReceivedNonUnicastPersec: 0
PacketsReceivedPersec: 78677
PacketsReceivedUnicastPersec: 78677
PacketsReceivedUnknown: 0
PacketsSentNonUnicastPersec: 0
PacketsSentPersec: 78677
PacketsSentUnicastPersec: 78677
Timestamp_Object: 0
Timestamp_PerfTime: 307990938968
Timestamp_Sys100NS: 127917316675144325

Message 7 of 9
(3,242 Views)
Message 8 of 9
(3,230 Views)
Good and simple solution !
________________________________________________________


Try to make everything Automatic
0 Kudos
Message 9 of 9
(3,207 Views)