WinCamD¤
Connect to a beam-profiling camera from DataRay.
Tested with the WinCamD-LCM-8.0E45 (x64) software version.
DataRay
(SDK)
¤
DataRay(equipment: Equipment)
flowchart LR
msl.equipment_resources.dataray.wincamd.DataRay[DataRay]
msl.equipment.interfaces.sdk.SDK[SDK]
msl.equipment.schema.Interface[Interface]
msl.equipment.interfaces.sdk.SDK --> msl.equipment_resources.dataray.wincamd.DataRay
msl.equipment.schema.Interface --> msl.equipment.interfaces.sdk.SDK
click msl.equipment_resources.dataray.wincamd.DataRay href "" "msl.equipment_resources.dataray.wincamd.DataRay"
click msl.equipment.interfaces.sdk.SDK href "" "msl.equipment.interfaces.sdk.SDK"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
Connect to a beam-profiling camera from DataRay.
The bitness (32 or 64 bit) of the DataRay Beam Profiling Software that
is installed must match the bitness of the Python interpreter that is used
to load the DATARAYOCX library.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"Data\s*Ray"
model=r""
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
A Connection instance supports the following properties
for the DataRay class.
Connection Properties:
| Name | Type | Description |
|---|---|---|
area_filter |
int | None
|
Area filter:
If |
camera_index |
int
|
The camera to use (between 0 and 7). Default: |
centroid_method |
int | None
|
The centroid method to use (0, 1 or 2).
If |
full_scale_filter |
float | None
|
Percent full scale filter (0, 0.1, 0.2, 0.5, 1, 2, 5 or 10).
If |
major_minor_method |
int | None
|
The major/minor method to use (0, 1 or 2).
If |
plateau_uniformity |
bool | None
|
Whether to enable or disable plateau uniformity.
If |
wavelength |
float | None
|
The wavelength, in nm, of the incident light.
If |
ui_size |
int
|
The height, in pixels, of a button for the user interface. Default: |
Source code in packages/resources/src/msl/equipment_resources/dataray/wincamd.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
adc_peak_percent
property
¤
adc_peak_percent: float
Returns the peak value as a percentage of the maximum possible ADC level.
crosshair
property
¤
crosshair: float
Returns the angle between the horizontal x-axis and the solid crosshair line, in degrees.
major_iso
property
¤
major_iso: float
Returns the ISO 11146 beam size along the major axis, in um.
The camera must be configured for ISO 11146 mode.
mean_theta
property
¤
mean_theta: float
Returns the DXX mean angle, in radians.
The camera must be configured for DXX mode.
minor_iso
property
¤
minor_iso: float
Returns the ISO 11146 beam size along the minor axis, in um.
The camera must be configured for ISO 11146 mode.
orientation
property
¤
orientation: float
Returns the angle between the x-axis and the major or minor axis closest to the x-axis, in degrees.
pixel_size
property
¤
Returns the (width, height) size, in um, of a pixel.
plateau_uniformity
property
¤
plateau_uniformity: float
Returns the flatness of the plateau.
A value between 0 and 1 denoting how closely the beam resembles a theoretically perfect flat-top beam.
rc
property
¤
rc: float
Returns the radial distance from the center of the sensor to the center of the crosshair position.
wavelength
property
writable
¤
wavelength: float
Get/Set the wavelength, in nm, of the incident light.
capture
¤
capture(timeout: float | None = None) -> None
Capture image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timeout
|
float | None
|
The maximum number of seconds to wait to capture the image. |
None
|
Source code in packages/resources/src/msl/equipment_resources/dataray/wincamd.py
111 112 113 114 115 116 117 118 119 120 | |
disconnect
¤
disconnect() -> None
Disconnect from the DATARAYOCX library.
Source code in packages/resources/src/msl/equipment_resources/dataray/wincamd.py
122 123 124 125 126 127 | |
wait_to_configure
¤
wait_to_configure() -> None
Wait until the camera has been configured.
This is a blocking call and waits until the popup window is closed.
Source code in packages/resources/src/msl/equipment_resources/dataray/wincamd.py
257 258 259 260 261 262 | |