
SR1 Operation Manual
248
© 2014 Stanford Research Systems
elseif x = "-cancelled-" then
Call SR1.Instrument.UserMessage("User Cancelled",10)
end if
Displays the following window:
The label above the drop-down box is specified in the first argument. The choices displayed in the drop-
down box are given in the second argument as a single string with the choices separated by commas. e.
g. "A,B,C" yields:
If the user presses "OK" the function returns the string corresponding the selected item, i.e. "A", "B", or
"C" in the example. If the window times out the string "-timedout-" is returned. If the user presses
"Cancel" the string "-cancelled-" is returned.
UserChoiceMulti
The UserChoiceMulti function also lets the user select among different choices but using a checkbox
style selection:
Multiple selections are possible. In the example above, for instance, the function would return the string
"A,B". As with UserChoice the function returns "-cancelled-" if cancelled is pressed and "-timedout-" if
the timeout limit is reached before the user takes any action.
UserLaunchChoice
Presents a series of buttons with corresponding explanations.
x = SR1.Instrument.UserLaunchChoice("Some Choices...", "A,B,C","Performs A,Performs B,
Содержание SR1
Страница 5: ...Part I Getting Started Audio...
Страница 7: ...Getting Started 7 2014 Stanford Research Systems...
Страница 12: ...SR1 Operation Manual 12 2014 Stanford Research Systems...
Страница 27: ...Part II SR1 Operation Audio...
Страница 156: ...SR1 Operation Manual 156 2014 Stanford Research Systems Passband Group Delay of Elliptical Filter...
Страница 258: ...SR1 Operation Manual 258 2014 Stanford Research Systems...
Страница 272: ...SR1 Operation Manual 272 2014 Stanford Research Systems on the amplitude sweep...
Страница 289: ...SR1 Operation 289 2014 Stanford Research Systems...
Страница 290: ...Part III SR1 Reference Audio...