Page 2
Original instructions. No part of this document may be reproduced or copied without the prior written approval of Newport Corporation. This document is provided for information only, and product specifications are subject to change without notice. Any change will be reflected in future publishings.
The purpose of this document is to provide the method syntax of each command to communicate with the CONEX-LDS autocollimator exposed in assembly Newport.CONEXLDS.CommandInterface.dll. This .Net assembly is designed and developed by Newport. This DLL is used by CONEX-LDS applet to communicate with the CONEX-LDS autocollimator.
\Newport\MotionControl\CONEX- LDS\Bin\Newport.CONEXLDS.CommandInterface.dll Possible uses of Newport.CONEXLDS.CommandInterface.dll Newport.CONEXLDS.CommandInterface.dll is used by CONEX-LDS applet for communicating with the CONEX-LDS autocollimator. The same DLL can be used as a reusable software component for creating Python scripts or LabVIEW VIs. EDH0333En1022 — 12/18...
CONEX-LDS Command Interface Manual Command Interface Constructor CONEXLDS() The constructor is used to create an instance of the CONEX-LDS device. Functions 2.2.1 General • OpenInstrument Syntax int OpenInstrument(string strDeviceKey) string strDeviceKey: the device key is a serial COM port return: 0 = successful or -1 = failure Decription This function allows opening communication with the selected device.
CONEX-LDS Command Interface Manual • WriteToInstrument Syntax int WriteToInstrument(string command, ref string resp, int stage) command: Instrument command resp: Response of the command stage: Instrument Stage return: function error Decription This Overridden function Queries or writes the command issued by the user to the instrument.
0 in success and -1 on failure Description This function is used to process synchrounous GX Get command which is used to Get gain for analog image of X channel. Refer to the CONEX-LDS User’s Manual for more information on this command GX_Set...
0 in success and -1 on failure Description This function is used to process synchrounous GY Get command which is used to Get gain for analog image of Y channel. Refer to the CONEX-LDS User’s Manual for more information on this command GY_Set...
0 in success and -1 on failure Description This function is used to process synchrounous LB Get command which is used to Power ON/ Power OFF the laser. Refer to the CONEX-LDS User’s Manual for more information on this command LB_Set...
0 in success and -1 on failure Description This function is used to process synchrounous LF Get command which is used to Get the low pass filter frequency. Refer to the CONEX-LDS User’s Manual for more information on this command LF_Set...
0 in success and -1 on failure Description This function is used to process synchrounous PX Get command which is used to Get the calibration value for X channel. Refer to the CONEX-LDS User’s Manual for more information on this command PX_Set...
0 in success and -1 on failure Description This function is used to process synchrounous PY Get command which is used to Get the calibration value for Y channel. Refer to the CONEX-LDS User’s Manual for more information on this command PY_Set...
0 in success and -1 on failure Description This function is used to process synchrounous RS## Set command which is used to Reset the controller’s address to 1. Refer to the CONEX-LDS User’s Manual for more information on this command EDH0333En1022 — 12/18...
0 in success and -1 on failure Description This function is used to process synchrounous SA Get command which is used to Get the controller’s RS-485 address. Refer to the CONEX-LDS User’s Manual for more information on this command SA_Set...
0 in success and -1 on failure Description This function is used to process synchrounous SL Set command which is used to Set low level power threshold for valid measurements. Refer to the CONEX-LDS User’s Manual for more information on this command SR_Get...
0 in success and -1 on failure Decription This function is used to process synchrounous TB Get command which explains the meaning of the error string. Refer to the CONEX-LDS Controller’s manual to get the command description. EDH0333En1022 — 12/18...
Page 19
0 in success and -1 on failure Description This function is used to process synchrounous TE Get command which is used to Get the last command error. Refer to the CONEX-LDS User’s Manual for more information on this command Syntax...
Page 20
0 in success and -1 on failure Description This function is used to process synchrounous ZT Get command which is used to Get all controller parameters. Refer to the CONEX-LDS User’s Manual for more information on this command EDH0333En1022 — 12/18...
# No part of this file in any format, with or without modification # shall be used, copied or distributed without the express written # consent of Newport Corporation. # Description: This is a Python Script to access CONEX-LDS library #========================================================================= # Initialization Start # The script within Initialization Start and Initialization End is needed # properly initializing Command Interface for Conex-LDS instrument.
Page 22
#************************************************* # Initialization instrument="COM19" displayFlag = 1 address = 1 # Create a CONEX-LDS interface and open communication. LDS = CONEXLDS_Open(instrument) # Get controller revision information result, version = CONEXLDS_GetControllerVersion(LDS, address, displayFlag) # Get laser status result, iLaserStatus = CONEXLDS_GetLaserStatus(LDS, address, displayFlag)
Page 23
CONEX-LDS Command Interface Manual # Check and refresh the laser status if iLaserStatus == OFF: print 'Laser is OFF' result = CONEXLDS_SetLaserStatus(LDS, address, ON, displayFlag) result, iLaserStatus = CONEXLDS_GetLaserStatus(LDS, address, displayFlag) # Get positions if iLaserStatus == ON: print 'Laser is ON'...
CONEX-LDS Command Interface Manual Service Form Your Local Representative Tel.: __________________ Fax: ___________________ Name: _________________________________________________ Return authorization #: ____________________________________ (Please obtain prior to return of item) Company:_______________________________________________ Address: ________________________________________________ Date: __________________________________________________ Country: ________________________________________________ Phone Number: __________________________________________ P.O. Number: ____________________________________________ Fax Number: ____________________________________________...
Page 26
Visit Newport Online at: www.newport.com North America & Asia Europe Newport Corporation MICRO-CONTROLE Spectra-Physics S.A.S 1791 Deere Ave. 9, rue du Bois Sauvage Irvine, CA 92606, USA 91055 Évry CEDEX France Sales Tel.: (800) 222-6440 Sales e-mail: sales@newport.com Tel.: +33 (0)1.60.91.68.68 Technical Support e-mail: france@newport.com...
Need help?
Do you have a question about the CONEX-LDS and is the answer not in the manual?
Questions and answers