pub struct AsyncSolar<'a> { /* private fields */ }Expand description
Handle for a solar-simulator net.
Implementations§
Source§impl<'a> AsyncSolar<'a>
impl<'a> AsyncSolar<'a>
Sourcepub async fn stop(&self) -> Result<()>
pub async fn stop(&self) -> Result<()>
Stop PV simulation and release the instrument’s remote lock.
Sourcepub async fn irradiance(&self) -> Result<f64>
pub async fn irradiance(&self) -> Result<f64>
Read the configured irradiance (W/m²).
Sourcepub async fn set_irradiance(&self, watts_per_m2: f64) -> Result<f64>
pub async fn set_irradiance(&self, watts_per_m2: f64) -> Result<f64>
Set the irradiance (W/m², 0–1500); returns the applied value.
Sourcepub async fn mpp_current(&self) -> Result<f64>
pub async fn mpp_current(&self) -> Result<f64>
Read the maximum-power-point current (A).
Sourcepub async fn mpp_voltage(&self) -> Result<f64>
pub async fn mpp_voltage(&self) -> Result<f64>
Read the maximum-power-point voltage (V).
Sourcepub async fn resistance(&self) -> Result<f64>
pub async fn resistance(&self) -> Result<f64>
Read the dynamic panel resistance (Voc / Isc, ohm).
Sourcepub async fn set_resistance(&self, ohms: f64) -> Result<f64>
pub async fn set_resistance(&self, ohms: f64) -> Result<f64>
Set the dynamic panel resistance (ohm); returns the applied value.
Sourcepub async fn temperature(&self) -> Result<f64>
pub async fn temperature(&self) -> Result<f64>
Read the cell temperature (°C).
Trait Implementations§
Source§impl<'a> Clone for AsyncSolar<'a>
impl<'a> Clone for AsyncSolar<'a>
Source§fn clone(&self) -> AsyncSolar<'a>
fn clone(&self) -> AsyncSolar<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for AsyncSolar<'a>
impl<'a> !UnwindSafe for AsyncSolar<'a>
impl<'a> Freeze for AsyncSolar<'a>
impl<'a> Send for AsyncSolar<'a>
impl<'a> Sync for AsyncSolar<'a>
impl<'a> Unpin for AsyncSolar<'a>
impl<'a> UnsafeUnpin for AsyncSolar<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more