MATLAB: Control of Stepper motor using Matlab

codeelectric_motor_controlparallel portpower_electronics_controlstepper motor control

Hello all,
I have written a very simple piece of code, to run my stepper motor using matlab:
clc;
clear all;
dio=digitalio('parallel','lpt1');
addline(dio,0:7,0,'out');
flag = 'ture';
while flag == true
putvalue(dio,[1 0 0 1 0 0 0 0])
flag = input('true/false','s');
end
Since, I don't have parallel port in my laptop, so I will taking help of another pc, if someone can verify that the code will run fine, I would be thankful.
What I am trying to do is to run the code and allow the stepper motor to keep running unless flag is true.

Best Answer

Done :) with the same
Related Question