05-25-2009 08:34 AM
Hi,
sorry for my english that isn't very fluent.
I need to request with LabView 7.1 the download and upload speed.
Somebody tell me to use Windows API but I don't Know how to do it.
There are someone able to help me?
Thank's
05-25-2009 08:59 AM
Hi sandro73,
can you please explain in more detail? What do you want to download?
Mike
05-25-2009 09:10 AM
The problem is this:
i would crete an application that shutdown the pc when is not used for a long time.
To do this, I think to check the mouse position and the download from Torrent or eMule.
If the mouse is in the same position for 1 hour and the Download speed is under 1 KByte/s i send a shutdown command.
I find the command to get the mouse position but i Don't know how to get the download speed in a particular moment.
If someone suggest me another valid solution, is the same.
Thank's
05-25-2009 09:47 AM
Hi sandro73,
it should be possible to read this info from the programs (T... and eM...). Another solution could be to use an external traffic analyzer.
Hope it helps.
Mike
06-05-2009 03:17 AM
Hi Sandro,
I think that search for a third party traffic analyzer should be the best way to perform the task. LabVIEW provide itself for the event-driven programming pattern which let you detect and locate any event within LabVIEW application. If you want to communicate and send messages between external programs you can use the System Exec.vi function, which let you launch command through a DOS prompt, or the Call Library Function Node.vi so you could use external code in LabVIEW. In this way you can call the Windows API which let you access to the informations you need.
Let me know if you need further investigation
Regards