clear()
if(!('Wavegen' in this) || !('Scope' in this)) throw "Please open a Scope and a Wavegen instrument";
if (Tool.question("Frequency should be constant?") == true) {
frequencyconst = Tool.getInteger("Frequency constant value is", 0, 0, 10000)
print("Frequnecy is constant and the value is " + frequencyconst )
} else {
frequencyfrom= Tool.getInteger("Frequency range from [Hz]", 0, 0, 100)
frequencyto = Tool.getInteger("Frequency range to [Hz]", 0, 0, 100)
frequencystep= Tool.getInteger("Frequency number of steps", 0, 0, 100)
print("Frequnecy range is from: " + frequencyfrom + " H