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.
I am using Windows 7 Professional Service Pack 1 and Code Composer Studio Version: 6.1.0.00104.
In GUI Composer I did a GUI witch is receiving a data stream over UART (Debug Probe: Texas Instruments Inc.XDS100 Ver 2.0) from the F28069M LaunchPad. The GUI shows an analog gauge witch is turning when you turn an incremental encoder connected to the LaunchPad.
Everything is working quite good, but sometimes when you start the application either in CCS GUI Composer or in standalone (GUI Composer Runtime) it seems that the incoming stream starts to overflow. A delay occurs between turning the encoder and this is displayed on the screen. This delay increases with the time the application is running.
I have tried it also with different PCs with the same behavior.
Thank you in advance!
Regards,
Ferdinand
Hi Ferdinand,
The gauge uses animation to draw the needle, it is not suitable to handle large volume of data. It is better to use a graph in your case, which it is optimized to drop incoming data if it is not able to keep up with the input stream of data.
You can also try to increase the internal refresh delay to a larger number to prevent too many update to the gauge. Take a look at this wiki page.
processors.wiki.ti.com/.../Debugger_Refresh_Rate
Regards,
Patrick
Could it be the values that come from the UART is outside the range of the gauge?
This sound like the issue is not within the widget, perhaps there is an issue with the GUIComposer UART implementation. I'll ask the person who implemented the UART support to give you a hand.
Regards,
Patrick
Hello Victor,
Unfortunately it also happens when I do a fresh start. On my colleagues PC it first worked every time fine for several restarts and reconnections (so we thought already it is a matter of my PC and its slower CPU) but then we did another reconnection of the target to his PC and from that time he also had the described problem.
It seems to be better with a longer pause between the data (e. g. 200ms instead of 100ms) but unfortunately not always.
Best regards,
Ferdinand
Ferdinand,
1.Did you use the ftdi serial through usb or hooked up to the pins directly?
2.On your "restarts" did you terminate and restart the application process?
This should help us to narrow down if it is a driver issue.
Victor
Hello Victor,
I hope this information helps you.
Regards,
Ferdinand
Hello Victor,
I could send you the application and binaries for GUI Composer Runtime, but without an encoder it will not work. How can I send you the files?
Regards,
Ferdinand
Hi Victor,
Sorry for my late answer, but I were out of office for the last days.
I tried out what you wrote, but I have not mentioned any difference in the behavior afterwards.
Am I using a too high refresh interval? I thought that at 115200 baud 10 characters every 100ms should work?
Regards,
Ferdinand
It could be, that's why I suggested you to try it at a lower baud rate.
Insert some delays in your code where it handles internal update of the data you want to send as well.
For example, if I am doing a temperature sensor, maybe take the reading every 0.5 sec and use a 9600 baud rate should suffice.
The idea is, the device may not be powerful enough to handle large stream of data if you are taking readings at 0.001sec and generating a lot of buffer for the rs-232 chip to handle. The host side basically have access to unlimited buffer handled by the system OS, so the overrun is most likely target side related, or a bug in the rs-232 driver which is highly unlikely.
So in summary my suggestion is
1. reduce internal refresh/update rate
2. reduce baud rate, try some lower numbers from below