cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ajaymanyam
Visitor
Visitor
531 Views
Registered: ‎03-13-2019

System Generator

This is the error i get when i try to run my matlab simulation

--------------------------------- Version Log ----------------------------------
Version Path
System Generator 2018.3 D:/Xilinx/Vivado/2018.3
Matlab 9.4.0.949201 (R2018a) Update 6 D:\Matlab
Vivado 2018.3 D:/Xilinx/Vivado/2018.3
--------------------------------------------------------------------------------
Summary of Errors:
Error 0001: Error("test1.m"): Syntax error: Encountered " <INTEGER_LI...
Block: 'lcfilter/MCode'
--------------------------------------------------------------------------------

Error 0001:

Reported by:
'lcfilter/MCode'

Details:
Error("test1.m"): Syntax error: Encountered " <INTEGER_LITERAL> "1
"" at line 4, column 6.
Error("test1.m"): Syntax error: Encountered " <INTEGER_LITERAL>
"1 "" at line 4, column 6.
Error occurred during "Block Configuration".

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

0 Kudos
3 Replies
meherp
Moderator
Moderator
479 Views
Registered: ‎08-16-2018

@ajaymanyam 

Not all the matlab function can be implemented on the Hardware. Therefore MCode block does not accept all the functions of Matlab. 


For more details, please see the section "MCode" of UG958 (pg 215).


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
0 Kudos
ajaymanyam
Visitor
Visitor
431 Views
Registered: ‎03-13-2019

The mcode file doesnt have any predefined matlab functions. Every line of the code is written using algorithms

0 Kudos
meherp
Moderator
Moderator
423 Views
Registered: ‎08-16-2018

Is it possible to share the code.


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
0 Kudos