• 0

Wait for averaging in script


Question

Is there a way for a script function to have a delay that will wait for a certain number of averages to take place before stopping the trace?

Right now, I'm doing this:

Spectrum1.run()
wait(1.1)
Spectrum1.stop()
Spectrum1.Export("C:/Users/User/pjm_2019/acquisition410.doc")

For the few times I tried this by hand, 1.1 seconds was enough time to get at least 50 averages in my trace. I'm just wondering if there isn't something a little more precise than this, that would maybe get feedback from the Spectrum display and know exactly when 50 averages was achieved.

Thanks!

Link to post
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now