05-19-2016 04:52 AM
Hi,
I'm developping an application using Labview 2015 SP1 that will run on a Win10 7" tablet.
I need to enable or disable programmatically the tablet wireless module to reduce battery consumption.
Does anyone know how to do it?
Tks a lot
Bye
05-19-2016 01:18 PM - edited 05-19-2016 01:18 PM
So I dug this out of an old program I haven't used in a while, so I'm not sure if it still works is what I'm saying. I had a setup where the computer was on a DSL connection at a remote facility and network usage would drop out randomly making remote desktop control difficult. So I had a program detect if it was connected to a network, then disconnect and connect. If that didn't work it would disable the wireless then enable it. This was all done using the netsh command line. Version wasn't specified, saved in 2015.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-27-2016 01:36 AM
Thank you for your answer, I will try as soon as I can.
Anyway, can you check the posted VIs, because a subVI is missing (Get Value from Key.vi).
Thanks again.
05-27-2016 08:45 AM
Yup so sorry about that. It had an OpenG dependency that I inlined.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-03-2016 07:21 AM
Sorry,
the "Search or Split String_ogtk.vi" is still missing.
Can you include it?
Bye
06-03-2016 07:37 AM - edited 06-03-2016 07:37 AM
Seems you're right not sure what happened. Just install the OpenG dependency through VIPM, you'll be happier anyway since it comes with all kinds of useful functions. The String palette is what you'd need.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209027
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-03-2016 11:36 AM
I have tried your example.
Even if the wlan interface is found wit the netsh command "show interfaces", when I try to enable or disable the wlna the answer of the netsh command is "No registered interface on the router with this name.".
Keep in mind that the name I pass to disable or enable the interface has been found using the "show interfaces" command.
I spent some time to try to understand better the problem, looking for some suggestions in the web. I have found that could depends on the command prompt level, that has a restricted permission in normal mode. I have to use an elevated command prompt, but I don't know how to change "the level".
Here below the article link:
Can you help me?
Thanks a lot.
Bye
06-03-2016 11:59 AM
I just turn UAC down as far as it goes and I have no issue. Of course that has other repercussions and might not be allowed. You can right click the Command Prompt shortcut in the start menu and choose Run as Administrator to test the commands there. I do not know how to do this in LabVIEW if these elevated privileges are needed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord