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.

TMS320F28379S: SFRA GUI Problem - unhandled exception

Part Number: TMS320F28379S
Other Parts Discussed in Thread: SFRA

When testing resonant controllers I've get exception error when SFRA GUI (version 1.10) try to view Open Loop Magnitude graph.

This problem is for attached specific data. For other data (for example when I disable PR controller) SFRA shows graph OK.

Frequency (Hz)	OL Magnitude (dB)	OL Phase (Deg)	Plant Magnitude (dB)	Plant Phase (Deg)
5	0,540314615	-10,71018314	2,086072206	-0,787314296
20	0,334618956	-4,500117779	2,086107254	-2,221520424
45	10,57985687	26,84400177	2,160149574	-4,899496078
48	18,4194088	32,10063171	2,181572199	-5,2780056
49,20000076	26,38242531	33,63186264	2,192771435	-5,388162613
49,5	30,45921326	33,41071701	2,195399284	-5,397380829
49,79999924	38,47603989	31,87956429	2,20992589	-5,422101021
50	60,10991287	-68,98183441	2,182789326	-5,314554691
50,20000076	38,13106537	-138,5722961	2,214154243	-5,45474577
50,5	30,35871506	-141,3202362	2,203333616	-5,486005783
50,79999924	26,29691696	-141,3264923	2,204806089	-5,588205338
52	18,39370728	-139,8500366	2,214552164	-5,653455257
55	10,56165886	-135,2695007	2,225522995	-5,982284546
60	4,886679173	-128,0872803	2,232947111	-6,533138752
90	-4,339775085	-109,4420624	2,154434204	-9,601950645
100	-5,625302792	-108,0830765	2,132639647	-10,60274696
110	-6,658641815	-107,5370255	2,108216047	-11,62329578
145	-9,324766159	-108,4984283	2,080064058	-15,28411293
148	-9,549055099	-108,7308884	2,064628839	-15,56895924
149,1999969	-9,595159531	-108,6727142	2,087551117	-15,65417862
149,5	-9,596652031	-108,6605072	2,064058781	-15,78782845
149,8000031	-9,611449242	-109,0246277	2,040785551	-15,62787724
150	-9,608503342	-108,6554642	2,041640759	-15,95368481
150,1999969	-9,642575264	-108,7812805	2,036038637	-15,87639046
150,5	-9,741074562	-108,7071152	2,044214725	-15,82461834
150,8000031	-9,68091774	-108,6354141	2,081584692	-15,73430061
152	-9,754076958	-109,0157928	2,084207058	-16,03649902
155	-9,924168587	-109,1450195	2,076617241	-16,29197502
160	-10,22670841	-109,3756714	2,062132597	-16,71372986
190	-11,75313187	-112,2060318	2,094235659	-19,94360542
200	-12,28934669	-113,182251	2,03426528	-20,79635239
210	-12,65902042	-114,162941	2,062550783	-21,96946907
245	-14,07231522	-117,6380844	2,034809828	-25,48903465
248	-14,13957882	-117,9570694	2,04040885	-25,78960419
249,1999969	-14,15762806	-117,9478455	2,048842669	-25,608675
249,5	-14,21102524	-118,595459	2,051714659	-26,21380997
249,8000031	-14,18115902	-118,4404526	2,04635191	-26,31813622
250	-14,2210865	-117,9403458	2,048683167	-25,95183182
250,1999969	-14,21372604	-118,4080658	2,087989807	-26,16745949
250,5	-14,21747398	-117,9665451	2,074317932	-25,93025208
250,8000031	-14,23507118	-118,6548691	2,039033413	-26,41295624
252	-14,28839016	-118,6132889	2,051452875	-26,32604218
255	-14,36022568	-118,875412	2,084887981	-26,69993591
260	-14,57892895	-119,6346741	2,039794922	-27,27357483
290	-15,50191879	-123,2139206	2,045905113	-30,67996788
300	-15,89010715	-123,533699	2,010079622	-31,308918
310	-16,111866	-124,9063721	2,042934179	-32,20588684
345	-16,92320633	-128,7352142	2,172027349	-35,94760513
348	-17,04781914	-128,9978485	2,122246027	-36,14426422
349,2000122	-17,11570549	-129,3389435	2,112100363	-36,60909271
349,5	-17,16689682	-129,5354462	2,038090944	-36,8453064
349,7999878	-17,16810799	-128,7567139	2,082233191	-35,8794136
350	-17,25024033	-129,0897369	1,982215643	-36,33614731
350,2000122	-17,08539772	-129,4632874	2,118384838	-36,74208832
350,5	-17,13557434	-129,5072327	2,097651243	-36,66597748
350,7999878	-17,15397644	-128,971405	2,097146988	-36,42928696
352	-17,19842148	-129,2756348	2,109273434	-36,57726288
355	-17,3549633	-129,5912628	2,039277554	-36,9644165
360	-17,36207008	-130,425354	2,116751432	-37,49747849
390	-18,09746552	-133,9791565	2,068558693	-40,76183701
400	-18,26833916	-135,0465393	2,128076553	-42,0628891
410	-18,527071	-136,7201691	2,110460997	-43,48833466
445	-19,25791359	-139,4221191	2,132392883	-45,86280441
448	-19,26825714	-140,4715576	2,168230772	-46,70537949
449,2000122	-19,46683693	-140,1260223	2,050941229	-47,12130356
449,5	-19,31912613	-140,0426788	2,178637505	-47,10522079
449,7999878	-19,30398369	-141,1807861	2,073357344	-47,6873436
450	-19,45957756	-140,699707	2,078094244	-47,174366
450,2000122	-19,3102417	-140,9092865	2,133593798	-47,08475113
450,5	-19,4281311	-140,3134308	2,056178331	-46,84673309
450,7999878	-19,33071709	-141,4276428	2,209826231	-48,29581833
452	-19,44042015	-141,4683838	2,032096386	-47,9929657
455	-19,55227852	-141,5984802	2,046737194	-47,94579697
460	-19,56711197	-142,1730957	2,13028717	-48,61203384
500	-20,38599205	-146,1742554	2,046978474	-52,19108963
625	-22,03732681	-161,2050629	2,496955156	-66,44882202
750	-24,0213089	-177,5221405	2,214571476	-82,43162537
875	-24,95383453	170,5404053	2,737267494	-93,83863068
1000	-26,11558533	157,6355591	2,864811182	-106,3493271
1125	-27,25111008	142,7003632	2,890334129	-121,6075974
1250	-27,27122307	127,2297974	3,95340395	-137,6553192
1375	-28,88239098	115,5784988	3,344164848	-149,4501495
1500	-29,48819351	99,9988327	3,57871294	-166,2923737
1750	-31,26098061	69,35044098	3,313471556	159,0810547
2000	-31,40996742	41,12508011	4,072490215	124,997406
2250	-33,01865768	4,033016205	2,513600349	83,46677399
2500	-31,7535038	-25,65507889	2,8380301	51,60988235
2750	-31,72304916	-62,67757416	1,26914537	17,89498901
3000	-31,67093277	-113,4966507	-1,129921317	-18,80908203
3050	-31,21644783	-118,3521652	-1,159976721	-19,07777786
3100	-31,79388046	-129,4671173	-2,186455011	-23,82886124
3150	-31,18508339	-146,8733673	-1,918956399	-35,29994583
3200	-31,69770241	-160,9411316	-2,706595421	-44,8506012
3250	-32,93257523	-177,5538177	-4,260910988	-51,17098236
3300	-32,57641983	172,6623688	-3,994702339	-55,936306
3350	-32,45367432	157,9637604	-4,148359776	-62,35477066
3400	-31,65712738	149,1952209	-2,829417229	-60,86216354
3450	-33,21905518	145,905777	-4,530367374	-54,91824341
3500	-36,22200775	117,2485046	-6,548813343	-72,6598587
3750	-38,68699265	39,34807968	-5,880033016	-108,3347244
4000	-50,39212418	174,3343201	-12,13468742	66,28862
4250	-51,79974747	-84,63478088	-3,738090515	-126,413414
4500	-60,02080536	167,7558746	11,14281464	-93,70713806
4750	-49,96899796	66,17344666	4,087365627	166,1330566
5000	-43,1681633	-18,01299095	18,22507286	132,4979706
5250	-56,95814896	-122,0057449	10,99122906	46,58428955
5500	-55,13615799	28,28939056	13,69730186	175,4111328
5600	-44,73913574	87,39753723	17,55136871	81,46697235
5700	-46,47046661	156,9249573	16,9637661	10,92770004
5800	-49,95396805	15,53704166	16,60320854	16,10481071
5900	-40,69333267	97,6341095	24,69931984	-8,519518852
6000	-48,23414993	167,4210968	13,57950878	-145,7661896
6050	-49,94431686	-115,6950989	12,40348434	85,19270325
6100	-57,71793365	89,69114685	8,789058685	52,03253937
6150	-52,02770233	70,67557526	8,954380989	134,6193695
6200	-45,48366165	-135,6151886	12,88465881	-88,18364716
6250	-49,06081772	-168,4327087	14,64144039	-121,1692352
6300	-47,47537231	-179,9012451	20,01067734	10,41897869
6350	-44,56430817	-93,3289032	27,19390678	14,16943264
6400	0	180	17,80143738	180

Screenshot of application:

This is error:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OverflowException: Overflow error.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawLine(Pen pen, Single x1, Single y1, Single x2, Single y2)
   at System.Drawing.Graphics.DrawLine(Pen pen, PointF pt1, PointF pt2)
   at System.Windows.Forms.DataVisualization.Charting.ChartTypes.LineChart.DrawTruncatedLine(ChartGraphics graph, Pen pen, PointF pt1, PointF pt2)
   at System.Windows.Forms.DataVisualization.Charting.ChartTypes.LineChart.DrawLine(ChartGraphics graph, CommonElements common, DataPoint point, Series series, PointF[] points, Int32 pointIndex, Single tension)
   at System.Windows.Forms.DataVisualization.Charting.ChartTypes.LineChart.ProcessChartType(Boolean selection, ChartGraphics graph, CommonElements common, ChartArea area, Series seriesToDraw)
   at System.Windows.Forms.DataVisualization.Charting.ChartTypes.LineChart.Paint(ChartGraphics graph, CommonElements common, ChartArea area, Series seriesToDraw)
   at System.Windows.Forms.DataVisualization.Charting.ChartArea.Paint(ChartGraphics graph)
   at System.Windows.Forms.DataVisualization.Charting.ChartPicture.Paint(Graphics graph, Boolean paintTopLevelElementOnly)
   at System.Windows.Forms.DataVisualization.Charting.Chart.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
SFRA_GUI
    Assembly Version: 1.10.0.0
    Win32 Version: 1.10.0.0
    CodeBase: file:///C:/ti/c2000/powerSUITE_2_01_00_00/packages/devkits/utils/SFRA_GUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Windows.Forms.DataVisualization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
Microsoft.Office.Interop.Excel
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.4756.1000
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
office
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.4760.1000
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/office/14.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


  • Lukas,

    Unfortunately this is a known issue with SFRA GUI. We are working on updating it but there is no set release date planned due to resource limitations.

    I think when it does crash like this, it does provide the data in the excel sheet??

    You can then import that data in excel sheet into matlab etc and plot. This is the only workaround I have for now,

    Sorry for the inconvenience.

    -Manish