Skip to content

Python Support

ThomasPRZilliox edited this page Mar 16, 2025 · 7 revisions

Import the module

# 2.x Methods


# 1.x
To import the package start your script with the following line:
```python
from lv_ui_testing import ui_testing

The methods are split into two categories:
* FMV : the one for the Front Most Vi
* SP : the one for a VI inside a SubPanel of the front most Vi

The arguments of the different methods are often similar:
* control_label : the label of the control/indicator
* subpanel_label : the label of the subpanel object


## Front Most Vi

### FMV_get_vi_name()

Returns the name of the front most VI.

### FMV_click_on_button(control_label)

Simulate the click of a User on a button (boolean).

### FMV_get_value(control_label)

Returns the current value of a control/indicator as a string.

### FMV_get_value_DBL(control_label)

Returns the current value of a control/indicator as a number.

### FMV_get_value_bool(control_label)

Returns the current value of a control/indicator as a bool.

### FMV_set_value_DBL(control_label,number)

Set a number (double format) to a control.

## Subpanel

### SP_get_vi_name(subpanel_label)

Returns the name of the VI inside the subpanel object.

### SP_click_on_button(subpanel_label,control_label)

Simulate the click of a User on a button (boolean) in the VI inside the subpanel object.

### SP_get_value(subpanel_label,control_label)

Returns the current value as a string of a control/indicator in the VI inside the subpanel object.

### SP_get_value_DBL(subpanel_label,control_label)

Returns the current value as a number of a control/indicator in the VI inside the subpanel object.

### SP_get_value_bool(subpanel_label,control_label)

Returns the current value as a boolean of a control/indicator in the VI inside the subpanel object.

### SP_set_value_DBL(subpanel_label,control_label)

Set a number (double format) to a control/indicator in the VI inside the subpanel object.

Clone this wiki locally