menu (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: support

Requires: MathScript RT Module

Syntax

out = menu(title, option1, option2, ...)

Description

Shows a menu with options for you to select.

Examples

Inputs

Name Description
title Specifies the title in the menu. title is a string.
option1 Specifies an option in the menu. option1 is a string.
option2 Specifies an option in the menu. option2 is a string.

Outputs

Name Description
out Returns the index of the option you select. out is an I32 scalar. If you close the menu without making a selection, out is 0.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (returns error or is ignored)
Supported on RT targets No

Examples

K = menu('Select from:', 'Option 1', 'Option 2', 'Exit')

Related Topics

input

文章是否对您有帮助?

没有帮助