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

added functions in VNA

*Get current cw frequency,
*Get current RF Power,
*Set cw frequency,
*Set Rf power
parent 57a34195
No related branches found
No related tags found
No related merge requests found
......@@ -84,9 +84,22 @@ class Vna:
"""
self.vna.write("CALC1:PAR:MEAS '" + trace + "', '" + measurement + "'")
def get_current_cw_frequency(self):
return self.vna.query('SOUR:FREQ:CW?')
def get_current_power(self):
return self.vna.query('SOUR:POW?')
def set_cw_frequency(self, freq):
return self.vna.write(f'SOUR:FREQ:CW {freq}')
def set_power(self, power):
return self.vna.write(f'SOUR:POW {power}')
def set_sweep_points(self, points):
return self.vna.query("SENS1:SWE:POIN " + str(points) + ";*OPC?")
def check_error_queue(self):
"""
Check the error queue. Initially *CLS asserted in beginning of program.
......
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