ArticleslgStudy

mathematics

VisSim

VisSim is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand VisSim rather than just read about it. In short: VisSim is a visual block diagram program for the simulation of dynamical systems and model-based design of embedded systems, with its own visual language. It is developed by Visual Solutions of Westford, Massachusetts.

VisSim — main illustration
VisSim — illustration

Key takeaways

  • VisSim belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect VisSim to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of VisSim from memory before moving on to harder problems.

Reference excerpt

VisSim is a visual block diagram program for the simulation of dynamical systems and model-based design of embedded systems, with its own visual language. It is developed by Visual Solutions of Westford, Massachusetts. Visual Solutions was acquired by Altair in August 2014 and its products have been rebranded as Altair Embed as a part of Altair's Model Based Development Suite. With Embed, virtual prototypes of dynamic systems can be developed. Models are built by sliding blocks into the work area and wiring them together with the mouse. Embed automatically converts the control diagrams into C-code ready to be downloaded to the target hardware. VisSim (now Altair Embed) uses a graphical data flow paradigm to implement dynamic systems, based on differential equations. Version 8 adds interactive UML OMG 2 compliant state chart graphs that are placed in VisSim diagrams, which allows the modelling of state based systems such as startup sequencing of process plants or serial protocol decoding.

Applications VisSim/Altair Embed is used in control system design and digital signal processing for multi-domain simulation and design. It includes blocks for arithmetic, Boolean, and transcendental functions, as well as digital filters, transfer functions, numerical integration and interactive plotting. The most commonly modelled systems are aeronautical, biological/medical, digital power, electric motor, electrical, hydraulic, mechanical, process, thermal/HVAC and econometric.

Distributing VisSim models

A read-only version of the software, VisSim Viewer, is available free of charge and provides a way for people who do not own a license to use VisSim to run VisSim models. This program is intended to allow models to be more widely shared while preserving the model in its published form. The viewer can execute any VisSim model, and only changes to block and simulation parameters to illustrate different design scenarios, are allowed. Sliders and buttons may be activated if included in the model.

Code generation The "VisSim/C-Code" add-on generates ANSI C code for the model, and generates target specific code for on-chip devices like PWM, ADC, encoder, GPIO, I2C etc. This is useful for development of embedded systems. After the behaviour of the controller has been simulated, C-code can be generated, compiled and run on the target. For debugging, VisSim supports an interactive JTAG linkage, called "Hotlink", that allows interactive gain change and plotting of on-target variables. The VisSim generated code has been called efficient and readable, making it well suited for development of embedded systems. VisSim's author served on the X3J11 ANSI C committee and wrote several C compilers, in addition to co-authoring a book on C. This deep understanding of ANSI C, and the nature of the resulting machine code when compiled, is the key to the code generator's efficiency. VisSim can target small 16-bit fixed point systems like the Texas Instruments MSP430, using only 740 bytes flash and 64 bytes of RAM for a small closed-loop Pulse-width modulation (PWM) actuated system, as well as allowing very high control sample rates over 500 kHz on larger 32-bit floating-point processors like the Texas Instruments 150 MHz F28335.

Use of model-based development

The technique of simulating system performance off-line, and then generating code from the simulation is known as "model-based development". Model-based development for embedded systems is becoming widely adopted for production systems because it shortens development cycles for hardware development in the same way that Model-driven architecture shortens production cycles for software development. Model building is a visual way of describing a situation. In an engineering context, instead of writing and solving a system of equation, model building involves using visual "blocks" to solve the problem. The advantage of using models is that in some cases problems which appear difficult if expressed mathematically may be easier to understand when represented pictorially. VisSim uses a hierarchical composition to create nested block diagrams. A typical model would consist of "virtual plants" composed of various VisSim "layers", combined if necessary with custom blocks written in C or FORTRAN. A virtual controller can be added and tuned to give desired overall system response. Graphical control element such as sliders and buttons allow control of what-if analysis for operator training or controller tuning. Although VisSim was originally designed for use by control engineers, it can be used for any type of mathematical model.

Optional features

CAN bus packet read and write Communication system Physical layer simulation (modulators, encoders, PLLs, Costas Loop, BPSK, QPSK, DQPSK, QAM, Bit Error Rate (BER), Eye Diagram, Viterbi algorithm, Reed–Solomon, etc.) C code generation - Generates executable C code directly from the block diagram Electric motor simulation library for AC induction, Brushless DC, and Stepper motors Embedded system targeting for Texas Instruments C2000 and MSP430, ARM Cortex-M chips. Supports on-chip peripherals like serial ports, CAN, PWM, Quadrature Encoder Pulse (QEP), Event Capture, Serial Peripheral Interface Bus (SPI), I²C, Analog-to-digital converter (ADC), Digital-to-analog converter (DAC), and GPIO. Fixed-point arithmetic blockset for bit-true simulation and code generation Frequency domain analysis (Bode plot, Root locus, Nyquist plot) Global optimization of system parameters Neural networks OPC (OLE for process control) client gives read and write of OPC tags for real-time simulation of SCADA/HMI virtual plants Real-time analog signal and digital I/O under Windows Serial (RS-232/RS-485) serial data read and write. Allows real-time reading and writing of serial data from the VisSim diagram. It supports pattern matching, string based transmit, and simulated data streams. User Datagram Protocol (UDP) packet read and write. Allows real-time reading and writing of Ethernet-based UDP packets from the VisSim diagram

See also Web based simulation MATLAB/Simulink 20-sim Ngspice – Analog circuit simulator software

References

Texas Instruments MSP430 spotlight article published in IEEE magazine. VisSim web site Mechatronics System Design, by Devdas Shetty, Richard A. Kolk, Edition 2, Cengage Learning, 2011, ISBN 143906198X, ISBN 9781439061985 C: A Software Engineering Approach, by Peter A Darnell, Philip E Margolis, 3rd edition, 1996, ISBN 978-0-387-94675-7

… excerpt ends here. Continue reading the full article.

Illustrations

VisSim: VisSim viewer screenshot with sample model
VisSim viewer screenshot with sample model

Worked examples

Example 1 — a first encounter with VisSim

Start with the simplest possible case. Write down what VisSim claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to VisSim before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about VisSim ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of VisSim

In research
VisSim appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses VisSim in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
VisSim is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical modeling, Numerical software, Real-time simulation, so understanding it makes those chapters shorter.
In everyday life
Look for VisSim outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “VisSim” →

How to study VisSim in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what VisSim means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain VisSim out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is VisSim in simple terms?

VisSim is a visual block diagram program for the simulation of dynamical systems and model-based design of embedded systems, with its own visual language. It is developed by Visual Solutions of Westford, Massachusetts.

Why does VisSim matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study VisSim?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on VisSim.

Tags

  • Mathematical modeling
  • Numerical software
  • Real-time simulation
  • Simulation programming languages
  • Visual programming languages

Keep exploring