
SR1 Operation
247
© 2014 Stanford Research Systems
Call SR1.Instrument.UserMessage("User Did Not Respond!",10)
end if
first displays the message window shown below:
And then displays the second message if the user does not act within the 5 second time-out period.
UserOKCancel
Displays a dialog box with a user message and an "OK" and "Cancel" button. For instance:
x = SR1.Instrument.UserOKCancel("Proceed?",10)
creates the window:
The function returns 1 if OK is pressed, 0 if Cancel is pressed or the window is closed, and -1 if the
window times out.
UserChoice
The UserChoice function displays a window with a drop-down box displaying a list of choices:
dim x
x = SR1.Instrument.UserChoice("Some Choices...", "A,B,C", 5)
if x = "A" then
Call SR1.Instrument.UserMessage("User Picked A",10)
elseif x = "B" then
Call SR1.Instrument.UserMessage("User Picked B",10)
elseif x = "C" then
Call SR1.Instrument.UserMessage("User Picked C",10)
elseif x = "-timedout-" then
Call SR1.Instrument.UserMessage("Window Timed Out",10)
Summary of Contents for SR1
Page 5: ...Part I Getting Started Audio...
Page 7: ...Getting Started 7 2014 Stanford Research Systems...
Page 12: ...SR1 Operation Manual 12 2014 Stanford Research Systems...
Page 27: ...Part II SR1 Operation Audio...
Page 258: ...SR1 Operation Manual 258 2014 Stanford Research Systems...
Page 272: ...SR1 Operation Manual 272 2014 Stanford Research Systems on the amplitude sweep...
Page 289: ...SR1 Operation 289 2014 Stanford Research Systems...
Page 290: ...Part III SR1 Reference Audio...