LabVIEWConnector - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim Toolboxes : MapleSim Connector for LabVIEW and NI VeriStand Software : LabVIEWConnector Package : Deprecated Components : LabVIEWConnector/LabVIEW(deprecated)

LabVIEWConnector

  

LabVIEW

  

generate LabVIEW main and header source files to create a LabVIEW EMI or SIT block

 

Calling Sequence

Parameters

Options

Description

Calling Sequence

LabVIEW(system, in_vars, out_vars, ModelName, opts)

Parameters

system

-

list; model equations

in_vars

-

list; input variables with respect to time

out_vars

-

list; output variables with respect to time

ModelName

-

(optional) string; name of the library

Options

• 

target = {EMI, SIT}

  

Specifies the target LabVIEW platform to which to generate code.

• 

baserate = nonnegative

  

Specifies the iteration base time for an SIT block. The default time is 0.001.

• 

initialconditions = list(equation)

  

Specifies the initial values of the states in the system.

• 

parameters = list(equation)

  

Specifies the values of parameters in the system during initialization.

• 

projectionmodel = truefalse

  

Specifies whether constraint projection is used in the resulting block.

• 

iterationoonProjection = numeric, nonnegative

  

Specify the maximum number of iterations for projection code when a fixed-step solver is used.

• 

tolonProjection = numeric, nonnegative

  

Specify the error tolerance for projection code when a variable step solver is used.

• 

tvar = symbol

  

Defines the time variable used in the procedure. The default value is the variable t.

• 

functions = list

  

Specify the user defined procedures for code generation.

• 

optimization = truefalse  or tryhard

  

Specifies the level of simplification applied to the model equations and the level of optimization applied to the generated C library. This option allows you to reduce the amount of time required to generate code. Default is tryhard

• 

helppage = truefalse

  

Specifies the help page html code is generate for the user

• 

solver = string

  

Specifies the solver to be generated when SIT is selected as the target platform. There are six fixed step solvers generated are EULER, HEUNFORM, IMPLOY, RK2, RK3, and RK4. The implementation of these solvers can be found in ?dsolve/classic. The Default solver is EULER.

• 

inputoption = string

  

Specifies the input type for SIT toolbox. User can select internal, external or both as the input option. The internal allows user to control the input as a parameter. This allows the user to use knobs as control for the SIT input. The external option set the input to be a input type which allows user to match external component, such as IO, as input or use Veristand software. The both option allows the input to be controlled by both parameter input and the external IO. Default is both.

Description

• 

Important: The LabVIEW command has been deprecated. Use the superseding commands LabVIEWConnector[GenerateCode] and LabVIEWConnector[CompileCode] instead.

• 

The LabVIEW command returns a string that contains a library of the C procedures required to create a LabVIEW EMI or SIT block for a continuous system using a solver that you provide.

• 

Before the functions are generated, the system tries to perform index 1 reduction to obtain an ordinary differential equation (ODE) system to reduce the amount of time required to compute the system.

• 

The input and output variables must be functions with respect to time, for example, y(t) and u(t).

See Also

LabVIEWConnector

LabVIEWConnector[CompileCode]

LabVIEWConnector[GenerateCode]

MapleSim

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam