background image

T100S-HP Programming Guide

35

3. Program Example and Library

Subject 

EXFO provides the following tools to allow you to control the T100S-HP via RS-232C and 
GPIB:

LabVIEW Virtual Instrument example 

T100S_HP_Example.vi

LabVIEW library 

T100S_HP.lvlib

These tools are available on the USB key delivered with the T100S-HP, or you can 
download them from the EXFO website at www.EXFO.com/software/en/exfo-apps

Compatibility

The Virtual Instrument 

T100S_HP_Example

 is part of the LabVIEW library 

T100S_HP.lvlib

developed for LabVIEW 2010 or later. 
The example and library are compatible with 32- and 64-bits versions of LabVIEW.

3.1

T100S-HP LabVIEW Library

The 

T100S_HP.lvlib

 LabVIEW library is organized in three sub-folders:

Parameter Settings

This folder contains sub-Vis that allow the settings of parameters such as Power, 
Current, Wavelength/Frequency and Motor Speed, as well as enabling/disabling the 
laser or controlling the Active Cavity Control and Active Power Control. 

Parameters Queries

This folder contains sub-Vis that collect current values of parameters such as Power, 
Current, Wavelength/Frequency and Motor Speed, the state of the laser or the 
wavelength limits of the laser in operation. 
The sub-VI 

T100S_HP_Get_Laser_Settings

 collects the most relevant information 

about the laser in one single VI.

Communication 

This folder contains sub-Vis that allow basic Write/Read of remote commands in 
both GPIB and RS 232C. Specific functionalities are available from the GPIB or RS-
232C sub-folders.

Summary of Contents for T100S-HP Series

Page 1: ...www EXFO com T100S HP High Power Tunable Laser Programming Guide T100SHP_PG_6 06v1 0...

Page 2: ......

Page 3: ...ntifies graphical interface objects such as menu names labels buttons and icons italic Identifies references to other sections or other guides monospace Identifies portions of program codes command li...

Page 4: ...onditions visit the EXFO web site at www exfo com how to buy sales terms conditions Contact Information To obtain after sales service or technical support for this product contact EXFO at one of the f...

Page 5: ...RS 232C Remote Control Mode 12 1 3 2 Connecting a Remote Controller 12 1 4 Format of Messages 13 1 5 Error Handling 15 2 Remote Control Commands 17 2 1 IEEE Standard Functions 18 2 1 1 STB 18 2 1 2 SR...

Page 6: ...CTRLOFF 28 2 5 7 Continuous Wavelength Sweep 28 2 6 Calibration Control 30 2 6 1 AUTO_CAL 30 2 6 2 PCAL1 30 2 6 3 PCAL2 30 2 6 4 PCAL1 30 2 6 5 PCAL2 31 2 7 Active Wavelength Monitoring Control GPIB o...

Page 7: ...y is lit to indicate that remote control is active When the T100S HP is operating in remote mode all function keys on the front panel are disabled apart from the Remote key Switching Back to Local Mod...

Page 8: ...link Data sent on the bus is encoded in ASCII strings Each instrument on the bus is identified by its own GPIB address The default T100S HP GPIB address is 10 but can take any value between 1 and 30...

Page 9: ...st and for what reason This operation by which the controller reads the status byte of each device is called serial polling The controller then monitors the bit value of each indicator within the stat...

Page 10: ...hen a query statement has been sent the computer must wait until the response is actually available before reading it This is signaled by the MAV flag bit 4 of the STB In this case the STB byte must b...

Page 11: ...ay prompts you to enter the new value at the numeric keypad 2 Enter the new GPIB address in the range of 1 to 30 3 Press Enter to confirm the change The DATA area display prompts you to activate deact...

Page 12: ...mote key LED is lit all front panel manual commands are rerouted to the remote computer via the RS 232C interface In addition the user interface specific commands are also available in remote mode 5 T...

Page 13: ...n the character string is decoded and the relevant procedure is carried out After completion the T100S HP returns a message to inform the computer that the requested procedure has been performed OK st...

Page 14: ...he following places inside the command strings sent to T100S HP At the beginning of an instruction After an instruction Before after or in place of the sign They cannot be inserted in the following pl...

Page 15: ...R In GPIB the ERRC indicator in the status byte register is activated Value error the command is correctly formulated but the value of the parameter is incorrect either because it could not be read or...

Page 16: ...Remotely Controlling the T100S HP 16 T100S HP Programming Guide...

Page 17: ...MAX F MIN MAX p 24 MOTOR_SPEED MOTOR_SPEED MOTOR_SPEED p 24 MOTOR_SPEED p 25 FSCL FSCF Fine Scanning Mode Control p 25 APCON APCOFF Automatic Power Control p 26 ACTCTRLON ACTCTRLOFF Active Cavity Con...

Page 18: ...ctivated individual indicators see Table 4 p 18 To know which bit indicators are activated in the status byte use the following table to translate the value returned into the corresponding activated b...

Page 19: ...alues found in Table 5 p 19 of each individual indicators you would like to combine Once the T100S HP has activated a service request the status byte is no longer automatically updated until the contr...

Page 20: ...the Status Byte p 9 2 2 2 ENABLE Syntax ENABLE Parameter None Description Enables the laser output Response RS 232C OK GPIB none see section Checking System Status with the Status Byte p 9 2 3 Output...

Page 21: ...section in T100S HP User Manual Description Sets the optical power in dBm or mW depending on the selected power unit and switches to the constant power mode see section APCON p 26 The units dB or mW...

Page 22: ...tem Status with the Status Byte p 9 2 4 2 I Syntax I Parameter None Description Returns the value of the diode current in mA The module optical output must be enabled see section Optical Output Contro...

Page 23: ...s tuned directly to the desired wavelength without step mode scanning or swept mode hop free scanning The tuning is performed at the MOTOR SPEED speed value see section MOTOR_SPEED p 24 Response RS 23...

Page 24: ...value see section MOTOR_SPEED p 24 Response RS 232C OK GPIB none see section Checking System Status with the Status Byte p 9 2 5 1 5 F Syntax F Parameter None Description Returns the value of the pre...

Page 25: ...s Byte p 9 2 5 1 8 MOTOR_SPEED Syntax MOTOR_SPEED Parameter None Description Returns the operational sweeping speed in nm s Response xxx sweep speed in nm s 2 5 2 Fine Scanning Mode Control 2 5 2 1 FS...

Page 26: ...Checking System Status with the Status Byte p 9 2 5 3 2 APCOFF Syntax APCOFF Parameter None Description Sets the system operation to constant current mode APC mode disabled For more details on this mo...

Page 27: ...enabled Description Sets the state of the backlash suppression control on the micrometer screw Bringing the T100S HP back to local mode automatically activates the backlash suppression control even i...

Page 28: ...MOTOR_SPEED nnn ACTCTRLON L xxxx xxx MOTOR_ SPEED 100 ACTCTRLOFF Description To perform continuous and mode hop free scans in the sweep mode you must use a combination of commands and make a remote su...

Page 29: ...t 100 nm s using the MOTOR_SPEED command see section MOTOR_SPEED p 24 This enables you to return to the first wavelength at the maximum speed 7 Disable the active cavity control using the ACTCTRLOFF c...

Page 30: ...K RS 232C only the calibration has been successfully performed 2 6 2 PCAL1 Syntax PCAL1 xx xx Parameter xx xx the calibration power at first wavelength in the range 0 3 to 0 6 mW Description Sets the...

Page 31: ...ceive commands Syntax L_FEEDBACK 1 0 Parameter 1 the Active Wavelength Monitoring is enabled while using an external wavemeter 0 the Active Wavelength Monitoring is disabled Description Sets the state...

Page 32: ...rogramming Guide Response 1 the Active Wavelength Monitoring is in use 0 the Active Wavelength Monitoring is disabled ERROR possible malfunction make sure a wavemeter is connected to the RS 232C port...

Page 33: ...e p 9 2 8 2 ECHON Applicability RS 232C only Syntax ECHON Parameter None Description Activates the echo mode the T100S HP sends an echo of each character received back through the serial cable Since s...

Page 34: ...Response EXFO T100S HP 0 software version 2 9 Remote Mode Control 2 9 1 GPAD Applicability GPIB only Syntax GPAD xx Parameter xx GPIB address of the T100S HP in the range 1 30 Description Sets the GPI...

Page 35: ...The T100S_HP lvlib LabVIEW library is organized in three sub folders Parameter Settings This folder contains sub Vis that allow the settings of parameters such as Power Current Wavelength Frequency an...

Page 36: ...buttons DISABLED ENABLED Enable button Auto Calibration wavelength referencing usually accessed via 2nd I on the instrument Busy Idle LED Orange remote access is performing a remote command Green remo...

Page 37: ...front panel of the instrument When in Idle both Current and Power are updated to reflect the display on the instrument When entering a new Current value the APC and ACC are automatically turned OFF W...

Page 38: ...Program Example and Library 38 T100S HP Programming Guide...

Page 39: ...F 24 F 24 F MIN MAX 24 Format 13 FSCF 25 FSCL 25 G GPAD 34 GPIB Address 11 Capabilities 8 Connection 11 Definition 8 Status Byte 9 I I 22 I 22 IEEE 488 1 8 INIT 33 L L 23 L_FEEDBACK 31 L_FEEDBACK 31...

Page 40: ...troller 13 Remote LED 7 RS 232C Connection 13 Remote control activation 12 Turning on 12 S Serial polling 9 10 Service Request 9 SRE 19 SRQ 9 Standard Commands GPIB 18 Status Byte 9 Status Word 9 STB...

Reviews: