Powermeter¶
class containing methods to communicate with the powermeter
- class Licel.powermeter.powermeter(ethernetController)¶
- Start()¶
Activates the data acquisition and data transmission over the push socket.
- Returns:
controller response
- Return type:
str
- Stop()¶
Deactivates the data acquisition and stops the data transmission over the push socket
- Returns:
controller response
- Return type:
str
- getNumberOfTrigger()¶
get number of supported number of triggers
- Raises:
RuntimeError if old controller.(command not supported)
- Returns:
number of supported trigger
- Return type:
str
- getPowermeterPushData()¶
get powermeter push response
- Returns:
list structured as follows: <Milliseconds since controller start> <Pulse amplitude ><triggerNumber>
- Return type:
list[]
- getTrace()¶
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)¶
Selects the ADC channel for the data acquisition.
- Parameters:
channel (int) – channel Number can either be 0 for photodiode or 2 for powermeter.
- startInternalTrigger()¶
Activate trigger simulation without waiting for an external trigger.
- Raises:
RuntimeError if command not executed
- Returns:
controller response
- Return type:
str
- stopInternalTrigger()¶
Deactivate trigger simulation without waiting for an external trigger.
- Raises:
RuntimeError if command not executed
- Returns:
controller response
- Return type:
str