Hello,
i currently send the following commands:
'INITiate:CONTinuous 0' # Set Measurement mode to single instead of continuous
XXX # Do 200 Measurements
'INITiate:IMMediate' #Clear everything that happened before and start the 200 Measurements
'*WAI' # Wait for completition
':MMEMory:STORe:RESults:SPECtrogram "19_01_11_test.csv"' # Store the Spectrogram
What i expect it to do, is saving a spectrogram with 200 Traces. I can not find the command to set how many measurements it will do. Also the '*WAI' command does not seem to act as i would expect it to.
Thanks for your help!
I dont know what exactly caused it to not stop after the set amount of averages. After revisiting the problem i came up with this solution:
'INITiate:CONTinuous 0' # set instrument to single mode
'SENSe:AVERage:COUNt 100' # do 100 measurements
'INITiate:RESTart' # reset the spectrogram and start a new measurement
'*OPC?' # wait for the measurement to finish
':MMEMory:STORe:RESults:SPECtrogram "Filename.csv"' # Save spectrogram to file