Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

system (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module (Windows)

Syntax

[code, result] = system(command)

Description

Executes an operating system command in the current working directory. If you call this function in the LabVIEW Run-Time Engine, LabVIEW executes the command in the directory where you installed the stand-alone application or shared library. This function is similar to the System Exec VI.

Examples

Inputs

Name Description
command Specifies the command you want to execute. command is a string. Before continuing execution, LabVIEW waits for the operating system to finish executing the command. To direct LabVIEW not to wait for the operating system to finish executing the command, include & at the end of the command string.

Outputs

Name Description
code Indicates whether the command was successful. code is an integer. This function returns 0 if the command succeeds. Otherwise, this function returns a non-zero integer.
result Returns the output string of the command.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets No

Examples

[code, result] = system('ipconfig')

[code, result] = system('ipconfig &')

Related Topics

dos


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit