UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
472 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
Xilinx Employee
Xilinx Employee
480 Views
Registered: ‎10-21-2010

Re: Can Matlab call XSCT tcl file?

Jump to solution

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

2 Replies
Contributor
Contributor
449 Views
Registered: ‎06-20-2018

Re: Can Matlab call XSCT tcl file?

Jump to solution

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
Xilinx Employee
Xilinx Employee
481 Views
Registered: ‎10-21-2010

Re: Can Matlab call XSCT tcl file?

Jump to solution

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