Hello
I am tyring to drive a step motor using Tic T 500 pololu driver and ı want to create another interface to control it (except pololu tic control center) in c#. I use ticcmd commands to control it and the problem is when I set the position as numerical more than 180 motor rotates and it doesnt stop at exact position.
I need help
This is my linings in C#
decimal a = numericUpDown1.Value;
Process cmd2 = new Process();
cmd2.StartInfo.FileName = "cmd.exe";
cmd2.StartInfo.RedirectStandardInput = true;
cmd2.StartInfo.RedirectStandardOutput = true;
cmd2.StartInfo.CreateNoWindow = true;
cmd2.StartInfo.UseShellExecute = false;
cmd2.Start();
cmd2.StandardInput.WriteLine("ticcmd -d 00261751 --exit-safe-start --position " + a);
//System.Threading.Thread.Sleep(500);
cmd2.StandardInput.Flush();
cmd2.StandardInput.Close();
cmd2.WaitForExit();
Console.WriteLine(cmd2.StandardOutput.ReadToEnd());