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.

[参考译文] TMDSCNCD28069MISO:SFRA GUI 崩溃#39;自动间隔错误#39;

Guru**** 1821780 points
Other Parts Discussed in Thread: SFRA, DRV8301, CONTROLSUITE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/995145/tmdscncd28069miso-sfra-gui-crash-auto-interval-error

器件型号:TMDSCNCD28069MISO
主题中讨论的其他器件:SFRADRV8301controlSUITE

你(们)好。

我已将 SFRA 库(C:\ti\controlSUITE\libs\app_libs\SFRA\v1_10_00_00)与 DRV8301电机项目(C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-Kit_V105\PM_Sensorless)集成在一起。 我使用 SFRA 来调整内的 PID 控制器。 它适用于 IQ 和 id 控制器、但与速度控制器配合使用时、GUI 会崩溃并显示以下错误:

我不确定是什么问题。  

感谢您的阅读、感谢您的回复。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、通常这是 BW 计算例程中发生的错误。  

    遗憾的是、我没有解决此错误的权变措施来使 GUI 正常工作。 通常是导致 BW 计算崩溃的环路形状。  

    GUI 将保存 CSV 文件和 SFRA 数据,您可以将其导入到补偿设计器中进行查看。

    -Manish  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Manish、您好!  

    感谢您的回复。

    什么是 BW?

    不是、生成的 csv 已损坏。 它们都是问号或0、下面是一个示例:

    我尝试使用 CCS 存储器浏览器来透视 MCU 的存储器、中的记录也会损坏。

    下面是例外的全文:

    有关调用的详细信息、请参阅此消息的末尾
    即时(JIT)调试、而不是这个对话框。

    ******** 例外文本********
    System.InvalidOperationException:Axis 对象–由于无效的点值或轴最小值/最大值而导致自动间隔错误。
    在 System.Windows.Forms.DataVisualization.Charting.Axis.CalcInterval (双差分)
    在 System.Windows.Forms.DataVisualization.Charting.Axis.EstimateNumberAxis (double& minimumValue、double& maxumValue、Boolean shouldStartFromZero、Int32 preferredNumberOfIntervals、autobolean Maximum、 布尔自动最小值)
    在 System.Windows.Forms.DataVisualization.Charting.Axis.EstimateAxis (double & minimumValue、double & maximumValue、Boolean autoMaxum、Boolean autoMinimum)
    在 System.Windows.Forms.DataVisualization.Charting.Axis.EstimateAxis()
    在 System.Windows.Forms.DataVisualization.Charting.ChartArea.SetDefaultAxsValues()
    在 System.Windows.Forms.DataVisualization.Charting.ChartArea.setData (布尔初始化函数轴、布尔校验索引已对齐)
    在 System.Windows.Forms.DataVisualization.Charting.ChartArea.ReCalcInternal()
    在 System.Windows.Forms.DataVisualization.Charting.ChartPicture.Paint (图形、布尔油漆面元素仅限)
    在 System.Windows.Forms.DataVisualization.Charting.Chart.OnPaint (PaintEventArgs e)
    在 System.Windows.Forms.Control.PaintWithErrorHandling (PaintEventArgs e、Int16层)
    在 System.Windows.Forms.Control.WmPaint (消息和 m)
    在 System.Windows.Forms.Control.WndProc (消息和 m)
    在 System.Windows.Forms.NativeWindow.Callback (IntPtr HWND、Int32 msg、IntPtr wparam、IntPtr lparam)


    ******** 已加载的组件********
    mscorlib
    组件版本:4.0.0.0
    Win32版本:4.8.4341.0由 NET48REL1Last_C 构建
    代码库:文件:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    --------------------------------------
    SFRA_GUI
    汇编版本:1.10.0.0
    Win32版本:1.10.0.0
    代码库:文件:///C:/ti/controlSUITE/libs/app_libs/SFRA/v1_10_00_00/GUI/SFRA_GUI.exe
    --------------------------------------
    System.Windows.Forms
    组件版本:4.0.0.0
    Win32版本:4.8.4341.0由 NET48REL1Last_C 构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    --------------------------------------
    系统
    组件版本:4.0.0.0
    Win32版本:4.8.4300.0由 NET48REL1Last_C 构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    --------------------------------------
    系统工程图
    组件版本:4.0.0.0
    Win32版本:4.8.4084.0由 NET48REL1构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    --------------------------------------
    System.Windows.Forms.DataVisualization
    组件版本:4.0.0.0
    Win32版本:4.8.42.2000.0
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
    --------------------------------------
    系统配置
    组件版本:4.0.0.0
    Win32版本:4.8.4190.0由 NET48REL1Last_B 构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    --------------------------------------
    系统核心
    组件版本:4.0.0.0
    Win32版本:4.8.4341.0由 NET48REL1Last_C 构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    --------------------------------------
    System.XML
    组件版本:4.0.0.0
    Win32版本:4.8.4084.0由 NET48REL1构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    --------------------------------------
    可访问性
    组件版本:4.0.0.0
    Win32版本:4.8.4084.0由 NET48REL1构建
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    --------------------------------------
    系统数据
    组件版本:4.0.0.0
    Win32版本:4.8.4270.0构建者:NET48REL1Last_C
    代码库:文件:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    --------------------------------------

    ******** JIT 调试********
    为了启用即时(JIT)调试、需要使用.config 文件
    应用程序或计算机(machine.config)必须具有
    jitDebugging value set in the system.windows.forms section。
    应用程序也必须通过调试进行编译
    使能。

    例如:



    启用 JIT 调试后、任何未处理的异常
    将被发送到在计算机上注册的 JIT 调试器
    而不是由该对话框处理。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我相信会发生一些零点除法等情况、我建议您重新查看您在速度控制器应用中是如何安装 SFRA 的、并确保您只运行一个实例。

    因此、确保 SFRA 速度是唯一在代码中注入和收集的 SFRA、SFRA 库是不可重入的。