This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Burned out from looking, question not answered, extra points for answering

Other Parts Discussed in Thread: MOTORWARE

Ok, if you have bothered to read this far, I'm tickled green. I would have said pink but not sure what

that might imply to someone. Anyhow, I have 2 questions. Only two questions that I have not been able to find the answer too or get answered.

I'll only ask one question this time. I program micro's and am an electronics tech. I have never used CCS, or MotorWare before now.

I have looked, at EVERY pdf and video (including ones without sound) on the GUI composer. Where it comes to binding How do you know, in your motor ware, what to bind it to?

Let's take the simple GUI widget in you GUI's. Just the enable. What do you bind the control to?

I have loaded your examples in to CCS and done a search for g_ global variables, nothing. There are over 518 entries in those files, and I can't find what to bind to. It seems to me that for someone changing to MotorWare and CCS at the same time, and it's all new, might nil impossible. Someone knows the answer, TI has done it a bunch of times on all their GUI's.

I was excited and gung ho to TI when I first started, but now, I would suggest to someone, don't even get started. Unless of course this question is answered :)

Thanks,

David     (the lost one)

  • Hi David,

    GUI Composer binds to Global Variables within the Firmware.

    In the MotorWare projects you can find the structure for these in the "main.h" file (struct _MOTOR_Vars_t_).

    They are instantiated in the "proj_lab0x.c" file (volatile _MOTOR_Vars_t gMotorVars = MOTOR_Vars_INIT).

    Have you checked out the InstaSPIN Projects and Labs User's Guide in MotorWare? It's in the resources tab and goes through the labs and how they are setup.

    Let me know if you have additional questions. You might also check out the C2000 forums for MotorWare specific questions.

  • Thanks for the reply, if you don't mind, since I have left the office could I get back to you tomorrow.

    I have part of it on my laptop, I checked and I have no main.h or main.anything. Don't know why yet.

    David

  • David,

    You're trying to jump right into creating your own GUI?

    Are you even using the UNIVERSAL MotorWare GUI we provide as a way to start?

    Have you worked through any of the InstaSPIN MotorWare labs which clearly outline all of the structures and variable names you might want to instrument with a GUI?

    Basically, anything you would normall instrument (interact with) in CCS View --> Expressions, you can instrument through a graphical user interface.  The only real "catch" is that some variables will require some scaling on the PC (pre-processing) and scaling to return the user manipulated variable back to the target in the correct format (post processing).

    No offense, but I think you should focus on the basics of the software infrastructure before you try to create a new GUI.

     

  • No offense taken. But I re-read my post, and all the other post I have made and it appears clear as to what I have been looking for. I don't know how you came to the conclusion I was making a GUI from scratch. Hope you are having a better day today.

    However, for the use of others. I FOUND IT !

    In Motor Ware go to "InstaSPIN-MOTION"

    Then  "Piccolo F2806Xm"   "drv8312kit_revD"   (only because this is the one I am using)

    "Example Projects"  "View All Example Projects""

    "Project Source Code Documentation"

    Right side of page   Several tabs listing including "Globals"

    Thanks to all who helped.

    David