Jump to content
Sign in to follow this  
VisSim Forum Archives

How to call VisSim module from .Net

Recommended Posts

Submitted by Anders89 on Fri, 07/29/2011 - 00:02.

You can use system calls like CreateProcess and System.Diagnostics.Process to invoke the \vissim80\vissim32.exe executable. VisSim accepts command line arguments including .vsm file paths to load and run VisSim diagrams from the command line. This is described in the VisSim help file and User Guide under Customizing VisSim > Customizing VisSim Start Up.

Customizing VisSim start-up

By adding arguments to the VisSim start-up command, you can control such things as how VisSim starts up, the block diagram file opened at start-up, and whether VisSim immediately runs the opened diagram.

From a desktop icon

  1. Right click the mouse over the VisSim 8 icon.
  2. Click on the Shortcuts tab and enter one or more of the following arguments in the Target box. If you enter more than one argument, separate them with spaces. If a block diagram name is included in the argument list, it must be specified last.

From an application

use CreateProcess from C/C++ or System.Diagnostics.Process constructor + System.Diagnostics.Process.Start for .net

Command line arguments

Use this argument To
block-diagram-path Open the specified block diagram path.
-i Start VisSim as an icon.
-nb Suppress the VisSim start-up banner.
-ne Suppress the run completion dialog box.
-r Run the diagram but stay in VisSim on run termination.
-re Run the diagram and exit upon completion.

Example

c:>vissim32 -i -re -nb \programData\VisSim\mydiagram.vsm

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...