i am a student and a newbie , i am working on speech to control robert , i have done speech recognition in visual studio , but i am struck how to use ssc 32 in visual studio can anyone guide me with this , he ca give me some sample code or library needed for this , i will be very thankfull to you.
Sorry I have not done C# in awhile, mostly these days when I and doing something on the PC I end up using VB, but the concepts should be the same.
To use the SSC-32 with the PC, you simply have to send text commands to the SSC-32 over a serial port. The format of the commands are shown in the on line manual: lynxmotion.com/images/html/build136.htm
In my VB apps, I have a drop down list, that I can choose which comm port to use. I populate this list with code like:
[code] For Each sp As String In My.Computer.Ports.SerialPortNames
ComLB.Items.Add(sp)
Next
[/code]
You should be able to use the Visual studio help files or goggle the parts to convert this to C#
Then in my VB when I need to communicate with the device connected to the comm port (sometimes SSC-32 other times XBEE…) I have code that looks like:
[code] Try
Using com1 As IO.Ports.SerialPort = _
My.Computer.Ports.OpenSerialPort(ComLB.Items(ComLB.SelectedIndex), 38400, IO.Ports.Parity.None)
com1.NewLine = Chr(13)
com1.Handshake = IO.Ports.Handshake.None
com1.BaseStream.Flush()
…
com1.WriteLine("#0P1500") 'Move servo 0 to 1500
…
End Using
Catch ex As Exception
' Report error?
End Try
[/code]
Again all of these classes should have C# definitions.