PhaseStation 53100A User’s Manual V1.04 25-Apr-2022
159
ScriptGetString(String heading, String message, Object user_text, String b1_text [, String b2_text [, String b3_txt]])
Presents a modal dialog box to the user that accepts freeform text entry. An example
appears below.
var trace_caption = { value:"(Some default text could go here)" };
if (ScriptGetString( "OCXO Stability Test",
"Enter trace caption above, then click 'OK' to continue.",
trace_caption,
"OK",
"Cancel") != 0)
{
ScriptEnd();
return;
}
When executed, the result is a dialog box of the form
Text for one, two, or three buttons can be specified as the
b1_text
,
b2_text
, and/or
b3_text
argument(s) to
ScriptGetString()
. The returned value will equal the numeric index of the
button selected by the user, beginning with 0 for the
b1_text
button.
All text fields accept up to 1024 bytes. Note that the
user_text
argument is an Object
containing a String property called
value
, not a String in itself. The
value
property is used
both as the default text used to initialize the edit control and for reception of the
returned text. (This is necessary because Strings are always passed by copy in
JavaScript, while Objects are passed by reference and may be modified by the called
function.)
ScriptHostFilename([bool full_path])
Returns a String containing the TimeLab executable filename and version information.
Either the full pathname or only the filename portion may be requested, depending in
the value of the optional
full_path
parameter.
Figure 67: ScriptGetString() dialog
Summary of Contents for PHASE STATION 53100A
Page 1: ...TM 53100A Phase Noise Test Set User s Manual Revision 1 04 April 25 2022...
Page 16: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 16...
Page 18: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 18...
Page 20: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 20...
Page 30: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 30...
Page 36: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 36...
Page 42: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 42...
Page 64: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 64...
Page 74: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 74...
Page 104: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 104...
Page 116: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 116...
Page 122: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 122...
Page 130: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 130...
Page 140: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 140...
Page 214: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 214...
Page 215: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 215 Appendix Legal and regulatory notices...