Measurement Screen Commands¶
:SCReen:COUNt?¶
Syntax |
:SCReen:COUNt? <instrument_identifier> |
|---|---|
Description |
Queries the number of measurement screens in the oxygen. |
Return Format |
<integer> | NONE |
Example |
-> :SCR:COUN? <- 1 -> :SCReen:COUNt? <- 1 |
:SCReen:ADD¶
Syntax |
:SCReen:ADD |
|---|---|
Description |
Add a new screen |
Explanation |
Appends a new empty screen to the existing Oxygen measurement screen. |
Example |
-> :SCR:COUN? <- 3 -> :SCR:ADD -> :SCR:COUN? <- 4 |
:SCReen:SELect?¶
Syntax |
:SCReen:SELect? |
|---|---|
Description |
Queries the selected screen. |
Explanation |
Returns the screen number of the selected Oxygen screen. |
Return Format |
<integer> | NONE |
Example |
-> :SCR:SEL? <- 2 -> :SCReen:SELect? <- 2 |
:SCReen:ITEM<screen_number>:SELect¶
Syntax |
:SCReen:ITEM<screen_number>:SEL |
|---|---|
Description |
Switches the current Oxygen screen window to the screen with <screen_number>. |
Example |
-> :SCR:SEL? <- 3 -> :SCR2:SEL <- :SCR:SEL? -> 2 |
:SCReen:SAVE “PATH”¶
Syntax |
:SCReen:SAVE [<path>] |
||||||||
|---|---|---|---|---|---|---|---|---|---|
Description |
Saves the current screen to a PNG file. |
||||||||
Parameter |
|
||||||||
Explanation |
Saves the current Oxygen instruments screen to a PNG file. |
||||||||
Example |
-> :SCReen:SAVE //stores the current screen with number to file (e.g. "c:/export/screenshot_1_20230713_120948.png") ... -> :SCReen:SAVE "xyz" //stores the current screen to file (e.g. "c:/export/xyz.png") ... -> :SCReen:SAVE "c:/temp/xyz" //stores the current screen to "c:/temp/xyz.png" |
:SCReen:ITEM<screen_number>:SAVE “PATH”¶
Syntax |
:SCReen:ITEM<screen_number>:SAVE [<path>] |
||||||||
|---|---|---|---|---|---|---|---|---|---|
Description |
Saves the screen to a PNG file. |
||||||||
Parameter |
|
||||||||
Explanation |
Saves the Oxygen instruments screen with the given <screen_number> to a PNG file. The <screen_number> should be a valid Oxygen instrument screen (1 - 32768) |
||||||||
Example |
-> :SCReen:ITEM1:SAVE //stores screen number 1 to file (e.g. "c:/export/screenshot_1_20230713_120948.png") ... -> :SCReen:ITEM2:SAVE "xyz" //stores screen number 2 to file (e.g. "c:/export/xyz.png") ... -> :SCReen:ITEM3:SAVE "c:/temp/xyz" //stores screen number 3 to "c:/temp/xyz.png" |
Screen Instrument Subsystem¶
Some commands and queries are screen-specific and cannot be accessed through the ‘INSTRuments’ root subsystem. These operations require a valid screen number for execution.
SCReen:ITEM<screen_nr>:INSTRuments:COUNt?¶
Syntax |
:SCReen:ITEM<screen_number>:INSTRuments:COUNt? |
|---|---|
Description |
Queries the number of instruments on the measurement screen with index <screen_number>. |
Return Format |
<integer>> | NONE |
Example |
-> :SCR2:INSTR:COUN? <- 1 -> :SCReen:ITEM1:INSTRuments:COUNt? //equivalent long form <- 1 |
:SCReen:ITEM<screen_number>:INSTRuments:GET?¶
Syntax |
:SCReen:ITEM<screen_number>:INSTRuments:GET? |
|---|---|
Description |
Queries all instruments on the measurement screen by index. |
Explanation |
Returns a list of all instruments contained on the screen with index <screen_number>. |
Return Format |
(<instrument_number>,<type>,<key>)[,(<instrument_number>,<type>,<key>)[,…]] | NONE
|
Example |
-> :SCR1:INSTR:GET? <- (1,"recorder","rec01"),(2,"analog","ana01"),(3,"saturation_meter","sat") ... -> :SCReen:ITEM1:INSTRuments:GET? <- (1,"recorder","rec01"),(2,"analog","ana01"),(3,"saturation_meter","sat") |
:SCReen:ITEM<screen_number>:INSTRuments:ITEM<instrument_number>:IDEntifier?¶
Syntax |
:SCReen:ITEM<screen_number>:INSTRuments:ITEM<instrument_number>:IDEentifier? |
|---|---|
Description |
Queries the identification of an instrument on the screen. |
Explanation |
Returns the instrument_identifier of the instrument at index <instrument_number> on the screen <screen_number>
|
Return Format |
(STRING,<String>) | NONE |
Example |
-> :SCR1:INSTR1:IDE? <- (STRING,"rec01") ... -> :SCR1:INSTR1:IDE? <- NONE |
:SCReen:ITEM<screen_number>:INSTRuments:ADD [<type>[,<identification>[,<x-position>,<y-position>]]]¶
Syntax |
:SCReen:ITEM<screen_number>:INSTRuments:ADD [<type>[,<identification>[,<x-position>,<y-position>]]] |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description |
Creates a new instrument on screen <screen_number> of type <type>. |
||||||||||||||||||||
Parameter |
|
||||||||||||||||||||
Explanation |
Creates a new instrument <type> on screen <screen_number> at position <x-position> and <y-position>. The specified instrument <identification> is forwarded to the target instrument. The <identification> can be used to reference the created instrument in serveral commands and queries, regardless of which screen, report or group contains this created instrument. If no <identification> is specified a new unique identification is generated. The <x-position> and <y-position> are the positions of the top-left edge of the created instrument on the screen. |
||||||||||||||||||||
Example |
-> :SCR1:INSTR:ADD "digital" -> ... -> :SCR1:INSTR:ADD "analog","ANALOG1" -> ... -> :SCR1:INSTR:ADD "saturation_meter","Sat002",0.5,0.5 |
:SCReen:ITEM<screen_number>:INSTRuments:SELect?¶
Syntax |
:SCReen:ITEM<screen_number>:INSTRuments:SELect? |
|---|---|
Description |
Queries the index number of the selected instrument. |
Return Format |
<integer> | NONE |
Example |
-> :SCR1:INSTR:SEL? <- 1 -> :SCReen:ITEM1:INSTRuments:SELect? //equivalent long form <- 1 -> :SCR2:INSTR:SEL? <- NONE |
:SCReen:ITEM<screen_nr>:INSTRuments:SELect [<integer> | <literal>]¶
Syntax |
:SCReen:ITEM<screen_nr>:INSTRuments:SELect [<integer> | <literal>] |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description |
Add a single instrument to the instrument selection list. |
||||||||||||
Parameter |
|
||||||||||||
Explanation |
This command is used to add an instrument to the instrument selection list. Note: NONE clears the instrument selection (see example below). |
||||||||||||
Example |
-> :SCR1:INSTR:SEL? <- 1 -> :SCR1:INSTR:SEL NONE -> :SCR1:INSTR:SEL? -> NONE |
Screen Output Instrument Subsystem¶
Since instruments are now directly accessible through this screen subsystem, the following commands and queries are deprecated. A command like
:SCR:INSTR:OUT:STAR
refers to
:SCR1:INSTR1:OUT:STAR
which is the first instrument on screen 1.
For backward compatibility, the deprecated algorithm remains functional if the first instrument on screen 1 is not an output instrument.
:SCReen:INSTRuments:OUTputchannel:STARt (deprecated)¶
Syntax |
:SCReen:INSTRuments:OUTputchannel:STARt |
|---|---|
Description |
Start streaming to analog out channels. |
Parameter |
None |
Explanation |
Starts streaming on the default stream output instrument if it is in the Paused or Stopped states. The default instrument is the oldest output channel instrument instance, on the measurement screen with the lowest index, that is configured for replay mode. Note: For backward compatibility, the algorithm remains functional if the first instrument on Screen 1 is not an output instrument. |
Example |
-> :SCReen:INSTRuments:OUTputchannel:STARt |
:SCReen:INSTRuments:OUTputchannel:PAUSE (deprecated)¶
Syntax |
:SCReen:INSTRuments:OUTputchannel:PAUSE |
|---|---|
Description |
Stop streaming to analog out channels. |
Parameter |
None |
Explanation |
Stop sending data on the default stream output instrument that is in the Started state. Note: For backward compatibility, the algorithm remains functional if the first instrument on Screen 1 is not an output instrument. |
Example |
-> :SCReen:INSTRuments:OUTputchannel:PAUSE |
:SCReen:INSTRuments:OUTputchannel:STOP (deprecated)¶
Syntax |
:SCReen:INSTRuments:OUTputchannel:STOP |
|---|---|
Description |
Stop streaming to analog out channels. |
Parameter |
None |
Explanation |
Stop sending data on the default stream output instrument that is in the Started state. Then reset the playback cursor to the start position. Note: For backward compatibility, the algorithm remains functional if the first instrument on Screen 1 is not an output instrument. |
Example |
-> :SCReen:INSTRuments:OUTputchannel:STOP |
:SCReen:INSTRuments:OUTputchannel:STATe? (deprecated)¶
Syntax |
:SCReen:INSTRuments:OUTputchannel:STATe? |
|---|---|
Description |
Query the current state of the output channel instrument. |
Parameter |
None |
Explanation |
Note: For backward compatibility, the algorithm remains functional if the first instrument on Screen 1 is not an output instrument. |
Return format |
<String> |
Example |
-> :SCReen:INSTRuments:OUTputchannel:STARt -> :SCReen:INSTRuments:OUTputchannel:STATe? <- Started |