matlab R2016a.OS:我所生成的Windows 10All是Master Block,除了用于测试用例之外,没有其他任何东西,我得到以下错误:请帮助我完成这项工作,因为我确实需要完成一些工作。Ali

以上来自于百度翻译

以下为原文

Hi,

I am struggling from the last 3 days to generate a single code using the block set.

Matlab R2016a.

OS: Windows 10

All I am generating is the Master Block nothing else just for the test case and I get the following error:

Elapsed: 25 sec

### Generating code into build folder: C:\Users\ali\Documents\MATLAB\untitLED.X

### Invoking Target Language Compiler on untitled.rtw

### Using System Target File: C:\Program Files (x86)\microchip\MatlabTools\blocks\MCHP_dsPIC_stf.tlc

### Loading TLC function libraries

### Initial pass through model to cache user defined code

### Caching model source code .

Error: File: C:\Program Files (x86)\microchip\MatlabTools\blocks\MCHP_Master.tlc Line: 5 Column: 49

Unable to find ChipIdL1 within the RTWGenSettings scope

Main program: ==> [00] C:\Program Files (x86)\Microchip\MatlabTools\blocks\MCHP_Master.tlc:Start(5)

[01] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\blocks\gensfun.tlc:Start(574)

[02] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(3845)

[03] C:\Users\ali\Documents\MATLAB\untitled.X\tlc\s0_b0_rj79_ModelInitialize.tlc:ModelInitialize(7)

[04] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(4518)

[05] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(4433)

[06] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(193)

[07] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(406)

[08] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(508)

[09] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1186)

[10] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(5145)

[11] C:\Program Files\MATLAB\R2016a\rtw\c\tlc\mw\formatwide.tlc:(55) Error: File: C:\Program Files (x86)\Microchip\MatlabTools\blocks\MCHP_Master.tlc Line: 5 Column: 48 Bad cast - unable to cast this expression to "String"

Main program: ==> [00] C:\Program Files (x86)\Microchip\MatlabTools\blocks\MCHP_Master.tlc:Start(5) [01] C:\ProgramError: File: C:\Program Files (x86)\Microchip\MatlabTools\blocks\MCHP_Master.tlc Line: 7 Column: 49 Unable to find ChipIdL3 within the RTWGenSettings scope

Please Help me out to get this working as I really need to get some work done.

Regards,

Ali

0

以上来自于百度翻译

以下为原文

Hi Ali,

Further input would be required:

Which Blockset version are you using ?

Which matlab tools do you have (Typing ver at matlab prompt would provide all required inputs)

Could you try compiling example provided ?

type 'picInfo' to copy examples in current folder, and follow instructions to compile them all. would take few minutes. You end up with a summary about success/fall.

If you also get errors, please provide the report.

Thanks,

Lubin

2019-5-17 15:02:41

评论

提交评论

以上来自于百度翻译

以下为原文

Hi Lubin,

First of all sorry for the late reply as I was stuck with some stuff.

I am using Block-set version mentioned below:

Microchip Blockset 3.38 installed. See info and examples.

and following is my toolbox installed

MATLAB Version: 9.0.0.341360 (R2016a)

MATLAB License Number: 722433

Operating System: Microsoft Windows 10 Home Version 10.0 (Build 14393)

Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

----------------------------------------------------------------------------------------------------

MATLAB Version 9.0 (R2016a)

Simulink Version 8.7 (R2016a)

Aerospace Blockset Version 3.17 (R2016a)

Aerospace Toolbox Version 2.17 (R2016a)

Antenna Toolbox Version 2.0 (R2016a)

Audio System Toolbox Version 1.0 (R2016a)

Bioinformatics Toolbox Version 4.6 (R2016a)

Communications System Toolbox Version 6.2 (R2016a)

Computer Vision System Toolbox Version 7.1 (R2016a)

Control System Toolbox Version 10.0 (R2016a)

Curve Fitting Toolbox Version 3.5.3 (R2016a)

DSP System Toolbox Version 9.2 (R2016a)

Data Acquisition Toolbox Version 3.9 (R2016a)

Database Toolbox Version 6.1 (R2016a)

Datafeed Toolbox Version 5.3 (R2016a)

Econometrics Toolbox Version 3.4 (R2016a)

Embedded Coder Version 6.10 (R2016a)

Embedded Target for Microchip Version 3.38 (R20xx)

Filter Design HDL Coder Version 3.0 (R2016a)

Financial Instruments Toolbox Version 2.3 (R2016a)

Financial Toolbox Version 5.7 (R2016a)

Fixed-Point Designer Version 5.2 (R2016a)

Fuzzy Logic Toolbox Version 2.2.23 (R2016a)

Global Optimization Toolbox Version 3.4 (R2016a)

HDL Coder Version 3.8 (R2016a)

HDL Verifier Version 5.0 (R2016a)

Image Acquisition Toolbox Version 5.0 (R2016a)

Image Processing Toolbox Version 9.4 (R2016a)

Instrument Control Toolbox Version 3.9 (R2016a)

LTE System Toolbox Version 2.2 (R2016a)

MATLAB Coder Version 3.1 (R2016a)

MATLAB Compiler Version 6.2 (R2016a)

MATLAB Compiler SDK Version 6.2 (R2016a)

MATLAB Report Generator Version 5.0 (R2016a)

Mapping Toolbox Version 4.3 (R2016a)

Model Predictive Control Toolbox Version 5.2 (R2016a)

Model-Based Calibration Toolbox Version 5.1 (R2016a)

Neural Network Toolbox Version 9.0 (R2016a)

OPC Toolbox Version 4.0.1 (R2016a)

Optimization Toolbox Version 7.4 (R2016a)

Parallel Computing Toolbox Version 6.8 (R2016a)

Partial Differential Equation Toolbox Version 2.2 (R2016a)

Phased Array System Toolbox Version 3.2 (R2016a)

Polyspace Bug Finder Version 2.1 (R2016a)

Polyspace Code Prover Version 9.5 (R2016a)

RF Toolbox Version 3.0 (R2016a)

Robotics System Toolbox Version 1.2 (R2016a)

Robust Control Toolbox Version 6.1 (R2016a)

Signal Processing Toolbox Version 7.2 (R2016a)

SimBiology Version 5.4 (R2016a)

SimEvents Version 5.0 (R2016a)

SimRF Version 5.0 (R2016a)

Simscape Version 4.0 (R2016a)

Simscape Driveline Version 2.10 (R2016a)

Simscape Electronics Version 2.9 (R2016a)

Simscape Fluids Version 2.0 (R2016a)

Simscape Multibody Version 4.8 (R2016a)

Simscape Power Systems Version 6.5 (R2016a)

Simulink 3D Animation Version 7.5 (R2016a)

Simulink Code Inspector Version 2.5 (R2016a)

Simulink Coder Version 8.10 (R2016a)

Simulink Control Design Version 4.3 (R2016a)

Simulink Design Optimization Version 3.0 (R2016a)

Simulink Design Verifier Version 3.1 (R2016a)

Simulink Desktop Real-Time Version 5.2 (R2016a)

Simulink PLC Coder Version 2.1 (R2016a)

Simulink Real-Time Version 6.4 (R2016a)

Simulink Report Generator Version 5.0 (R2016a)

Simulink Test Version 2.0 (R2016a)

Simulink Verification and Validation Version 3.11 (R2016a)

Spreadsheet Link Version 3.2.5 (R2016a)

Stateflow Version 8.7 (R2016a)

Statistics and Machine Learning Toolbox Version 10.2 (R2016a)

Symbolic Math Toolbox Version 7.0 (R2016a)

System Identification Toolbox Version 9.4 (R2016a)

Trading Toolbox Version 3.0 (R2016a)

Vehicle Network Toolbox Version 3.1 (R2016a)

Vision HDL Toolbox Version 1.2 (R2016a)

WLAN System Toolbox Version 1.1 (R2016a)

Wavelet Toolbox Version 4.16 (R2016a)

>>

examples models compilation generated result:

Not Ok ==> AUAV_V3_33EP512MU810_I2C_BMP180.mdl

Not Ok ==> AUAV_V3_33EP512MU810_SPI_MPU6000__I2C_HMC5883_SensorsTest.mdl

Not Ok ==> Explorer16_33FJ256GP710_SimpleFilter.mdl

Not Ok ==> MCLV_Board_33Fj256MC710A_BLDC_wHall_async_2_10Khz.mdl

Not Ok ==> Microstick_II_33EP128MC202_CustomCFunCall.mdl

Not Ok ==> Microstick_II_33EP128MC202_Drotek_I2C_MPU6050_HMC5883L_AGM.mdl

Not Ok ==> Microstick_II_33EP128MC202_Drotek_I2C_MS5611_TempAndPressure.mdl

Not Ok ==> Microstick_II_33EP128MC202_bare.mdl

Not Ok ==> Microstick_II_33FJ128MC802_Drotek_I2C_MPU6050_HMC5883L_AGM.mdl

Not Ok ==> Microstick_II_33FJ128MC802_MCU_TaskProfiling.mdl

Not Ok ==> Microstick_II_33FJ128MC802_bare.mdl

Not Ok ==> Microstick_II_33FJ64MC802_bare.mdl

Not Ok ==> Microstick_II_PlusDevBoard_33EP128MC202_Temperature_PICGUI.mdl

Not Ok ==> UDB5_33FJ256GP710A_SPI_MPU6000_SensorsTest.mdl

Thank you for your help in advance

Thanks,

Ali Meraj

2019-5-17 15:08:22

评论

提交评论

以上来自于百度翻译

以下为原文

Hi Lubin,

here is the output

--------------------------------------------

Microchip Blockset 3.38 Installed:

--------------------------------------------

Refreshing cache...

- Blockset in C:\Program Files (x86)\Microchip\MatlabTools

- Link to MPLAB X to program chip is Ok

1 Compiler(s) found for 16 bits chip:

- C:/Program Files (x86)/Microchip/xc16/v1.30

>>

I am working on 33EP512MU810 Chip.

Regards,

Ali

2019-5-17 15:38:27

评论

提交评论

以上来自于百度翻译

以下为原文

Hi Ali,

Installation of the blockset and related tools (XC compiler + MPLAB X to program chip) seems all ok.

We need to check for a possible issue with Windows 10 compatibility with Simulink.

Is Simulink working as usual?

If you open a model for code generation (use an example) for a dsPIC, what happens when you open the "Master Block"? Do you see any error while opening dsPIC library block?

These blocks use kind of compiled dll whose name are "mex files". I am wondering if these might cause any issue with windows 10.

Thanks,

Lubin

2019-5-17 15:44:12

评论

提交评论

以上来自于百度翻译

以下为原文

Hey there,

I got kind of a similar problem when trying to generate code from a simple model using only the "C Function Call" block beside the "Microchip Master" and "Compiler Options" blocks.

I'd highly appreciate your help with this.

Matlab ver:

picInfo('check')

code generation log (my model):

picInfo('examples') Examples compilation:

Unfortunately the Microstick_II_33EP128MC202_CustomCFunCall.mdl seems to work just fine.

Still I got no idea why my model isn't working. I tried to:

- use or not use a DD

- change all the settings in Microchip Master and Compiler Options blocks (to fit the example model)

- make a new model from scratch

Maybe someone could give me a hint, why this error occurs. Then I might be able to find the issue.

additional Info (although I can't imagine that it has anything to do with that):

my custom C-Code only uses == Operators no !=. All == are used with a variable and a constant (eg. 0x02U or similar)

Thanks a lot in advance.

2019-5-17 16:04:11

评论

提交评论

只有小组成员才能发言,加入小组>>

MATLAB显示错误使用untitled,使用Matlab 2016a阻止集合构建错误相关推荐

  1. matlab显示YCrCb的图像,【Matlab系列】读取并显示YUV视频文件

    Date: 2019-5-12 1.读取并显示YUV视频文件Matlab代码 %% 1.读取视频内容并显示 fid = fopen('akiyo_cif.yuv','r'); %读入YUV文件 row ...

  2. matlab 显示定点数的范围,定点数 - MATLAB Simulink - MathWorks 中国

    定点数 在数字硬件中,数字以二进制字形式存储.二进制字是固定长度的二进制数字(1 和 0)序列.硬件组件或软件函数解释这种 1 和 0 序列的方式由数据类型说明.定点数据类型和 MATLAB® 中的内 ...

  3. matlab显示循环里进度,关于matlab中的waitbar(用于显示程序运行的进度)

    关于matlab中的waitbar(用于显示程序运行的进度) 应用1: h = waitbar(x,'message'); %其中x必须为0到1之间的数,message为显示的信息,其实这个x大于1也 ...

  4. matlab显示字体颜色,数组 – 在Matlab中显示字体颜色

    您没有填写QQQQ中的所有值,只有那些将为红色的值.其余的(应该是黑色的)留作空单元格,因此它们不会显示. 要纠正此问题,您需要将QQQQ初始化为AAA,然后修改相关单元格的颜色.所以,添加 AAA ...

  5. matlab输入指令错误怎么修改,在MATLAB中运行程序时,显示错误: 此上下文中不允许函数定义。 怎么修改?...

    点击查看在MATLAB中运行程序时,显示错误: 此上下文中不允许函数定义. 怎么修改?具体信息 答:MATLAB程序运行错误后,切换到MATLAB命令行中,观察命令行中的错误信息,确定错误原因. 1. ...

  6. matlab显示服务器出现意外,Matlab 读取excel文件提示服务器出现意外情况或无法读取问题解决...

    1.问题描述: 该错误通常发生在应用函数读取excel文件(后缀xls或xlsx)时. 应用xlsread函数读取提示服务器出现意外情况: 应用importdata读取时提示can't open fi ...

  7. matlab显示的图片,手动保存时四周有白边

    matlab显示的图片,或者用matlab画出来的图片,手动保存时四周有白边. girl = imread('girl.jpg'); imshow(girl); 用File-Save或者Save As ...

  8. matlab显示.mat格式多光谱图像

    matlab显示.mat格式多光谱图像 一个简单的MATLAB代码示例,用于加载包含多光谱图像数据的.mat文件并显示它: %加载.mat文件 load('your_file_name.mat');% ...

  9. matlab转scilab语言,为什么从matlab转换到scilab时会出现“错误的输出参数数”错误?...

    我试图把这个matlab代码转换成scilab,但是我有一些问题. N = 101; L = 4*pi; x = linspace(0,L,N); % It has three data set; 1 ...

最新文章

  1. SQL Server 数据库的维护(一)__存储过程(procedure)
  2. IPv6改造三步曲——Vecloud
  3. python输入ip地址_python批量生成本地ip地址的方法
  4. javascript感叹号1_「翻译」JavaScript的可视化学习之三:作用域(链)
  5. I/O流(四)—java如何添加到文件尾
  6. java并发之CAS
  7. 防火墙设置导致服务器站点打开,服务器、网站、环境配置全正常网站打不开原来是系统防火墙造成的...
  8. 强化顶层设计 巩固网络安全
  9. Scheme学习系列O:启动篇
  10. 【浙江大学PAT真题练习乙级】1001 害死人不偿命的(3n+1)猜想(15分)真题解析
  11. jupyter运行时in[*]是什么原因_变頻器的停止按钮按下时,电机反而不受控制加速运行是什么原因?...
  12. 计算机无法连接此设备,[修复]目前,此硬件设备未连接到计算机(代码45) | MOS86...
  13. 如何下载可爱随意字体KISS ME
  14. siege 测试post_使用Siege进行Web App性能测试:计划,测试,学习
  15. python中iter是什么意思,python中iter的用途是什么?
  16. Windows睡眠,CPU风扇仍然运转的问题
  17. div+css实现圆角阴影效果
  18. 面试大全 | C语言高级部分总结
  19. Jenkins使用入门笔记
  20. java计算机毕业设计校友社交系统源码+系统+数据库+lw文档+mybatis+运行部署

热门文章

  1. 机器学习算法GBDT的面试总结
  2. 从源码的角度说说Activity的setContentView的原理
  3. matplotlib绘制多张图、多子图、多例图
  4. JavaScript每日学习日记(0)
  5. 滤波 放电速度比充电慢 模电
  6. collection 多态 会自动转型为子类 继承多态需要显示转型
  7. 02_常用正则表达式
  8. Gradle 下载不了
  9. 关于直播学习笔记-005-nginx-rtmp-win32在Win10上使用
  10. this的用法添加样式给tr或者div