How to call putty directly from matlab and write script that I can write on putty to control an actuator (UV LED power) through USB?
40 visualizaciones (últimos 30 días)
To control the actuator (UV LED intensity) remotely using USB I need putty and write script. But the control signal should be based on some feedback information and it can be processed by MATLAB to get certain value. I know I can calibrate the feedback signal to analog or digital input using matlab. But my confusion is, how I can execute the calculated control signal from matlab to putty without automatically? Is that possible? if possible what code I should write in matlab to call putty directly. My problem is, the actuator I got only controlled through USB and remotely accessed by script written through putty.
Thank you in advance,
Dasharath Gulvady el 28 de Mayo de 2015
You may be able to control the actuator without using PuTTY and directly from MATLAB.
There are few functions available on MATLAB Central which allow users to execute commands on remote machines from a MATLAB session using SSH.
Please find the functions at the following links: http://www.mathworks.com/matlabcentral/fileexchange/27999-ssh-from-matlab-updated-+-sftpscp
Another alternative is to use plink as explanied below: http://www.mathworks.com/matlabcentral/answers/20353-controling-putty-through-matlab