VisSim/C-Code – Add-On

VisSim/C-Code automatically translates VisSim diagrams into highly optimized, ANSI C code that can be compiled and run on the host PC, an embedded target, or any platform that supports an ANSI C compiler. The PC target supports creation of a standalone executable, a DLL to run as a block in VisSim, or a “simObject.”

Optimized Code

Using a technique called “constant folding,” the generated code is optimized for speed by performing evaluation of constant expressions at compile time. In addition, the number of function calls and array references are minimized to increase code efficiency. The resulting executables run up to ten times faster than their block diagram counterparts, which is particularly useful for applications with high sampling rates.

Readable Code

VisSim/C-Code preserves variable names from the block diagrams to make it easier to identify signals in the generated code. In addition, comments can be inserted to indicate the hierarchical level of the diagram from which the code is generated. Finally all C code is formatted, including word length control, to improve readability and maintainability.

Automatic DLL Generation

VisSim/C-Code can automatically generate DLLs from any portion of a block diagram. For complex, multi-level diagrams, using DLLs rather than the corresponding blocks can significantly increase simulation speed and efficiency.

Simulation Object Generator

A simObject allows you to embed one or more VisSim simulations in your C or C++ application. You control a simObject via the simObject API. A simObject can be instantiated multiple times, allowing multiple copies of a simulation to be run simultaneously. A simObject takes user input, runs to a user-specified time, and provides simulation output. You can reset simObjects to run again. In case of errors, SimObjects return strings for the application to use.

Features

  • Generates ANSI C code directly from block diagram
  • Host PC supports standalone .exe, add-on DLL, or simObject
  • Supports conditional subsystems
  • Supports multi-rate subsystems
  • Simulations run up to 10X faster
  • Generates code for user-written blocks
  • Automatically generates VisSim-callable DLLs
  • Retains variable names used in diagram
  • Targets available for QNX, PC Windows, TI MSP430, LF240x, F280x, F281x, F2823x, F2833x, C67xx
  • Support Library source code available

The Next Steps

Ready To Buy?

Featured Downloads

What do our Customers say about us?

Thanks very much for all your time, it was really appreciated. As always Adept has been my number one company!

MA, Crawley, UK

We are at a loss to know how to express our admiration….outstandingly good in respects of all aspects of what is on offer from Adept Scientific.

EW Billington, Wentworth, Cambs, UK

Very helpful and approachable – excellent trainer

IG, Manchester, UK

At 13-years old, my daughter’s research manuscript has been accepted for publication in a top tier peer-reviewed Environmental Science journal and OriginPro 8.6 will allow her to export the graphs in a wide variety of formats which can meet any publisher’s requirements. Kudos to OriginLab for designing innovative and intuitive software that can span the needs of both a burgeoning young scientist like my daughter to a PhD expert in their field. It is hard to imagine that other products offer this extraordinary level of user versatility.

Michael Grimmett, MD, FACP, FACS Ophthalmologist Palm Beach Gardens, Florida

For the time being we are unable to offer the following product ranges although we are currently working hard to increase the number of products we can offer in the future. Please contact us to talk about alternative products that we may be able to offer you.