Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a few system functions to the 2450 driver #2052

Merged

Conversation

liangosc
Copy link
Contributor

The following methods are added:

def abort(self) -> None:
    """
    This command stops all trigger model commands on the instrument.
    """
    self.write(":ABORt")

def initiate(self) -> None:
    """
    This command starts the trigger model.
    """
    self.write(":INITiate")

def wait(self) -> None:
    """
    This command postpones the execution of subsequent commands until all
    previous overlapped commands are finished.
    """
    self.write("*WAI")

def clear_event_register(self) -> None:
    """
    This function clears event registers.
    """
    self.write(":STATus:CLEar")

def clear_event_log(self) -> None:
    """
    This command clears the event log.
    """
    self.write(":SYSTem:CLEar")

@sohailc

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #2052 into master will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #2052      +/-   ##
==========================================
- Coverage   71.43%   71.42%   -0.01%     
==========================================
  Files         149      150       +1     
  Lines       20063    20076      +13     
==========================================
+ Hits        14331    14339       +8     
- Misses       5732     5737       +5     

@jenshnielsen jenshnielsen merged commit 432e153 into microsoft:master Jun 22, 2020
astafan8 pushed a commit that referenced this pull request Jun 22, 2020
…50_driver

add a few system functions to the 2450 driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants