photons.equipment.highfinesse_sdk module
Wrapper around the 32-bit wlmData.dll library from HighFinesse.
- photons.equipment.highfinesse_sdk.check(r)[source]
Check the result for an error.
Returns the result if there is no error.
- photons.equipment.highfinesse_sdk.check_set(r)[source]
Check the result of a “Set*” function for an error.
Returns the result if there is no error.
- class photons.equipment.highfinesse_sdk.WLMData32(host, port)[source]
Bases:
Server32Wrapper around the 32-bit wlmData.dll library from HighFinesse.
- get_exposure_time(channel=1, index=1)[source]
Returns the exposure time (in ms).
- Parameters:
- Return type:
- get_pattern_data(index, channel=1)[source]
Returns the interferometer pattern data.
- Parameters:
index (
int) –The index of the data type to receive.
0 - Fizeau interferometers or diffraction grating
1 - Additional long interferometer or grating analyzing versions (spectrum analysis)
2 - Fizeau interferometers that support double pulses
3 - Additional interferometer for second pulse
channel (
int) – Identifies the switcher channel number. Versions without a switcher must use 1.
- Return type:
- Returns:
The interferometer pattern data.
- get_wlm_count()[source]
Returns the number of wavemeter and spectrum-analyser applications that are running.
- Return type:
- instantiate(rfc, mode, p1, p2)[source]
Checks whether the Wavelength Meter or Laser Spectrum Analyser server application is running, changes the return mode of the measurement values, installs/removes an extended exporting mechanism, changes the appearance of the server application window or starts/terminates the server application.
See the manual for more details about the input parameters.
- Return type:
- Returns:
If the function succeeds and at least one Wavelength Meter or Laser Spectrum Analyser is active or terminated due to this instantiating operation the function returns a value greater than 0, else 0.
- set_exposure_time(ms, channel=1, index=1)[source]
Set the exposure time.
- Parameters:
ms (
int) – The exposure time, in ms.channel (
int) – The signal channel for devices with a multichannel switcher. Should be set to 1 for devices that do not have this option.index (
int) – The CCD array index for devices with more than one CCD array. Can be 1 or 2. For devices with only one CCD array set the value to be 1.