mpylab.device.powermeter2c module¶
mpylab.device.powermeter2c module.
- class mpylab.device.powermeter2c.POWERMETER(SearchPaths=None)
Bases:
POWERMETERCoordinate logical channels of a shared two-channel power meter.
Instances with the same GPIB address share triggers and distribute a multichannel result so that the physical instrument is read only once.
- Parameters:
SearchPaths (sequence of path-like, optional) – Directories searched for device INI files and referenced limit data.
- GetData()
Read or reuse the value for this logical channel.
- Returns:
(status, power)wherepoweris the channel’sscuq.Quantityvalue.- Return type:
tuple
- GetDataNB(retrigger=False)
Return the inherited non-blocking result for this channel.
- Parameters:
retrigger (bool or str, optional) – Forwarded to the base power-meter implementation.
- Returns:
Status code and power value returned by the base implementation.
- Return type:
tuple
- Init(ini=None, channel=None, ignore_bus=None)
Initialize and register one logical power-meter channel.
- Parameters:
ini (path-like or file-like, optional) – Device configuration source.
channel (int or str, optional) – Logical channel represented by this instance.
ignore_bus (bool or None, optional) – Bus policy.
Noneselects normal hardware communication.
- Returns:
Device status; zero indicates success.
- Return type:
int
- Quit()
Release this logical channel and return the driver status.
- Trigger()
Trigger the shared instrument unless a peer just triggered it.
- Returns:
Device status; zero indicates success.
- Return type:
int
- instances = {}