cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
720 Views
Registered: ‎06-20-2018

Can Matlab call XSCT tcl file?

Jump to solution

Hello 

 

I am developing standalone app in MPSoC in windows environment. I have a tcl file (boot.tcl) which initilizes the FPGA, download .bit., .elf and memory. 

 

 

Now, I hope to do these tasks in Matlab. So our developed algorithms can be done in Matlab and directly be uploaded to FPGA memory. I know Matlab has system command to start XSCT 

 

system('xsct.bat&')

This executes xsct and pops up the console. 

 

What I want is also to execute 

xsct% source boot.tcl

I am wondering if the xsct commands can be called in Matlab

 

Thank you

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
728 Views
Registered: ‎10-21-2010

Hi,

 

This is a bug in XSCT. The handler for version command is not registered in non-interactive mode, hence the error. All other commands should work. You can test your example with 'help' command

View solution in original post

2 Replies
Highlighted
Contributor
Contributor
697 Views
Registered: ‎06-20-2018

after some searching, it is discussed in 'non-interactive' mode of XSCT document. 

 

Can anyone point out what is wrong here?

 

I have made a foo.tcl to test.

version

it only has one line, which prints out

2018.2

 

if I use interactive mode of XSCT

xsct% source foo.tcl

I get the correct output.

 

However, if I try to run Windows command line

xsct foo.tcl

I have the following error messages

invalid command name "::xsdb::get_version"
    while executing
"::xsdb::get_version"
    (procedure "version" line 20)
    invoked from within
"version"
    (file "a.tcl" line 2)

 

 

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
729 Views
Registered: ‎10-21-2010

Hi,

 

This is a bug in XSCT. The handler for version command is not registered in non-interactive mode, hence the error. All other commands should work. You can test your example with 'help' command

View solution in original post