Rigol-DG2052-Function-Gener.../examples/whoami.py
2024-02-22 10:00:00 +01:00

14 lines
336 B
Python

import click
from fn_gen import DG2052
@click.command()
def print_whoami():
"""
This program is for testing the DG2052 function generator library. It prints the conncted device identification.
"""
fg = DG2052("TCPIP::192.168.1.11::INSTR")
click.echo(f"{fg.whoami()}")
if __name__ == "__main__":
print_whoami()