Search Results
Search results 1-20 of 23.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Plotting graphs
Sue - - emWin related
PostHey Sven, So, I have made further investigations and tests regarding my technical issues. And, here are what I have done : #1. I put the maximum value for the emWin memory : GUI_NUMBYTES (1024) * 110 #2. I implemented the code GUI_ALLOC_GetNumFreeBytes() to check the memory used every time I call CreateWindow(). Using STMStudio to monitor, I could see that the free memory available has decreased each time the function CreateWindow() is called. And, every time the memory reached around 50'000, th…
-
Plotting graphs
Sue - - emWin related
PostHi Sven, I thank you for your reply. Yes, I have used the function CreateWindow() without implementing the case WM_Delete, until now. My understanding is that the program runs out of memory at some points, and I really need to refresh / free the memory. Ideally, the program frees the memory after calling the function CreateWindow(). This way, there will not be an overflow of the memory being used. Here is a brief sequence of the code : static void _cbDialog(WM_MESSAGE * pMSG) { WM_HWIN hDlg; hDl…
-
Plotting graphs
Sue - - emWin related
PostHi Sven, How have you been going ? It has been some time ago that I had asked you some technical assistance for my project. And here are the late news : The project of measuring a solar cell and plotting the I-U and Power graphs has been going very well. It works fine and I am quite happy about it. Also, I thank you very much for having helped me to use the STemWin. However, while doing a more consistent test on the project, I have experienced a technical issue. Also, I have been working to fix …
-
Plotting graphs
Sue - - emWin related
PostHi Sven, I thank you very much for your reply, and also for having put me in the right direction. Your technical support is really helpful and valuable to work with STemWin. So, I am going to work on this for my project and will keep you informed on the results. Thanks a lot again and I wish you a nice day. With kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostHey Sven, I hope that you have been going okay.... My project has been progressing finely, and I thank you very much for your technical support in resolving the problems. The STemWin is a great tool and I am pleased on how it works for the graphics application. So far, I have managed to display 2 graphs (Current and Power) as shown on the previous page, with some values and scales. Also, the WIDGET_GraphXY.c example has helped me a lot. However, I have been experiencing the following issue with …
-
Plotting graphs
Sue - - emWin related
PostHi Sven, I thank you very much for your reply. #1. Yes, I have done this. I had thought that the 2nd scale could be more complicated to do.... #2. I have been working on this function GRAPH_SetUserDraw() to implement the company logo. Indeed, the WIDGET_GraphXY.c example has got this function, so it helps to understand how it should be done. Have a nice day and with kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostHey Sven, Learning from the WIDGET_GraphXY.c, I have managed to read and to display the measurement points. So, this is okay now. And I thank you for your technical support and help so far. Nowadays I have 2 questions regarding the graph display : #1. Plotting 2 graphs on the same display window, is it possible to have 2 different vertical Y axis sharing the same horizontal X axis ? The first Y axis for current measurements, and the second Y axis for power measurements. If this is possible, how …
-
Plotting graphs
Sue - - emWin related
PostHey Sven, I have double-checked the break point and also the variables to get the values of the array registered into the _aI[] and _aP[] GUI_POINT array. That seems to be working, indeed. So, the point #1 is okay. Have a nice day and with kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostGood morning Sven, I managed to get your example code of WIDGET_GraphXY.c and learn from it about the GUI_POINT. This part interests me a lot : ... _aPoint[0].x = (int) (100 - r * cos(Rad)); _aPoint[0][i].y = (int) (100 + r * sin(Rad) * Deg / 360); .... So, inspiring from the above codes, I have done something similar : ... _aI[i].x = (int) Axis_U_Array[i]; _aI[i].y = (int) Axis_I_Array[i]; ... However, I have experienced the following issue with those codes : #1. Putting the break point just af…
-
Plotting graphs
Sue - - emWin related
PostGood morning Sven, I thank you very much for your quick and great reply : that helps me to move forward in my project. Further, I am going to implement this in my codes, and also to learn better the GUI chapter from your manual. Then, I will give you a feedback on how things work..... Have a nice day and with my kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostDear Sven, I have got one question while working on my project : #1. When I work with the array, how can I convert the type uint32_t to the type GUI_POINT ? I have been trying to resolve this issue, but fail so far..... I thank you in advance for your technical assistance and with my kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostHey Sven, I thank you for your reply, and also for the PID file. That is great! So, the codes work correctly as they are meant to : touch screen button works and so the graph. This will give a good starting point to rework on my project. Have a great day and with kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostDear Sven, Great and thank you for your feedback : it assures me that my method is correct. As for the Touch Screen configuration with STemWin, I have been collecting the questions+answers about this subject from Segger forum. And even though there are still some unclear points for me, I have gotten better understandings about the subject. I am afraid that the Touch Configuration file has not been attached. So, may I ask you to send me this file ? I thank you a lot for your help and wish you a n…
-
Plotting graphs
Sue - - emWin related
PostHello Sven, I am going to install and use Embedded Studio IDE, and understanding how it works..... Regarding your reply, my understanding is the following then : #1. The measurements start once an interrupt input (button) is activated. It is a single sequence measurement. #2. Read the ADC current and DAC voltage inputs. #3. Save the values in arrays : current, voltage and power points. #4. Reprocess these values and plot / display them on the screen window. #5. End of sequence. Please feel free …
-
Plotting graphs
Sue - - emWin related
PostHey Sven, I thank you very much for your reply to my question. That is really great. I will require some times to take your example and make it work into my project, as I have been experiencing some technical issues with Atollic IDE, these last days..... But, as soon as I can make some progress on it, I will get back to you. Thank you again and have a nice day. With kind regards, Sue
-
Plotting graphs
Sue - - emWin related
PostHi Sven, I hope that you have been doing okay.... So, I have been experiencing some technical difficulties with the graphical display of my project. And here are the points : #1. I can manage to measure and to display 2 graphs on the same window, however I am not able to make them suitable to my project. #2. The graphs of my project should correspond to the attached file below : photovoltaics I-U measurement. #3. And here are the detailed steps : #3.1. There are 2 measurements : the current I (v…
-
Plotting graphs
Sue - - emWin related
PostHey Sven, I thank you very much for your reply and also for your recommendation tip about the super loop issues. I am going to work on using the timer to update the values. The super loop without dedicated 'user section' is situated in GUI_App.c file; and I going to post this in ST forum to resolve the issues. And I will get back here to let you know the results. My project has been progressing fine, and I am so happy about it. So, BIG thank you for supporting my technical issues with STemWin. Y…
-
Plotting graphs
Sue - - emWin related
PostGood morning Sven, I thank you for your helpful reply. So, your explication confirms my understanding about the super loop and also the several C files generated by CubeMX and GUI Builder. Using CubeMX 5.0.1 and GUI Builder to start a project, there are main, GUI_App, WindowDLG / FramewinDLG and also other files generated. The super loop in function GRAPHICS_MainTask() is not clearly dedicated for 'user code'. And consequently, when the same project is regenerated with CubeMX, all the codes that…
-
Plotting graphs
Sue - - emWin related
PostHi Sven, I hope that you enjoyed your weekend. So, IT SIMPLY WORKS! And I am a happy guy. Firstly, I followed your suggestion about the timer and checked those 2 files. Activating the Systick handler had resolved this issue. Secondly, I made a step-by-step approach to work on the display. And yes, I am now able to display an image and also a window for the graph. Third step, I implemented your 2nd code in the graph window and can see its graph. So, that is a good step forward for me and I THANK …
-
Plotting graphs
Sue - - emWin related
PostGood morning Sven, I thank you a lot for your reply, and also for your recommendation. Indeed, I learn and get to know more about emWin and Window Manager on your detailed manual. It helps to better understanding about the subject. So, here are the steps that I have been taking : #1. Using GUI Builder to make simple and progressive samples, with the help of the manual. #2. Taking back the samples you have given me and implement them in my project. It is a bit difficult for me to say when I would…