When you only care about the final results of a simulation or code generation, and you are not interested in looking at the simulation graphically, you can create a batch file that contains commands to start Embed with a specific diagram, execute the diagram, generate code, and download the code to FLASH without user interference. To do so, use any editor to create a BAT file that contains the following:
Embed-install-directory\vissim32.exe -compile -target=target-name -flash path-to-block-diagram.vsm
You must specify the -flash argument in conjunction with the -target and -compile arguments. Specify the target-name in the same way that it appears in the Target dropdown in the Tools > Code Generation dialog. For example, -target=F280X.
Separate arguments with spaces.