Posted Wed, 16 Aug 2023 03:39:07 GMT by VIKI, SHI
Hi,

We used tek oscilloscope--MDO4034C before, all the python code worked well. But now we're moving to new tek oscilloscopes--MSO44/54/56.
I couldn't find any related command to get the unit, could you help check?

Here is the code we used:

def tektronix_measure(tek,channel = 1, measure_type = "RISE"):
if channel not in [1,2,3,4]:
print("Error: tektronix measure channel input wrong!")
raise ValueError
tek.write("MEASUREMENT:IMMED:SOURCE CH" + str(channel))
tek.write("MEASUREMENT:IMMED:TYPE " + measure_type)
#print(tek.query("MEASUREMENT?"))
#tek.timeout = 30000
time.sleep(0.5)
return_value = float(tek.query("MEASUREMENT:IMMED:VALUE?"))
time.sleep(0.5)
return_value_unit = tek.query("MEASUREMENT:IMMED:UNITS?")[1]
return [return_value,return_value_unit]

The bold line has timeout errors, i think because MSO series don't support this command, so what the correct command?


Thanks.
Posted Tue, 22 Aug 2023 02:21:38 GMT by VIKI, SHI
Does anyone meet similar problem?

You must be signed in to post in this forum.