Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

loading .bmp files in Simulink...

Altera_Forum
Honored Contributor II
1,798 Views

Hi guys, 

 

I'm testing the reference design in Simulink 7.2 Avalon Edge detector.  

 

This example works fine, but the image load and image viewer were implemented using .m matlab script using variables from/to workspace. 

 

I have some doubts because I don't know how were are the scripts invoked, whereas the blocks in simulink only make reference to the variables of the script but not to the .m file name. 

 

This is a big limitation for me because I don't know how to load two .bmp files 

 

Any suggestion ???
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,097 Views

Hello, 

 

The scripts are invoked using simulink callbacks. Once the .mdl file loaded, right-click on the main window and select Model Properties. From there check the content of the Callbacks tab. 

The procedure might vary a bit depending on the matlab version you are using. 

 

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/index.html?/access/helpdesk/help/toolbox/simulink/ug/f4-146273.html#f4-140344 

 

v
0 Kudos
Altera_Forum
Honored Contributor II
1,097 Views

Hi V, 

 

 

This issue made me loss my mind!!!! 

 

thanks a lot!!!
0 Kudos
Reply