Powermeter¶
class containing methods to communicate with the powermeter
- class Licel.powermeter.powermeter(ethernetController: licel_tcpip.EthernetController)¶
- Start() str¶
Activates the data acquisition and data transmission over the push socket.
- Returns:
controller response
- Return type:
str
- Stop() str¶
Deactivates the data acquisition and stops the data transmission over the push socket
- Returns:
controller response
- Return type:
str
- getNumberOfTrigger() str¶
get number of supported number of triggers
- Raises:
RuntimeError if old controller.(command not supported)
- Returns:
number of supported trigger
- Return type:
str
- getPowermeterPushData() tuple[str, str, str]¶
get powermeter push response
- Returns:
list structured as follows: <Milliseconds since controller start> <Pulse amplitude ><triggerNumber>
- Return type:
list[]
- getTrace() list[int]¶
Starts a single pulse acquisition.
The single trace is transmitted over the command socket.
Push mode must be deactivated.
- Returns:
list of integer representing trace data points:
[<Y0> <Y1 >. . . <YN - 1 >]- Return type:
list[int]
- selectChannel(channel: int) str¶
Selects the ADC channel for the data acquisition.
- Parameters:
channel (int) – channel Number can either be 0 for photodiode or 2 for powermeter.
- startInternalTrigger() str¶
Activate trigger simulation without waiting for an external trigger.
- Raises:
RuntimeError if command not executed
- Returns:
controller response
- Return type:
str
- stopInternalTrigger() str¶
Deactivate trigger simulation without waiting for an external trigger.
- Raises:
RuntimeError if command not executed
- Returns:
controller response
- Return type:
str