EXFO T100S-HP Series Скачать руководство пользователя страница 9

Remotely Controlling the T100S-HP

T100S-HP Programming Guide

9

1.2.1

Checking System Status with the Status Byte

Definition of the 
Status Byte

The status byte is an 8-bit value that reflects the status of the T100S-HP

It

 

contains a 

number of binary indicators, which can be used by the computer for optimal 
synchronization with the T100S-HP product. They indicate to the computer the nature of 
the current operations as well as the errors encountered. 
The only way to read the status byte is to perform an operation called serial polling.
If a condition is in effect, the corresponding binary indicator takes a bit-value of 

otherwise, the default bit-value is 

0

.

Bit Position Indicator

Meaning

#7 (MSB)

(Bit not used)

Bit 7 is not used.

#6

SRQ
(Service ReQuest)

This line is part of the definition of the IEEE-488.1 
standard. It can be triggered by any device on the 
bus. It alerts the central controller that a particular 
device requests to perform a specific operation.
When the controller detects that the SRQ line is 
active, it can probe all of the devices present on the 
bus to determine which device has initiated the 
service request 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 
status byte.
The IEEE-488.1 standard specifies that when a 
device sends a service request, bit-value #6 is set to 

1

. The other bits of the status byte can reflect the 

state of different logical indicators of the system.

Set to 

1

 if a service request has been sent by 

the product. 

Set to 

0

 cleared when the bus controller reads 

the status register.

#5

ESB

Reserved for future use.

#4

MAV
(Message AVailable)

Set to 

1

 if a message is placed in the output 

buffer. This bit remains set to "1" for as long as 
the output buffer is not polled.

You can to clear the buffers so that any 
message is flushed (see section 

IEEE Standard 

Functions, p. 18

, function 

Clear

)

#3

LIM
(Current LIMitation)

Set to 

1

 if the T100S-HP has reached its current 

limit while in APC mode. The bit is only lifted 
once the current limit is reached. When sending 
a Power or Current command, this bit is usually 
set a short delay after the OPC bit is set back to 

1

. This is because the laser actively and 

continuously monitor its current and as it 
evolves, the limit can be reached. This can 
happen after the "Power" or "Current" command 
is considered "completed".

Set to 

0

 in all other cases.

Содержание T100S-HP Series

Страница 1: ...www EXFO com T100S HP High Power Tunable Laser Programming Guide T100SHP_PG_6 06v1 0...

Страница 2: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 16: ...Remotely Controlling the T100S HP 16 T100S HP Programming Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 38: ...Program Example and Library 38 T100S HP Programming Guide...

Страница 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...

Страница 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...

Отзывы: