hello all,
we are students @ university of technology and rdk-stepper is our bachelor-degree topic. we have all of software writed by texas (like gui, qstepper and so one) but our task is to write a totally different software. and on the beginning of our work we have some problems with connect with board - it's our first contact with this hardware and we don't know how code should look like.we are writing in visual studio (of course you can suggest better - in your opinion - software)
could anybody show us/send example code with connection and basicly: enable of stepper motor? it will be very helpful. it's hardest to start of something new...
thanks for attention and help! :)
Maciek (yankes at gmail dot com)
Maciej Jankowskiwe are writing in visual studio
So you are developing a PC Application - not writing embedded code to run on the Stellaris microcontroller?
This forum is about the embedded Stellaris microcontroller - for PC application development, you need to find another forum.
As VisualStudio is a Microsoft tool, the obvious place to start would be: http://msdn.microsoft.com
Other references for PC Application development:
http://codesearch.google.comhttp://www.codeproject.comhttp://www.codeguru.com/http://www.developer.com/etc, etc,...
exactly.. but to write pc application we need use API which is offered by TI, isnt? (for example commands in User Guide)
sorry if i'm wrong... i though that on Stellaris is firmware with API and we can use it to write an own pc app.
anyway thank you for reply!
and after browse sites above - can't find any helpful topics..
Sorry - it wasn't clear what you were asking or expecting from the forum
Yes, of course you will need the API specification - but that, surely, is part of the Documentation for the kit?
yes, of course.
i'm expecting some example of pc app (code in visual c++) using API. example like connection with FTDI and sending some commands. a few, basic functions...
Hi Maciej,
Unfortunately, at this point in time we do not have an example available that we can share with you.
Warm Regards,
Stellaris Ashish
Warm Regards,Ashish Ahuja
Check out the new Stellaris LaunchPadwww.ti.com/stellaris-launchpad
Maciej,
The RDK-Stepper GUI code was created in NI’s Lab Windows. It will not do you much good unless you have a full license for the tool. This was not done in MSVC++.
To talk to the RDK-Stepper through the FDTI device (USB to serial- Virtual COM port), you simply have to open/read/write the appropriate COM port on the PC. There is lots of example code out there if you do a simple search. Example: http://www.codeproject.com/KB/mcpp/howtocomport.aspx
As for the serial protocol… the protocol is described in the software documentation for the RDK-Stepper. You can use commands.h in the stepper code for the actual serial command codes. You’ll have to do a little work to stitch this together, but is a fairly simple protocol.
Regards,
Dan Nakoneczny
You could also use some sort of "sniffer" to watch the commands/responses sent/received by TI's GUI.
There are plenty of serial port "spy" utilities available as software that works entirely within the PC...
Google terms like "serial port analyser" or "serial monitor" in addition to "sniffer" and "spy" etc,...
thank you for helping me, Dan.
i think we are at end of our work. however we have one little problem with reading data from RDK-Stepper. our application can read stream buffer and usually return us frame with good data but sometimes (randomly) we get frame with unspecified data. for example:
good frames (with position of motor, bus voltage, etc)
-3 15 -86 0 0 0 0 0 0 0 0 0 15 0 0
-3 15 0 0 0 0 -64 93 0 0 0 0 0 0 -41
bad frames:
-3 15 -39 0 56 -117 -39 0 -92 -16 18 0 90 40 -90
3 -32 -16 18 0 -18 -67 70 -55 -72 -16 18 0 34 -57
and we dont know what it is and from it is (maybe from FTDI or directly from RDK). maybe it is something like communication frame? how we can recognize it?
read stream function: http://ctrlv.it/id/MjcxMTgz
quote :******************************************************************************
************************************************quote end
well, the rdk-stepper seems to be a ni labview programm, so i would ask, if it is piossible to get somehow a stellaris stepper gui-labview . vi.
it would help a lot not to go through the dll files an do a job that might already be done before.
so if it's possible to get a stepper-gui.vi it would save me a lot of time. since i am doing a phd in didactics of pysics education at lmu munic i would be very happy to save rare time. thanks for your understanding r. steinhuebl