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.

design gui for hvkit!

Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE

Dear; can you tell me about:

i need to disign GUI for as example HVACI_Sensorless:

1- for disign GUI , do you have pdf for explin how to creat it and setting the properties of each element?

2- for design plot for current how can I adjust it and how can import Graph1.graphProp and its properties?

3-

thanks

  • Hi,

    You can go through this:

    http://processors.wiki.ti.com/index.php/Category:GUI_Composer

    For an introductory video about GUI Composer please click here.

    NEW: This tutorial also provides a step by step guide for how to create a simple GUI Composer Application.

    You'll also have to download:

    GUI Composer Runtime(CCSv5.5): Download GUI Composer Runtime with example application. (~380 MB) : This download package allows you to execute example application. It is compatible with GUI Composer applications created with CCS v5.5 and lower. The runtime includes JTAG support for C2000, Stellaris, TMS570, Tiva C and MSP430(UART support only).

    Regards,

    Gautam

  • thank you for reply!!!

    ok; but

    1 - when the signal is sinusoidal and plot with the gui it is appear non sinusoidal but actually it is sinusoidal when i used ccs and tool Graph1.graphProp as motor current!!! 

    2- how can i do reset and stop for end the work?

    thanks

  • ahmed,

    on #1 - this may have to do with how many samples you are passing back to yoru GUI display. Are you using a datalog?  You should probably ask this on the CCS forum where the GUI Composer experts are:

    http://e2e.ti.com/support/development_tools/code_composer_studio/default.aspx

    #2 - what variables do you use to do this in your code / Expressions view today?  The GUI is just a way to insturment your variables.

    For example, in the MotorWare projects I work with

    - Disable the Run_Flag

    - Disable the Enable_Flag

    (in your code you should be disabling the PWMs during one of these)

    - Turn off Real-Time

    - Suspend

    - Disconnect emulation

     

  • dear ChrisClearman;

    1- when i posted this post i posted it in CCS forum, then they moved it to here!!!! 

    in hvkit 1.7 i see gui and in it the current can be plotted!!!!1 can you till me how? 

    2- for f28035 HVACI_Sensorless i tried to control for stop from enableflag (0 or 1) but it is no effect and the gui still run!!

    how can i control for (

    -Turn off Real-Time

    - Suspend

    - Disconnect emulation)

    3- i ask for this is new programme for speed estimation depending on full order observer, it works good and smothly with its gui!!! can you help me for puplication it in controlsuite?

    thanks

    ahmed

  • Dear please i am soory another question!!!:

    i have new pc with windous xp and when i setup the ccs5 and need to work with the kit:

    import project and build without any problem

    but when i tried to debug the following error is appeared 

    C28xx: Error connecting to the target: (Error -1135 @ 0x0) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.232.0) 
    
    
    C28xx: GEL: Error while executing OnTargetConnect(): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:78] 	at OnTargetConnect() .
    C28xx: GEL: Error while executing OnReset(0): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:32] 	at OnReset(0) .
    C28xx: GEL: Error while executing OnReset(0): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:32] 	at OnReset(0) .
    C28xx: GEL: Error while executing OnReset(0): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:32] 	at OnReset(0) .
    C28xx: GEL: Error while executing OnRestart( 0 ): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:53] 	at OnRestart(0) .
    C28xx: GEL: Error while executing OnReset(0): identifier not found: ST1 	at ST1=(ST1&~(0x0100)) [f28035.gel:281] 	at C28x_Mode() [f28035.gel:32] 	at OnReset(0) .
    C28xx: GEL: Error while executing OnFileLoaded( 0, 0): identifier not found: XAR0 	at XAR0=*(0x3F7FF8) [f28035.gel:554] 	at Device_Cal() [f28035.gel:67] 	at OnFileLoaded(0, 0) .
    C28xx: Breakpoint Manager: Retrying with a AET breakpoint
    C28xx: Breakpoint Manager: Error enabling this function: DCU_SEL Can not get the ID for the ANA register
    C28xx: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x3f6000: (Error -1066 @ 0x3F6000) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.232.0) 
    

    then i tested the connection of the control cared and it is succed! and when i worked from the labtop as usual every thing is ok?

    can you help me?

  • 1. It's probably because you had specific questions about the HVKit or motor control. Make sure you ask your question about GUI Composer and how to capture enough data points to plot a 60 Hz sine wave

    The GUI in HVKIT v1.7 folder was created using C# and Visual Studio .NET before we had GUI Composer.  The source code for the GUI is given if you have access to modify.  However, we don't really give you the source code that is needed to update the binary.  If  would suppose the currents in this project are gathered like we do with any other method, by using the datalog[1] feature to store the values in a memory buffer, and then transferring to the GUI for plotting.

    2. You obviously aren't connecting the GUI correctly. You can watch the expressions view at the same time (with continuous refresh and real-time enabled). If you make a change to either the GUI or expressions window it will update in the other - assuming you have widgets connected correctly to the same variable.  It's very straight forward.

    In GUI composer, when you create a standalone GUI by exporting your project, it will take care of starting/stopping the connection, real-time, and run/suspend automatically when you open/close the GUI .exe.  If you are still creating / running in CCS/GUI Composer you have to do all of these steps manually.  I believe the GUI Composer Wiki is clear on this point.

    3.  No, sorry. We have no interest in publishing your solution as we have no capability to support others.  If you want to publish on your own and promote on this forum that's fine with us though.  Congratulations on your work!

    Regarding your error, did you try to connect while already still connected?  Try a fresh power cycle / connection and see if you still get any errors.

     

  • Dear,

    Thank you for your help!

    As you tolled me when work in ccs as application it work will and the gui and expression variabls as the same and have been changed simultaneously!

    The problem for stand alon gui how can I di "when you create a standalone GUI by exporting your project, it will take care of starting/stopping the connection, real-time, and run/suspend automatically when you open/close the GUI .exe. " do you mean 

    "

     C2000 family of devices requires following lines to be added to "appInitScript.js" between load program and run program steps. 

    print("Enabling Realtime\n");
    session.expression.evaluate("ST1.DBGM = 0");
    session.expression.evaluate("GEL_EnableRealtime()");

    "

    For plot cuurent I will post in ccs form!

    Thanks

  • Yes, ahmed, you've got it.  Looks like you are on the right path.

  • Thank you very much for your help and support!