Valves

Pneumatic Valve

class pcdswidgets.vacuum.valves.PneumaticValve(parent=None, **kwargs)[source]

A Symbol Widget representing a Pneumatic Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

Vented, At Vacuum, Differential Pressure or Lost Vacuum

state

Open, Closed, Moving, Invalid

Examples

PneumaticValve[interlocked="true"] #interlock {
    border: 5px solid red;
}
PneumaticValve[interlocked="false"] #interlock {
    border: 0px;
}
PneumaticValve[interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
PneumaticValve[interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
PneumaticValve[error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
PneumaticValve[state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Pneumatic Valve - NO

class pcdswidgets.vacuum.valves.PneumaticValveNO(parent=None, **kwargs)[source]

A Symbol Widget representing a Normally Open Pneumatic Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

Vented, At Vacuum, Differential Pressure or Lost Vacuum

state

OPEN, CLOSED, MOVING, INVALID

Examples

PneumaticValveNO[interlocked="true"] #interlock {
    border: 5px solid red;
}
PneumaticValveNO[interlocked="false"] #interlock {
    border: 0px;
}
PneumaticValveNO[interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
PneumaticValveNO[interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
PneumaticValveNO[error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
PneumaticValveNO[state="OPEN"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Pneumatic Valve - DA

class pcdswidgets.vacuum.valves.PneumaticValveDA(parent=None, **kwargs)[source]

A Symbol Widget representing a dual-acting Pneumatic Valve with the proper icon and controls.

This needs to modify the normal interlock logic because it has two interlock PVs instead of one.

This also needs to completely re-implement the button control logic because it needs to have separate PVs for opening and closing the valve, and the ButtonControl mixin assumes one PV with enum values.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

Vented, At Vacuum, Differential Pressure or Lost Vacuum

state

Open, Closed, Moving, Invalid

Examples

PneumaticValveDA[interlocked="true"] #interlock {
    border: 5px solid red;
}
PneumaticValveDA[interlocked="false"] #interlock {
    border: 0px;
}
PneumaticValveDA[interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
PneumaticValveDA[interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
PneumaticValveDA[error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
PneumaticValveDA[state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
cls_interlock_connection_changed(conn)[source]

Callback invoked when the connection status changes for the Interlock Channel.

Neither this nor the open interlock connection state are currently used, but this was included for completeness.

Parameters:

conn (bool) – True if connected, False otherwise.

cls_interlock_value_changed(value)[source]

Callback invoked when the value changes for the Interlock Channel.

Parameters:

value (int) – The value from the channel will be either 0 or 1 with 0 meaning that the widget is interlocked.

create_channels()[source]

Add a second interlock channel and the button channels.

The second interlock channel is used to check if the closing action of the valve is permitted.

The button channels allow us to open and close the valves.

destroy_channels()[source]

Method invoked when the channels associated with the widget must be destroyed. This method also clears the channel address for the control buttons and close interlock.

interlock_value_changed(value)[source]

Callback invoked when the value changes for the Interlock Channel.

Parameters:

value (int) – The value from the channel will be either 0 or 1 with 0 meaning that the widget is interlocked.

interlocked

Property used to query interlock state.

Return type:

bool

sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

update_da_interlock()[source]

Update the double-acting interlock state when either pv changes.

Aperture Valve

class pcdswidgets.vacuum.valves.ApertureValve(parent=None, **kwargs)[source]

A Symbol Widget representing an Aperture Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

Vented, At Vacuum, Differential Pressure or Lost Vacuum

state

Open, Close, Moving or INVALID

Examples

ApertureValve [interlocked="true"] #interlock {
    border: 5px solid red;
}
ApertureValve [interlocked="false"] #interlock {
    border: 0px;
}
ApertureValve [interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
ApertureValve [interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
ApertureValve [error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
ApertureValve [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Fast Shutter

class pcdswidgets.vacuum.valves.FastShutter(parent=None, **kwargs)[source]

A Symbol Widget representing a Fast Shutter with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

true, or false

state

Open, Close Moving or INVALID

Examples

FastShutter [interlocked="true"] #interlock {
    border: 5px solid red;
}
FastShutter [interlocked="false"] #interlock {
    border: 0px;
}
FastShutter [error="true"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
    qproperty-arrowBrush: #00FF00;
}
FastShutter [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Needle Valve

class pcdswidgets.vacuum.valves.NeedleValve(parent=None, **kwargs)[source]

A Symbol Widget representing a Needle Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

state

Close, Open, PressureControl, ManualControl

Examples

NeedleValve [interlocked="true"] #interlock {
    border: 5px solid red;
}
NeedleValve [interlocked="false"] #interlock {
    border: 0px;
}
FastShutter [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Proportional Valve

class pcdswidgets.vacuum.valves.ProportionalValve(parent=None, **kwargs)[source]

A Symbol Widget representing a Proportional Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

state

Close, Open, PressureControl, ManualControl

Examples

ProportionalValve [interlocked="true"] #interlock {
    border: 5px solid red;
}
ProportionalValve [interlocked="false"] #interlock {
    border: 0px;
}
ProportionalValve [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Right Angle Manual Valve

class pcdswidgets.vacuum.valves.RightAngleManualValve(parent=None, **kwargs)[source]

A Symbol Widget representing a Right Angle Manual Valve with the proper icon.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

channelsPrefix
controlsLocation
showIcon
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Control Valve

class pcdswidgets.vacuum.valves.ControlValve(parent=None, **kwargs)[source]

A Symbol Widget representing a Control Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

error

Vented, At Vacuum, Differential Pressure or Lost Vacuum

state

Open, Close Moving or INVALID

Examples

ControlValve [interlocked="true"] #interlock {
    border: 5px solid red;
}
ControlValve [interlocked="false"] #interlock {
    border: 0px;
}
ControlValve [interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
ControlValve [interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
ControlValve [error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
ControlValve [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Control Only Valve (Normally Closed)

class pcdswidgets.vacuum.valves.ControlOnlyValveNC(parent=None, **kwargs)[source]

A Symbol Widget representing a Normally Closed Control Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

state

Open, Close or INVALID

Examples

ControlOnlyValveNC [interlocked="true"] #interlock {
    border: 5px solid red;
}
ControlOnlyValveNC [interlocked="false"] #interlock {
    border: 0px;
}
ControlOnlyValveNC [interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
ControlOnlyValveNC [interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
ControlOnlyValveNC [error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
ControlOnlyValveNC [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}
sizeHint()[source]

Suggested initial size for the widget.

Returns:

size

Return type:

QSize

Control Only Valve (Normally Open)

class pcdswidgets.vacuum.valves.ControlOnlyValveNO(parent=None, **kwargs)[source]

A Symbol Widget representing a Normally Open Control Valve with the proper icon and controls.

Parameters:

parent (QWidget) – The parent widget for the symbol

Notes

This widget allow for high customization through the Qt Stylesheets mechanism. As this widget is composed by internal widgets, their names can be used as selectors when writing your stylesheet to be used with this widget. Properties are also available to offer wider customization possibilities.

Internal Components

Widget Name

Type

What is it?

interlock

QFrame

The QFrame wrapping this whole widget.

controls

QFrame

The QFrame wrapping the controls panel.

icon

BaseSymbolIcon

The widget containing the icon drawing.

Additional Properties

Property

Values

interlocked

true or false

state

Open, Close or INVALID

Examples

ControlOnlyValveNO [interlocked="true"] #interlock {
    border: 5px solid red;
}
ControlOnlyValveNO [interlocked="false"] #interlock {
    border: 0px;
}
ControlOnlyValveNO [interlocked="true"] #icon {
    qproperty-interlockBrush: #FF0000;
}
ControlOnlyValveNO [interlocked="false"] #icon {
    qproperty-interlockBrush: #00FF00;
}
ControlOnlyValveNO [error="Lost Vacuum"] #icon {
    qproperty-penStyle: "Qt::DotLine";
    qproperty-penWidth: 2;
    qproperty-brush: red;
}
ControlOnlyValveNO [state="Open"] #icon {
    qproperty-penColor: green;
    qproperty-penWidth: 2;
}