Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MATLAB: Disable network adapter

Tags:

matlab

lan

I'm using an eye tracking device with MATLAB. Having an active internet connection whilst performing eye tracking experiments can cause data dropout. At present, I manually disable my network adapter before beginning any experiments. I wonder if this can be acheived using a MATLAB command? This is the only active computer in my lab (from which I am writing this message right now) so it would be nice to have the network connection automatically disabled when I start running a program, and for it to re-enable itself following an experiment. I'm not aware of any command within MATLAB that would allow me to take such control.

P.S. This computer is running Windows XP and the connection I am trying to access is a LAN connection. The eye tracker itself is connected via another LAN connection, so disabling all network adapters is not a viable solution.

like image 629
CaptainProg Avatar asked Nov 20 '25 10:11

CaptainProg


1 Answers

MATLAB has the system command that lets you run external programs. Windows offers some command line tools that let you control networking.

Find out how to disable your connection from the command line and then call system accordingly.

like image 156
ypnos Avatar answered Nov 21 '25 22:11

ypnos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!