EXFO OSICS Programming Manual

OSICS Multifunction Platform
8-Channel Modular Platform
Programming Guide
www.EXFO.com
OSICS_PG_3v2.2

About This Manual

Subject This manual specifies the remote interfaces of the OSICS Mainframe and modules and
Application Information in this document applies to the OSICS Mainframe version 3.06 and the
following versions of OSICS modules:
OSICS ATN v. 1.07 and higher versions
OSICS BKR v. 1.07 and higher versions
OSICS DFB v. 2.38 and higher versions
OSICS SLD v. 1.03 and higher versions
OSICS SWT v. 1.07 and higher versions
OSICS SWT-APC v. 1.13 and higher versions
OSICS T100 v. 3.05 and higher versions
OSICS TLS-AG v. 3.14 and higher versions
Intended Readers Users of this manual must be familiar with:
Fiber optic technology
The RS-232C and/or IEEE-488.1 interfaces used to operate the OSICS in remote
mode
The use of the OSICS multifunction platform (see OSICS User Guide)
Date 17 September 2018
Manual Reference OSICS_PG_3v2.2
Typographical Conventions
Command Syntax Notation Conventions
bold Identifies graphical interface objects such as menu names, labels,
italic Identifies references to other sections or other guides.
monospace Identifies portions of program codes, command lines, or messages
IMPORTANT Identifies important information to which you must pay particular
Notation Meaning
[...] The content between square brackets is optional.
<...> The content between angled brackets indicates the type of
| Indicates an alternative. Equivalent to "or".
buttons and icons.
displayed in command windows.
attention.
information that you must enter as parameter (command) or that is received (response).
# Represents a numeric suffix, for example an OSICS slot number.
OSICS Programming Guide 3
About This Manual
Symbols
Abbreviations Used
Warning
Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury. Do not proceed unless you understand and meet the required conditions.
Caution
Indicates a potentially hazardous situation which, if not avoided, may result in component damage. Do not proceed unless you understand and meet the required conditions.
Abbreviation Meaning
GPIB General Purpose Interface Bus
LF line feed
CR carriage return
EOI End-Or-Identify
LSB Least Significant Bit
Copyright Copyright © 2012–2018 by EXFO. Published by EXFO. All rights reserved.
This documentation is provided as a user guide to EXFO customers and potential customers only. The contents of this document may not be reproduced in any part or as a whole, transcribed, stored in a retrieval system, translated into any language, or transmitted in any form or by any means (electronic, mechanical, magnetic, optical, chemical, photocopying, manual, or otherwise) without the prior written permission of EXFO.
Product Warranty and Limitation of
For detailed information about the sales terms and conditions, visit the EXFO web site at
www.exfo.com/how-to-buy/sales-terms-conditions
Warranty
Contact Information
To obtain after-sales service or technical support for this product, contact EXFO at one of the following numbers.
Technical Support Group
400 Godin Avenue Quebec (Quebec) G1M 2K2 CANADA
Tel. USA and Canada: 1 866 683-0155 Fax: 1 418 683-9224 E-mail: support@exfo.com
For detailed information about technical support and for a list of other worldwide locations, visit the EXFO web site at
www.EXFO.com/support
To accelerate the process, please have information such as the name and the serial number (see the product identification label), as well as a description of your problem, close at hand.
4 OSICS Programming Guide

Table of Contents

About This Manual..................................................................................................................................... 3
Table of Contents ...................................................................................................................................... 5
1. Remotely Controlling the OSICS Multifunction Platform ...................................................................... 9
1.1 Switching Between Remote and Local Mode ...................................................................................... 9
1.2 Remotely Controlling the OSICS via IEEE 488.................................................................................... 10
1.3 Remotely Controlling the OSICS via USB-B (RS-232C Protocol)....................................................... 12
2. General System and Status Control ................................................................................................... 13
2.1 Communication Principles .................................................................................................................. 13
2.2 Standard IEEE Status Register Commands and Queries................................................................... 15
2.3 RS-232C Common Commands ........................................................................................................... 19
3. OSICS Mainframe Control ................................................................................................................. 21
3.1 Optical-Output Control......................................................................................................................... 22
3.2 Spectral Unit Selection ........................................................................................................................ 23
3.3 Output Power Control .......................................................................................................................... 24
3.4 Modulation Control .............................................................................................................................. 26
3.5 Working Configuration Control ........................................................................................................... 27
3.6 OSICS System Management Control.................................................................................................. 28
4. OSICS ATN Control ........................................................................................................................... 31
4.1 Unit Selection ....................................................................................................................................... 31
4.2 Attenuation Setting .............................................................................................................................. 33
4.3 Wavelength Setting .............................................................................................................................. 34
4.4 Offset Setting ....................................................................................................................................... 35
4.5 Module System-Version Information.................................................................................................. 36
5. OSICS BKR Control............................................................................................................................ 37
5.1 Unit Selection ....................................................................................................................................... 37
5.2 Reflectance Setting.............................................................................................................................. 39
5.3 Wavelength Setting .............................................................................................................................. 40
5.4 Offset Setting ....................................................................................................................................... 41
5.5 Module System-Version Information.................................................................................................. 42
6. OSICS DFB Control............................................................................................................................ 43
6.1 Optical-Output Control......................................................................................................................... 44
6.2 Unit Selection ....................................................................................................................................... 45
6.3 Output-Power Setting........................................................................................................................... 47
6.4 Diode-Current Setting .......................................................................................................................... 48
6.5 Optical Emission-Wavelength/Frequency Setting ............................................................................. 49
OSICS Programming Guide 5
Table of Contents
6.6 Modulation Control .............................................................................................................................. 51
6.7 Calibration Control ............................................................................................................................... 55
6.8 Module Parameter-Monitoring with the OUT 1 Output...................................................................... 57
6.9 Module System-Version Information.................................................................................................. 58
7. OSICS SLD Control ............................................................................................................................ 59
7.1 Unit Selection ....................................................................................................................................... 59
7.2 Optical-Output Control......................................................................................................................... 61
7.3 Optical Output Settings........................................................................................................................ 62
7.4 Module System-Version Information.................................................................................................. 63
8. OSICS SWT Control........................................................................................................................... 65
8.1 Input/Output Selection ........................................................................................................................ 65
8.2 Module System-Version Information.................................................................................................. 69
9. OSICS SWT-APC Control................................................................................................................... 71
9.1 Operating-Mode Selection and Configuration.................................................................................... 72
9.2 Input/Output Channel Selection.......................................................................................................... 73
9.3 Unit Selection ....................................................................................................................................... 73
9.4 Optical-Output Control......................................................................................................................... 75
9.5 Output-Power Setting........................................................................................................................... 77
9.6 Optical Emission-Wavelength/Frequency Setting ............................................................................. 79
9.7 Coherence Control ............................................................................................................................... 80
9.8 Auto-peak Find Control........................................................................................................................ 81
9.9 Modulation Control .............................................................................................................................. 82
9.10 Module System-Version Information.................................................................................................. 84
10. OSICS T100 Control .......................................................................................................................... 85
10.1 Optical-Output Control......................................................................................................................... 86
10.2 Unit Selection ....................................................................................................................................... 87
10.3 Output-Power Setting........................................................................................................................... 89
10.4 Diode-Current Setting .......................................................................................................................... 90
10.5 Optical Emission-Wavelength/Frequency Setting ............................................................................. 91
10.6 Coherence Control ............................................................................................................................... 92
10.7 Auto-peak Find Control........................................................................................................................ 92
10.8 Modulation Control .............................................................................................................................. 94
10.9 Calibration Control............................................................................................................................... 96
10.10 Module Parameter-Monitoring with the OUT 1 Output...................................................................... 99
10.11 Module System-Version Information................................................................................................ 100
11. OSICS TLS-AG Control .................................................................................................................... 101
11.1 Optical-Output Control....................................................................................................................... 102
11.2 Unit Selection ..................................................................................................................................... 102
11.3 Operating-Mode Control .................................................................................................................... 105
11.4 Output-Power Setting......................................................................................................................... 107
6 OSICS Programming Guide
Table of Contents
11.5 Optical Emission-Wavelength/Frequency Setting ........................................................................... 108
11.6 Module System-Version Information................................................................................................ 113
12. Error Codes ..................................................................................................................................... 115
13. Program Example and Library ......................................................................................................... 117
13.1 OSICS LabVIEW Library ..................................................................................................................... 117
13.2 OSICS LabVIEW Example .................................................................................................................. 118
Index...................................................................................................................................................... 121
OSICS Programming Guide 7
Table of Contents
8 OSICS Programming Guide
1. Remotely Controlling the OSICS Multifunction
You can remotely control the OSICS Mainframe through the following ports:
IEEE-488.2 communication through the GPIB port
RS-232C communication through the USB-B port
This section explains how to use these ports to remotely control the OSICS multifunction platform.

1.1 Switching Between Remote and Local Mode

Procedures Entering the Remote Mode
The OSICS multifunction platform automatically switches to remote mode if it
receives a command (via the USB or GPIB port).
When the OSICS multifunction platform enters into remote mode, the Mode area displays Mode: REMOTE and the user interface control-panel is disabled.
Platform
The System Status screen remains active and displays the current module settings, such as operating wavelength (or frequency) or output power.
Switching Back to Local Mode
To go back to local mode, select LOCAL by pressing the right control button (see the
front panel description in the OSICS User Guide).
In GPIB, if the OSICS multifunction platform is set to local lockout condition, the message LOCAL LOCKOUT is displayed. This means that the OSICS multifunction platform is locked into GPIB remote-control operation: all OSICS front panel controls are disabled and local operating mode can no longer be restored using the LOCAL soft-key. To restore the user interface control panel, send the "Go to local" instruction to the OSICS multifunction platform from the computer or GPIB controller (refer to the programming guide of your GPIB board to know the exact syntax for the "Go to local" instruction).
OSICS Programming Guide 9
Remotely Controlling the OSICS Multifunction Platform
Main 12 345678
Main Setup - GPIB Address
EXITESCAPE
GPIB Address :
10
Modify the value.
ENTER

1.2 Remotely Controlling the OSICS via IEEE 488

Subject This section explains how to use the IEEE-488.2 GPIB interface to remotely operate the
OSICS multifunction platform. The GPIB port is located on the rear panel and is labeled IEEE 488 (see OSICS User
Guide).
Capabilities The following table lists the OSICS GPIB capabilities.
Mnemonic Function
SH1 Complete source handshake AH1 Complete acceptor handshake T5 Complete talker L3 Complete listener SR1 Complete service request RL1 Complete remote/local PP0 No parallel poll DC1 Complete device clear DT0 No device trigger C0 No controller
Table 1: GPIB Interface Capabilities

1.2.1 Setting the GPIB Address

Subject The default GPIB address of the OSICS is factory-set to 10. This section explains how to
modify it (possible values are 1 to 30). Up to 15 devices may be connected on the same GPIB bus simultaneously. Each device
has its own GPIB address in the range of 0 to 30. To avoid address conflicts, you must make sure that your OSICS GPIB address is different from the address of any other device already connected to the GPIB port.
Procedure 1. Access the Main Setup menu (see OSICS User Guide).
2. Turn the rotary knob to put the cursor before the GPIB address menu and press the
knob to enter it.
The GPIB Address sub-menu appears and displays the current GPIB address.
10 OSICS Programming Guide
3. Enter the wanted address as follows:
Figure 1: Main Setup – GPIB Address
Remotely Controlling the OSICS Multifunction Platform
a. Turn the rotary knob to put the cursor under the digit to modify and press the
knob to highlight it.
b. Turn the knob clockwise to increase the value or anticlockwise to decrease it and
press the knob to validate the selected digit.
c. Perform steps a. and b. for every digit you want to modify.
d. Turn the rotary knob clockwise to put the cursor under ENTER and press the
knob to validate the new address.
The new GPIB address is set and stored in memory. You do not need to restart the OSICS Mainframe.

1.2.2 Connecting the OSICS to an IEEE 488 Controller

Subject The GPIB port enables you to connect the OSICS Mainframe to a computer and to control
it via remote commands.
Before Starting Make sure you have a GPIB cable to link the OSICS Mainframe to an IEEE-488.2 controller
(GPIB PCI card or GPIB-USB-HS module from National Instrument) connected to your computer.
Procedure 1. Connect the GPIB port of the OSICS Mainframe to the IEEE-488.2 controller
connected to your computer via the GPIB cable.
2. Use the authorized remote GPIB commands detailed in the present guide to remotely control the OSICS multifunction platform.
OSICS Programming Guide 11
Remotely Controlling the OSICS Multifunction Platform

1.3 Remotely Controlling the OSICS via USB-B (RS-232C Protocol)

Subject The USB 2.0-B port is located on the on the rear panel and is labeled USB-B (see OSICS
User Guide). The OSICS multifunction platform can receive RS-232C commands at the USB-B port
from a computer on which the appropriate USB driver is installed. To achieve this, you must install the OSICS USB Driver on your computer in order to make the USB port appear as an additional COM port available to the PC (see the following procedure).
Application software can then access the USB port in the same way as it would access a standard COM port. Therefore, RS-232C commands can be sent to the OSICS using a serial-communication terminal.
The OSICS USB Driver is available on the USB key provided with the OSICS, or from the EXFO website.
This section explains how to connect your computer to the OSICS Mainframe and how to install the OSICS USB driver.
Before Starting Make sure your computer runs one of the following operating systems: Windows 10,
Windows 8, Windows 7. If not, the OSICS USB driver is not supported by your computer.
Make sure you have a USB-A to USB-B cable to link the OSICS Mainframe to your
computer.
Procedure 1. Do one of the following:
Connect the OSICS USB key to the USB-A port of your computer.
From the EXFO website (www.exfo.com/en/exfo-apps), download the OSICS
USB Driver (.zip file) and unzip it to a temporary folder on your computer.
2. In the USB Driver folder, double-click one of the following files, depending on you Windows platform (if you select the wrong file, a message appears, prompting you to select the other file):
32-bit system: OSICSUSBInstaller_x86.exe
64-bit system: OSICSUSBInstaller_x64.exe
The OSICS USB Driver installation wizard appears.
3. Follow the instructions displayed in the wizard window.
The OSICS USB Driver is now installed on your computer.
4. Connect the USB-B port of the OSICS to the USB-A port of your computer using a USB-A to USB-B cable.
The OSICS USB-B port is recognized as a COM port by the computer.
5. Use the authorized remote RS-232C commands (detailed in the present guide) to remotely control the OSICS multifunction platform.
Port Settings On your computer, make sure the port settings are configured with the following values:
Baud rate (bits per second): 9600 bauds
Data bits: 8
Parity: none
Stop bits: 1
Flow control (handshaking): none
12 OSICS Programming Guide

2. General System and Status Control

2.1 Communication Principles

2.1.1 Format of Messages

Message Endings Command Message Ending
A command message must end with one of the following:
USB (RS-232C): CR (or ASCII code 13 character)
GPIB: LF (or ASCII code 10 character) or EOI message
Response Message Ending
All commands sent via RS-232C generate a response message from the OSICS
Mainframe to inform the computer whether the order was successfully performed (OK) or that an error was produced (error messages are explained in the following Error Handling section, p14).
A response message always ends with the end-of-message sequence composed of:
the <CR> at the end of the message string
a blank line
the > sign placed on the next line followed by one white-space character, to
separate messages from one another along the vertical layout.
Example:
P=0.5 <CR> P=? <CR>
will generate the following two response messages if operation is successful:
OK <CR> > P=0.5 DBM <CR> >
Commands sent via GPIB follow the standard status model, see section Standard
Status Model, p. 15.
Message Syntax Rules
OSICS Programming Guide 13
Case
Commands are not case sensitive, you can type messages in upper-case or lower-case characters.
White Space
White spaces are allowed only before or after a command string, but not within a command mnemonic.
Multiple Commands
Compound commands are allowed and consist of a series of individual instructions separated from one another by a semicolon ( ; ).
General System and Status Control
The commands are processed by the OSICS Mainframe in the order received.
Command Length
A single command string can be up to 255 characters long. A longer command string generates a command-error message and the buffer is cleared.
A new command cannot be sent until all the instructions of the command string already in the buffer are completed. This will otherwise clear the buffer and generate a command-error. Moreover all the previous commands will be lost.
Numeric Values
Numeric values are either integers or doubles depending on the definition of the parameter.
A numeric value can start with a leading 0
Example: P=01.2
The = sign cannot be totally omitted but can be replaced by a white-space character.
Example: P 1.2
White spaces are allowed before and after the = sign.
Unit notation cannot be used after a numeric value.
A comma cannot be used in a dot-decimal notation.
White spaces are not allowed within a numerical value.
Error Handling The OSICS Mainframe performs error-checking on each command received and during
command execution. Errors fall into three categories and may generate one of the following error messages:
Execution Error
The command syntax is valid but the data contained in the command parameter is out of valid range. The current parameter setting remains unchanged.
Command Error
An unknown command is received or the command string has a syntax error in it.
Device Dependent Error
Some condition due to instrument malfunction or overload has been detected.

2.1.2 Command Applicability

Commands are based on a simple two-level hierarchy:
First-level commands affect the OSICS Mainframe only. To enter an OSICS
Mainframe command, simply type in the instruction string followed by the carriage return character in RS-232C, as shown in the following example:
P=0.22 <CR>
This command sets the output power for all the modules installed in the OSICS Mainframe to 0.22 mW (if mW is the selected power unit).
Second-level commands are used to control the operation and setting parameters of
OSICS modules installed in the OSICS Mainframe.
14 OSICS Programming Guide
General System and Status Control
Module commands require the CH#: specifier, where # is the slot number of the module to which the command applies (ranging from 1 to 8), as shown in the following example:
CH2:P=0.22 <CR>
This command sets the output power of the module installed in the channel-slot 2 to
0.22 mW (if mW is the selected power unit).
Similarly, the OSICS modules send a response statement to every command received and executed. Response messages are similar in syntax to programming commands' responses and feature the channel-specifier CH# in front of the message to differentiate between channels.

2.2 Standard IEEE Status Register Commands and Queries

2.2.1 Standard Status Model

Status Model The status word is an 8-bit variable that relates to the status of the OSICS Mainframe and
error reporting as well. It contains a number of binary indicators which can be used by the controller for an optimal synchronization between the OSICS Mainframe and the controller. They indicate to the controller the nature of the current operation as well as the errors encountered.
The following figure shows the standard IEEE status model.
7XEXYW&]XI 6IKMWXIV1EWO
       
34' 65' 5:) (()
'1) 965 432
)<)
     
)ZIRX7XEXYW
6IKMWXIV)76
7XEXYW&]XI
6IKMWXIV78&
  
1%:
)7&
657
34'
    
 
177
)ZIRX7XEXYW
6IKMWXIV1EWO
Figure 2: Status Word Model
Two mask registers are associated with the Status Byte register (STB) and the standard Event Status Register (ESR). These masks are used to control the service request operation of the instrument.
In the status and standard event registers, individual bits are validated by setting to 1 the corresponding bit in the mask register. Once the required bits have been set in each
OSICS Programming Guide 15
General System and Status Control
mask register, the summary bit will be set to 1 when the corresponding status or event register bits are set to 1.
The summary bit is obtained by performing a logical AND operation between each register and the corresponding mask register, and then a logical OR operation between all individual bits of the result.
Status Byte Register
Bit
Name Meaning
Number
7OPC
(OPeration Complete)
6RQS
(ReQuest Service)
Set to 1 once the last command has been completed.
Set to 1 if a service request has been generated by the OSICS Mainframe. This bit remains activated until a serial poll has been performed.
6MSS
(Master Summary Status)
Set to 1 together with the RQS bit. This bit remains activated as long as the condition that has lead to a service request is high.
It is cleared as soon as this condition ceases. This bit can be read by the *STB? command.
5ESB
(Event Status Bit)
4MAV
(Message AVailable)
Set to 1 as soon as one or more bits in the Event Status Register (ESR) are activated.
Set to 1 if a message is available and ready to be read in the output queue. This bit remains activated as long as the output queue has not been emptied.
Event Status Register
The following table gives the meaning of each bit in the Event Status register (ESR).
Bit
Name Meaning
Number
7 PON (Power ON) Set to 1 once the instrument initialization routine has
been completed.
6 URQ (User ReQuest) Set to 1 to indicate that an instrument front-panel key
has been pressed.
5 CME (ComMand Error) Set to 1 to indicate a command syntax error or an
unknown command.
4 EXE (EXecution Error) Set to 1 when a parameter value is out of the valid
range or when a command cannot be executed.
3 DDE (Device Dependent
Error)
Set to 1 if a malfunction has occurred on the instrument or an overload condition has been reached.
2 QYE (QuerY Error) Set to 1 in either of those two cases:
The GPIB controller has attempted to read from
the OSICS Mainframe while the output queue was empty.
The data in the GPIB output queue has been
overwritten and lost.
16 OSICS Programming Guide
General System and Status Control
Task Synchronization
Bit Number
1 RQC (ReQuest Control) This bit may not be set to 1, since the OSICS
0 OPC (OPeration
The Event Status Register is cleared each time it is read by the controller. When the execution of a command line begins, the OPC bit is cleared.
The GPIB interface of the OSICS Mainframe performs tasks sequentially in the order received; it does not support overlapping tasks.
The OPC (OPeration Complete) bit is cleared while the instruction is being processed
The MAV (Message AVailable) bit indicates that messages are available in the
To ensure a proper sequence of events, it may be useful to combine the use of the STatus Byte Register (STB) with the Event Status Register (ESR). The most relevant bit in the STB byte is bit 4 (MAV). The STB byte can be read either through a serial poll or as a response to the *STB? query.
Name Meaning
instrument does not work as an IEEE-488.2 bus controller.
In most cases this bit is set to 1 as soon as a
Complete)
and set to 1 once it has been completed. This is particularly useful when setting a channel to a new wavelength, as this operation may take a few seconds to complete. The computer should verify this flag until it is set to 1 and then only proceed to the next instruction. The status of the OPC flag is available through serial-polling the STB byte register. The OPC flag is contained in bit 7 of the STB byte register.
output buffer and ready to be read. For instance, if a query command was sent, the computer must wait until the response message is placed in the output queue before reading it. If several queries were sent via a compound command, the MAV flag remains activated until all response messages have polled by the computer. The MAV flag is contained in bit 4 of the STB byte register.
command has been completely executed.
Error Handling If different types of errors occur, relevant bits in the Event Status Register (ESR) are set
to 1. The following diagram shows the ESR error model:
34'
(()
)<)
'1)
       
The ESR byte can be read via the *ESR? query. The relevant bits in this control byte are the following bits:
0 (OPeration Complete: OPC)
3 (Device Dependent Error: DDE)
4 (EXecution Error: EXE)
5 (CoMmand Error: CME).
)ZIRX7XEXYW
6IKMWXIV)76
We recommend reading the ESR bit each time a command is sent to help trace errors throughout programmed operation, identify possible causes for errors and make the
necessary programming adjustments.
Caution
Reading the ESR byte with the *ESR? query command clears all the bits in the Event Status Register. Therefore, we recommend reading all significant bits at the time of query to ensure no relevant information is left out or lost.
OSICS Programming Guide 17
General System and Status Control

2.2.2 Common IEEE Commands and Queries

To accelerate and secure the exchange of information between the controller and the OSICS Mainframe, we recommend checking the values of the Status Register and of the standard Event Status Register using the IEEE-488.2 common commands presented in the following table.
Command Parameter Action OSICS Response
*CLS none Clears the Event Status Register and the
output queue. Sets the OPC bit to 1. The CLS instruction is automatically sent
to each module.
*ESE Integer
value (0 to 255)
*ESE? none The value of ESE is placed in the output
*ESR? none Standard Event Status Register query.
*IDN? none IDeNtification query.
*OPC none Waits until the pending command is
*OPC? none Waits until OPC bit is true, then places “1”
*RST none The input buffer is cleared. The command
*SRE Integer
value (0 to 255)
The standard event mask register is set to a value equal to the parameter of ESE command.
If the parameter is out of the range of 0 to 255, this triggers the “Execution Error”.
queue.
The value of the standard event register is placed into the output queue and the standard event register is cleared.
completed, then sets the OPC bit in the Event Status Register.
in the output queue, followed by the LF character.
interpreter is reset and a reset instruction is sent to every module. The status and event registers are cleared. Sets the OPC bit to 1.
Sets the value of the Service Request Enable Register. SRE determines which event triggers a serial poll. SRE is assigned the value of its parameter. For example, if bit 4 is set, this means that a service request will be generated when a message becomes available in the output queue.
If the parameter is out of the range from 0 to 255, this triggers the “Execution Error”.
Returns the value of ESE (0 to 255).
Returns the value of the ESR byte (0 to 255).
EXFO,OSICS, <serial number>, <software version> /<FPGA version>
This command always returns 1.
OK
18 OSICS Programming Guide
General System and Status Control
Command Parameter Action OSICS Response
*SRE? none Reads the value of the SRE register. Value of the SRE
register (0 to 255).
*STB? none STatus Byte query.
The value of the status byte register is sent to the output queue. STB contains
Value of the STB status byte (0 to
255). the MAV flag that takes bit number 4. In the STB? query, bit 6 is assigned the
MSS flag rather than the RQS flag, unlike the standard STB.
*WAI none Does nothing but wait until the pending
command has been completed.

2.3 RS-232C Common Commands

Subject This section describes the ECHON command, which is useful for viewing the characters
keyed in at the terminal. Setting the echo mode by using the ECHON command is needed for some terminals and
terminal emulation programs that do not feature local echo, otherwise typed characters cannot be seen.
Before Starting Make sure that the "echo" feature is enabled on the terminal emulation program you use.
Commands
Command/ Query
ECHON none Sets the OSICS Mainframe to echo each typed
Parameter Description OSICS
Mainframe Response
OK
character received back to the terminal.
ECHOFF none Default setting.
OK Cancels the echo mode on the OSICS Mainframe. If the local operating mode is restored using the
front-panel LOCAL button, the echo mode is automatically switched off and restored to default: ECHOFF.
OSICS Programming Guide 19
General System and Status Control
20 OSICS Programming Guide

3. OSICS Mainframe Control

The following table gives an overview of all available commands and queries for OSICS Mainframe control.
Command/Query Corresponding Section
Optical-Output Control
Spectral Unit Selection
Output Power Control
Modulation Control
Working Configuration Control
OSICS System Management Control
DISABLE DISABLE, p. 22 ENABLE ENABLE, p. 22 ENABLE? ENABLE?, p. 22 GHZ GHZ, p. 23 NM NM, p. 23 NM? NM?, p. 23 DBM Power Unit Selection, p. 24
MW
MW? P= Power Setting, p. 25
P? MOD_SRC MOD_SRC?, p. 26 MOD_SRC? MOD_SRC?, p. 26 MOD_F= MOD_F=, p. 26 MOD_F? MOD_F?, p. 27 SAVE SAVE, p. 27 RECALL RECALL, p. 27 *IDN? *IDN?, p. 28 *RST *RST, p. 28 INTERLOCK? INTERLOCK?, p. 28 PRESENT? PRESENT?, p. 29
BKRATNMAIN DFB T100SLD SWT TLS-AGSWT APC
OSICS Programming Guide 21
OSICS Mainframe Control

3.1 Optical-Output Control

3.1.1 DISABLE

Syntax DISABLE
ATN MAINBKRDFBT100 SLDSWTTLS-AG SWT APC
Parameter None.
Description Default setting.
Disables the laser output on all installed OSICS modules.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.1.2 ENABLE

Syntax ENABLE
Parameter None.
Description Enables the laser output on all installed OSICS modules.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.1.3 ENABLE?

Syntax ENABLE?
Parameter None.
Description Returns the current state of the OSICS Mainframe laser output master control.
OSICS Response ENABLED: the laser is set to ENABLE.
DISABLED: the laser is set to DISABLE.
22 OSICS Programming Guide
OSICS Mainframe Control

3.2 Spectral Unit Selection

3.2.1 GHZ

Syntax GHZ
Parameter None.
Description Sets the frequency in GHz as the spectral unit on all modules throughout the system.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.2.2 NM

Syntax NM
Parameter None.
Description Default setting.
Sets the wavelength in nm as the spectral unit on the OSICS Mainframe and all installed OSICS modules.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.2.3 NM?

Syntax NM?
BKRATNMAIN DFB T100SLD SWT TLS-AGSWT APC
Parameter None.
Description Returns the current spectral unit used on the OSICS Mainframe and all installed OSICS
modules.
OSICS Response 1: the current spectral unit used is nm.
0: the current spectral unit used is GHz.
OSICS Programming Guide 23
OSICS Mainframe Control

3.3 Output Power Control

3.3.1 Power Unit Selection

ATN MAINBKRDFBT100 SLDSWTTLS-AG SWT APC
3.3.1.1 DBM
Syntax DBM
Parameter None.
Description Sets dBm as the power unit on all modules. All power-related functions throughout the
OSICS Mainframe now use dBm as power unit.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.
3.3.1.2 MW
Syntax MW
Parameter None.
Description Default setting.
Sets mW as the power unit on all modules. All power-related functions throughout the OSICS Mainframe now use mW as power unit.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.
3.3.1.3 MW?
Syntax MW?
Parameter None.
Description Returns the current power unit used on the OSICS Mainframe and all installed OSICS
modules.
OSICS Response 1: the current power unit used is mW.
0: the current power unit used is dBm.
24 OSICS Programming Guide
OSICS Mainframe Control

3.3.2 Power Setting

3.3.2.1 P=
Syntax P=xx.xx|(±)xx.xx
Parameter [±]xx.xx: optical output power in dBm, if the unit is set to dBm (see section DBM,
p. 24). Possible values are given in the Technical Specifications section corresponding to the installed modules in the OSICS User Guide.
xx.xx: optical output power in mW, if the unit is set to mW (see section MW, p. 24).
Possible values are given in the Technical Specifications section corresponding to the installed modules in the OSICS User Guide.
Description Sets the optical output power of all modules to the same value, depending on the
selected power unit (see section Power Unit Selection, p. 24).
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.
BKRATNMAIN DFB T100SLD SWT TLS-AGSWT APC
3.3.2.2 P?
Syntax P?
Parameter None.
Description Returns the optical output power value set for the modules, according to the selected
power unit. The format of the response depends on the power unit selected (see section Power Unit Selection, p. 24).
The returned response is the value set using the P= command (see section P=, p. 25), it does not give the power of the installed modules.
OSICS Response P=xx.xx: output power value in mW.
P=±xx.xx: output power value in dBm.
OSICS Programming Guide 25
OSICS Mainframe Control

3.4 Modulation Control

3.4.1 MOD_SRC

Syntax MOD_SRC INT|EXT
ATN MAINBKRDFBT100 SLDSWTTLS-AG SWT APC
Parameters INT: INTERNAL digital modulation signal. The internal source uses the OSICS
Mainframe on-board modulation signal generator. To set the frequency of the OSICS internal TTL modulation, use the MOD_F command (see section MOD_F=, p. 26)
EXT: EXTERNAL digital modulation signal. In this case, you must connect a TTL
signal generator to the Mod. In BNC connector located at the rear panel of the OSICS Mainframe (see OSICS User Guide).
Description Sets the type of modulation source of the OSICS Mainframe.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.4.2 MOD_SRC?

Syntax MOD_SRC?
Parameter None.
Description Returns the type of digital (TTL) modulation source currently selected for the OSICS.
OSICS Response MOD_SRC=INT: the modulation source is set to INTERNAL.
MOD_SRC=EXT: the modulation source is set to EXTERNAL.

3.4.3 MOD_F=

Syntax MOD_F=xxxxxxx
Parameter xxxxxxx: frequency in Hz, in the range 123 Hz to 1000000 Hz (1 MHz).
Default value: 200 Hz
Description Sets the frequency of the OSICS Mainframe internal digital (TTL) modulation source.
If the OSICS Mainframe is not able to generate the exact value of the frequency setting, it applies the nearest available frequency value, right under the value of the setting.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.
26 OSICS Programming Guide
OSICS Mainframe Control

3.4.4 MOD_F?

Syntax MOD_F?
Parameter None.
Description Returns the frequency of the OSICS internal digital (TTL) modulation source in Hz.
OSICS Response MOD_F=xxxxxxx

3.5 Working Configuration Control

The commands detailed in this section enable you to load or save working configurations. For more details on working configuration, see OSICS User Guide.

3.5.1 SAVE

Syntax SAVE STARTUP|A|B|C|D
Parameters STARTUP: configuration loaded at OSICS startup.
A: A configuration memory.
B: B configuration memory.
C: C configuration memory.
D: D configuration memory.
Description Saves the current OSICS Mainframe and module configuration settings to the selected
configuration memory.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.
BKRATNMAIN DFB T100SLD SWT TLS-AGSWT APC

3.5.2 RECALL

Syntax RECALL DEFAULT|STARTUP|A|B|C|D
Parameter DEFAULT: factory-set DEFAULT configuration type.
STARTUP: STARTUP configuration type.
A: A configuration memory.
B: B configuration memory.
C: C configuration memory.
D: D configuration memory.
OSICS Programming Guide 27
ATN MAINBKRDFBT100 SLDSWTTLS-AG SWT APC
OSICS Mainframe Control
Description Loads the selected configuration type.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.6 OSICS System Management Control

3.6.1 *IDN?

Syntax *IDN?
Parameter None.
Description Returns information about the OSICS Mainframe.
OSICS Response EXFO,OSICS,<serial number>,<software version>/<FPGA version>

3.6.2 *RST

Syntax *RST
Parameter None.
Description Resets the OSICS Mainframe and all modules to the same state as after system turn-
on and initialization.
Clears the input queue.
Sets the OPC bit to 1.
The command interpreter is reset and a reset instruction is sent to every module. The status and event registers are cleared.
OSICS Response RS-232C: OK
GPIB: none, see section Standard Status Model, p. 15.

3.6.3 INTERLOCK?

Syntax INTERLOCK?
Parameter None.
Description Returns the current state of the remote interlock mode.
OSICS Response 1: the remote interlock is on (laser switched off).
0: the remote interlock is off (laser switched on).
28 OSICS Programming Guide
OSICS Mainframe Control

3.6.4 PRESENT?

Syntax PRESENT? #
Parameter #: slot number of the module, in the range 1 to 8.
Description Returns the type of OSICS module installed in channel-slot number #. Each type of OSICS
module has its own module code.
OSICS Response -1: empty slot.
1: the module installed in the selected slot is a T100 module.
2: the module installed in the selected slot is a DFB or SLD module.
7: the module installed in the selected slot is an SWT module.
8: the module installed in the selected slot is an ATN or BKR module.
10: the module installed in the selected slot is a TLS module.
BKRATNMAIN DFB T100SLD SWT TLS-AGSWT APC
OSICS Programming Guide 29
ATN MAINBKRDFBT100 SLDSWTTLS-AG SWT APC
OSICS Mainframe Control
30 OSICS Programming Guide
Loading...
+ 92 hidden pages