I am a student at Lehigh University and am having trouble getting Matlab to control the maestro servo controller. Here is my progress so far:
-I’ve installed the software and drivers, and am able to move the servos using the Maestro Control Center.
-In the serial setting, I have it set in USB dual port mode.
-I have identified the command port of the controller as “COM3”.
-I found sample code in some of the other threads that include the function binvec2dec within the fwrite line of code. This is a problem for me, because I am running WIndows 64bit, and the DAQ toolbox is not supported on this platform. Would the bi2de be a possible replacement to the binvec2dec?
-The next code I tried was the MiniSSC-II code that looked like this:
When I run this code, the LED on the controller turns off for a split second, displaying that data is being received at least, but there is no response from the servo.
Any help with this would be greatly appreciated, I’m definitely starting to get frustrated at this point.
Here is a full copy of the code that I’m running (the servo position is arbitrary within it’s range, i’m just trying it get it to move first. Also, I have my servo connected to the number 5.)
port = ‘COM3’;
ser1 = serial(port);
set(ser1, ‘InputBufferSize’, 2048);
set(ser1, ‘BaudRate’, 9600);
set(ser1, ‘DataBits’, 8);
set(ser1, ‘Parity’, ‘none’);
set(ser1, ‘StopBits’, 1);