05-27-2014 03:55 PM
I'm an LV newbie and want to verify that the connection speed between a PC running LV and a listening system is 100Mbps. Can this be done with LV or do I need an Ethernet test (e.g., BERT or similar) to do this. Pinging the other port can't tell me the connection speed to my (little) knowledge.
Solved! Go to Solution.
05-28-2014 01:23 PM
Ethernet Speed isn't deterministic, so testing the speed once would not guarantee that the speed is the same during every transfer.
Can you tell me a bit more about your application? What is the listening system you are refferring to and what constraints are you under?
05-28-2014 01:33 PM
The unit-under-test is an embedded system with an Ethernet port that I am to verify is communicating with my test fixture at 100Mbps. I had intended to add an additional NIC to the host PC specifically for this test as the host pc's motherboard NIC is in use with a company network for uploading test data. I had thought it might be as simple as connecting the host's NIC to the UUT Ethernet port, but then figured that I'd have to establish the connection through software and send it some number of packets to satisfy this requirement. At this point I don't know how the UUT's Ethernet port handles a new connection. I probably need to ask more questions of the UUT.
05-28-2014 02:19 PM
Not sure if this is useful or not but you can open the Task Manager and look at the bus utilization on the network devices and their theoretical maximum speed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2014 02:29 PM
05-29-2014 10:29 AM
Do you need to verify the actual throughput, or you just need to verify that it negotiated a 100mbit link? If the latter, and if the UUT is connected directly to an ethernet port in your PC (no routers/switches/etc in the middle), there are ways to do that easily by querying the operating system about the network link. For example, you could use System Exec to run the command shown here: http://superuser.com/questions/412952/how-to-detect-the-speed-fast-or-gigabit-ethernet-of-a-network-... and parse the output. There's probably also a way to get this information through .NET properties.
05-29-2014 11:37 AM
Yes, this does identify each NIC's speed, but I need a programmatic way of querying, but thanks!
05-29-2014 11:40 AM
This does the trick! I just need to massage it a bit to programmatically glean the port's identifier and speed -- maybe redirecting output to a file and then parsing. Thanks!
05-29-2014 11:40 AM - edited 05-29-2014 11:41 AM
That is a programmatic way of querying it. Use LabVIEW's System Exec function to run the command, then parse the output string to get the connection speed. Or, you could duplicate this code in LabVIEW: http://stackoverflow.com/questions/13134472/programatically-detect-connected-network-speed-on-window...
EDIT: sorry, looks like you were actually replying to a different post, wasn't clear that it wasn't in response to mine