Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Performing Batch Simulations with SystemBuild

Primary Software: MATRIXx
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I want to run a series of unattended simulations in SystemBuild. I want to do this in order to test different sets of data without having to manually invoke SystemBuild. How do I do this?

Solution:

Using the sim() function in the Xmath command area allows you to specify a model currently loaded in the SystemBuild catalog (the model does not have to appear in a SystemBuild window), the inputs to that model, and any simulation keyword options. The sim() function can be incorporated in Xmath scripts, making it possible to set up an environment, run multiple simulations, and analyze the results. This interface is also well-suited for batch mode, where you can run many simulations unsupervised. Once the simulator is invoked from Xmath, it remains memory-resident so that additional simulations run more quickly than the first.

Simulations can also be performed in the background. The bg keyword causes a simulation to run in the background, freeing Xmath for other work. This feature allows multiple simulations to run simultaneously. You can monitor the progress of a simulation by watching the status of its output variable on the Xmath stack. Therefore, to run multiple simulations in parallel, the output variable names must be unique. For example, if you issue three background simulation commands and the output variable is y for each one, the simulations that finish first are overwritten.

Related Links:
Manual: SystemBuild User Guide Manual: Xmath User Guide

Attachments:





Report Date: 09/11/2006
Last Updated: 09/11/2006
Document ID: 41A6HIJ8

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit