使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

dev_inspect_ctrldev_inspect_ctrlDevInspectCtrlDevInspectCtrldev_inspect_ctrl (算子)

名称

dev_inspect_ctrldev_inspect_ctrlDevInspectCtrlDevInspectCtrldev_inspect_ctrl — 打开一个窗口以检查一个或多个控制变量。

签名

dev_inspect_ctrl( : : Variable : )

Herror dev_inspect_ctrl(const Hlong Variable)

Herror T_dev_inspect_ctrl(const Htuple Variable)

void DevInspectCtrl(const HTuple& Variable)

static void HOperatorSet.DevInspectCtrl(HTuple variable)

def dev_inspect_ctrl(variable: MaybeSequence[Union[int, float, str]]) -> None

描述

dev_inspect_ctrldev_inspect_ctrlDevInspectCtrlDevInspectCtrlDevInspectCtrldev_inspect_ctrl opens an inspection window to display the contents of one or more control variables.

The standard inspection window displays the variable values with some optional statistics in a table. For some semantic types a special representation exists, e.g., functions are displayed as function plot by default. For more information, see the chapter “Inspecting Variables” in the “HDevelop User's Guide”.

You can pass a tuple of variables in VariableVariableVariableVariablevariablevariable to open an inspection window for multiple variables. It is also possible to override the default inspection mode by including a string literal as the first element of the tuple:

'tuple'"tuple""tuple""tuple""tuple""tuple"

Show the values in the default inspection window even if the semantic type of the variable has a special representation.

'plot'"plot""plot""plot""plot""plot"

Plot the values of numeric variables against their tuple index.

'plot_xy'"plot_xy""plot_xy""plot_xy""plot_xy""plot_xy"

Plot the values of numeric variables as X-Y pairs. The number of variables must be even, with each pair of variables having the same length.

Normally, the window contents will be updated whenever the variables change. However, the update behavior can be influenced by the operator dev_update_vardev_update_varDevUpdateVarDevUpdateVarDevUpdateVardev_update_var and the Update Variable preference.

The window can be closed by pressing the Close button or by calling dev_close_inspect_ctrldev_close_inspect_ctrlDevCloseInspectCtrlDevCloseInspectCtrlDevCloseInspectCtrldev_close_inspect_ctrl

注意

此算子不支持代码导出。

参数

VariableVariableVariableVariablevariablevariable (输入控制)  integer(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Name of the variable to be checked.

示例(HDevelop)

read_image (Image, 'fabrik')
regiongrowing (Image, Regions, 3, 3, 6, 100)
area_center (Regions, Area, Row, Column)
dev_inspect_ctrl (Area)
dev_inspect_ctrl (['plot_xy', Row, Column])

结果

If the values of the specified parameters are correct, dev_inspect_ctrldev_inspect_ctrlDevInspectCtrlDevInspectCtrlDevInspectCtrldev_inspect_ctrl 返回 2 ( H_MSG_TRUE )。否则,将抛出一个异常并返回错误代码。

另见

dev_update_vardev_update_varDevUpdateVarDevUpdateVarDevUpdateVardev_update_var

模块

基础