I have a motorized device that is controlled by serial commands.
Typical text string commands include:
“:G232[0xd]” //Set Motor direction as CCW
“:I2130000[0xd]” //Set Motor Slew Speed
“:J2[0xd]” //Start Motor movement
I am successfully able to serially control the device from an application I have installed on my PC. But I want to be able to control the device via Powershell.
I’ve opened the port this way:
$port= new-Object System.IO.Ports.SerialPort COM4,9600,1,8,1;
All seems to be fine at this point
The commands I’ve tried to write this way:
or this way:
The device is not responding to any of these.
I’m wondering if my syntax for the carriage return is valid?
Any suggestions would be appreciated