pub struct Instrument { /* private fields */ }Implementations§
Source§impl Instrument
impl Instrument
Sourcepub fn send(&self, data: &[u8], mode: IbSendEOI) -> Result<(), GpibError>
pub fn send(&self, data: &[u8], mode: IbSendEOI) -> Result<(), GpibError>
Send data to the instrument with the multidevice 488.2 API
Sourcepub fn receive(&self) -> Result<String, GpibError>
pub fn receive(&self) -> Result<String, GpibError>
Receive data from the instrument with the multidevice 488.2 API
Sourcepub fn from_visa_string(address: &str) -> Result<Self, GpibError>
pub fn from_visa_string(address: &str) -> Result<Self, GpibError>
Create Instrument from a VISA string
Sourcepub fn visa_string(&self) -> String
pub fn visa_string(&self) -> String
Create VISA string from board and address
Sourcepub fn open(&self, params: Parameters) -> Result<InstrumentHandle, GpibError>
pub fn open(&self, params: Parameters) -> Result<InstrumentHandle, GpibError>
Open with the traditional 488.1 API
Trait Implementations§
Source§impl Clone for Instrument
impl Clone for Instrument
Source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instrument
impl Debug for Instrument
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnwindSafe for Instrument
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