Tuesday, May 05, 2015

download sub from youtube.

http://keepsubs.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Ft%3D12%26v%3D0NKqr5FDHhM

Saturday, April 25, 2015

How to Run a Program as Administrator from the Desktop or File/Windows Explorer

In the Properties window, go to the Compatibility tab. At the bottom, check the box that says"Run this program as administrator" and click or tap OK.
Run Programs as Administrator in Windows 7 & Windows 8
This setting is now applied and the program is always run as administrator. You will notice that its icon is changed and now includes an UAC indicator on the bottom right corner, to show that an UAC prompt is always shown before running the program.
Run Programs as Administrator in Windows 7 & Windows 8
f you choose to edit the properties of a shortcut to that program, instead of its main executable, there’s another method you can use. In the shortcut’s Properties window, on theShortcut tab, click or tap the Advanced button. The Advanced Properties window is opened.
Run Programs as Administrator in Windows 7 & Windows 8

Check the box that says "Run as administrator" and click or tap OK. Then, click or tap OKagain, in the Properties window.

Source: http://www.7tutorials.com/how-run-programs-administrator-windows-7

Sunday, April 19, 2015

Resolving Low-Level Graphics Issues

Resolving Low-Level Graphics Issues

MATLAB® can encounter low-level graphics issues when creating graphics on your system. For example, bar edges might be missing from bar charts or stems might be missing from stem plots. You can encounter these issues while creating 2-D or 3-D charts, using a Simulink® model that contains Scopes, or using UIs from a MathWorks® toolbox. These issues are often due to older graphics hardware or outdated graphics drivers. To resolve them, try the options described here.


Use Software OpenGL Instead (Windows and Linux Only)

You can work around many graphics issues by using the software version of OpenGL® built-into MATLAB instead of using your graphics hardware. In some cases, MATLAB automatically switches to software OpenGL, for example, if it detects known issues such as outdated drivers or graphics virtualization. Software OpenGL does not support some graphics features, such as graphics smoothing.
To determine if you are using hardware or software OpenGL, type opengl info. The returned information contains the line Software: 'false' if you are using hardware OpenGL or Software: 'true' if you are using software OpenGL.
To switch from hardware to software OpenGL, start MATLAB from the command prompt on your system using this command: (Start->all program-> accessories -> Command Prompt)
matlab -softwareopengl
To set your preferences so that MATLAB always starts with software OpenGL on this computer, execute this command at the MATLAB command line:
opengl('save','software')

Friday, April 17, 2015

Detect japanese keyboard 106 keys

1. add japanese- IME in Keyboard and language
2. Windows seven mistakenly identify some Japanese keyboard as 101-key.

You will need to edit the registry to make it 106-key.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters

change this entries:

LayerDriver JPN REG_SZ kbd106.dll
OverrideKeyboardIdentifier REG_SZ PCAT_106KEY
OverrideKeyboardSubtype DWORD 2
OverrideKeyboardType DWORD 7

You can check the source if you are still having problems: Japanese Keyboard Not Functioning Correctly After Installing Windows 7

Monday, April 13, 2015

add new coordinate system in solid works

  • Define the new coordinate system by a point (in new sketch)
  • Select move/copy in the insert

  • select the body to move
  • select the new point (in step 1)


  • in the lower box: select the origin point

  • now the new origin defined at the new define point (step1)
  • at this step we will add the coordinate system


note: 
if we want apply for assembly part. save as part. 







Tuesday, December 16, 2014

running m-file from Simulink

Create Block Callbacks

You can create block callbacks interactively or programmatically.
To create block callbacks interactively:
  1. Right-click a block, and in the context menu, select Properties.
  2. In the Block Properties dialog box, select the Callback tab.
  3. Create the callback code.

To create a block callback programmatically, use the set_param command to assign MATLAB® code to the block callback parameter.
ex: 
openFcn: -> m file to run 

Monday, December 15, 2014

Register SimMechanics Link with SolidWorks

Follow this link.
http://www.mathworks.com/help/physmod/smlink/ref/linking-and-unlinking-simmechanics-link-software-with-solidworks.html?refresh=true

Software Requirements

Registration requires that the following two products be installed on your computer:
  • SolidWorks
  • Download SimMechanics Link Software

    You can download SimMechanics Link software directly from the MathWorks® website:
    1. Visit the SimMechanics Link download website athttp://www.mathworks.com/products/simmechanics/download_smlink.html.
    2. Select the software version to install.
    3. Click Submit.
    4. Save the installation files in a convenient folder.
      Do not extract the zip file.

    Install SimMechanics Link Software

    Install SimMechanics Link software from the MATLAB command line:
    1. Start MATLAB.
        Note:   You may need administrator privileges to complete the installation.
    2. At the MATLAB command line enter:
      path(path, '<installation_file_folder>')
      replacing <installation_file_folder> with the path to the folder with the installation files.
    3. At the MATLAB command line, enter:
      install_addon('<zip_file_name>.zip')
      replacing <zip_file_name> with the name of the zip file that you downloaded (e.g., smlink.r2014b.win64). The command extracts the zip archive files to the MATLAB root directory

    Register SimMechanics Link

    To register SimMechanics Link with the CAD platform:
    1. Start a new MATLAB® session.
    2. At the MATLAB command line, enter smlink_linksw.
    3. MATLAB displays a message stating that linking was successful. You can close MATLAB.

    Add SimMechanics Link to SolidWorks Menu bar

    SimMechanics Link is now registered as a SolidWorks add-in tool. To use the tool, select the tool as an active add-in:
    1. Open SolidWorks.
    2. In the menu bar, select Tools > Add-Ins.
    3. In the Add-Ins dialog box, select SimMechanics Link.
    The menu bar of the CAD platform displays a SimMechanics Link menu item.