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

LabVIEWConnector

 CreateLabVIEWVCproject
 generate required files for the Visual Studio(R) project of a LabVIEW(R) block

 Calling Sequence CreateLabVIEWVCproject(system, in_vars, out_vars, ModelName, output_dir, 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 - string; name of the library output_dir - string; output directory of the Visual Studio project opts - (optional) equation(s) of the form name = value

Options

 • target = {EMI, SIT}
 Specifies the target LabVIEW platform to which you will generate code.
 • baserate = nonnegative
 Specifies the iteration base time for an SIT block. The default time is 0.001 seconds.
 • 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 LabVIEW block.
 • iterationonProjection = numeric, nonnegative
 Specifies the maximum number of iterations for projection code when a fixed-step solver is used.
 • tolonProjection = numeric, nonnegative
 Specifies 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
 Specifies 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. The default is tryhard
 • helppage = truefalse
 Specifies whether an HTML help page is generated for the block.
 • solver = string
 Specifies the solver to be generated when SIT is selected as the target platform. Six fixed-step solvers can generated: EULER, HEUNFORM, IMPLOY, RK2, RK3, and RK4. For more information about the implementation of these solvers, see dsolve/classical. The default solver is EULER.
 • inputoption = string
 Specifies the input type for the SIT connector. You can select internal, external or both as the input option. The internal option allows you to control the input as a parameter. This allows you to use knob controls to manipulate the SIT input. The external option sets the input as an input type, which allows you to match external components, such as IO, as input or use NI VeriStand software. The both option allows the input to be controlled by both parameter input and the external IO. The default value is both.
 • dlloutputdirectory = string
 Specifies the output directory of the shared library generated from the Visual Studio project. The default value is "$(SolutionDir)/$(ConfigurationName)".
 • SITdirectory = string
 Specifies the directory where the LabVIEW SIT is installed on your computer. The default value is "C:/SimulationInterfaceToolkit/".
 • SITVersion = string
 Specifies the LabVIEW SIT version to which you will generate code. The default value is "2009".
 • LabVIEWdirectory = string
 Specifies the LabVIEW directory to use in the Visual Studio project. The default value is "C:/Program Files/National Instruments/LabVIEW 2009".
 • separatetick = string
 Specifies the directory separator characters for your platform. The default value is kernelopts('dirsep')

Description

 • Important: The CreateLabVIEWVCproject command has been deprecated. Use the superseding commands LabVIEWConnector[GenerateCode] and LabVIEWConnector[CompileCode] instead.
 • The CreateLabVIEWVCproject 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).