Skip to content
Snippets Groups Projects
Commit d18a7678 authored by Sai Lakhan Ekal's avatar Sai Lakhan Ekal
Browse files

Added function that select either dummy or real VNA

parent 1b0264fa
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,13 @@
import pyvisa
import time
from VNA_dummy import VnaDummy
def create_VNA(hostname):
if hostname == 'localhost':
return VnaDummy(hostname)
else:
return Vna(hostname)
class Vna:
def __init__(self, ip_address):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment