MATLAB: Can’t I export a model to a Web view with Simulink R2014a and Google Chrome

simulink

I am using Simulink R2014a and Google Chrome. I executed these commands for the first time:
 
>> vdp
>> slwebview(gcs)
Then my default browser (Google Chrome) launches without displaying the Web view. Instead it displays the following output:
 
*Unsupported Browser*
Simulink Web View cannot be viewed in Google Chrome because of local file security restrictions. To allow local file access, try the following:
*Microsoft Windows*
Click on the Windows start button and search for "Chrome"
Right-click and drag "Google Chrome" search result to an open area. Select "Create shortcuts here".
Right-click the newly created "Google Chrome" shortcut and select properties.
Click the "Shortcut" tab.
In the target edit box, append "--allow-file-access-from-files", with no quotes.
Click OK to dismiss property dialog.
Verify Google Chrome is no longer running.
Double-click on the newly created shortcut to start Google Chrome.
*Macintosh*
Run Terminal.app.
Type "open /Applications Google\ Chrome.app --allow-file-access-from-files", with no quotes.
*Linux*
Start terminal.
Type "./chromium-browser --allow-file-access-from-files", with no quotes.
I am following the above steps rigorously but the browser still displays the same steps instead of the Web view. How can I display the Web view of my model?

Best Answer

First, make sure that you close all Chrome browsers once you apply the above steps, and then launch Chrome from the created shortcut before executing SLWEBVIEW.
If the Web view is not still not displayed, then:
For windows users:
  • Close all Chrome Browsers again,
  • Open the Windows Task Manager and navigate to the "Processes" tab
  • Kill all remaining, "hidden" Chrome processes by selecting them and clicking on the "End Process" button
  • Start Chrome from the appropriate shortcut
  • Execute the SLWEBVIEW command or open the previously generated webview.html file.
For MAC users:
  • Close all Chrome Browsers again, please use the "Force Quit Applications" window and kill the remaining, "hidden" Chrome processes. To open the force quit application, you can use "Command-Option-Escape" keyboard shortcut, select "Google Chrome" and click on 'Force Quit' button.
  • Re try using the web view with the Google Chrome browser by previously generated webview.html file
You may also try using the incognito window by adding "--incognito" macro to "open/Applications Google\Chrome.app --allow-file-access-from-files" without the quotes.