Starting MS Robotics Studio for the first time and getting something up and running is generally a daunting task. I thought I’d provide a quick tutorial on how to get the SSC-32 driver up and operational.
Start by downloading the drivers from Lynxmotion’s site. They are in the form of a .zip file.
Assuming you installed Robotics Studio into the default location unzip this file to C:. If you installed RS somewhere else you’ll need to unpack the .zip into the folder that contains “Microsoft Robotics Studio (1.0)”.
Now you should be able to bring up Visual Studio using the .csproj file in samples\Lynxmotion\SSC32. Just open explorer there and double-click the SSC32.csproj file.
In a bit you should be staring at a Visual Studio window. Determine which serial port your SSC-32 is connected to on your PC. You’ll want to open the file SSC32State.cs and locate the variable named _portName. This is currently set to “COM5”. Change it to be whatever port you have attached the SSC-32 to.
Select Build/Build Solution and you should see it successfully build. If the last line of the output doesn’t say “0 failed” then something went wrong and don’t try to go any further.
Assuming you’re still here the build worked. You should now be able to power on the SSC-32 and then run the program by hitting F5 in Visual Studio. It would probably help to have a servo or 2 attached to the SSC-32 so you can actually control something.
A DOS box will pop up with various log messages in it. Once that stops the servos might jump to a new position but then everything seems to just sit there. That’s OK since the service is now running but there are no requests being made to it.
Open up your web browser and point it to localhost:50000/ssc32
You should see a list of 32 servos and there values along with a single button. Go ahead and enter a value into one of the servo fields and click the button. This will send the value to the SSC-32 and the servo should move.
Go back to Visual Studio and stop the program. Now you need to be able to run it from the command-line. Robotics Studio installs a command prompt with a special environment. It’s under the Start menu for Robotics Studio. Go and run this.
Once the command box comes up enter the command
bin\dsshost -port:50000 -tcpport:50001 -manifest:samples\Config\Lynxmotion.SSC32.manifest.xml
This should make the driver come up in the same way as it did under Visual Studio. You should also be able to control the servos via the web browser.