background image

CONEX-LDS 

Command Interface Manual 

2.0

 

Command Interface 

2.1

 

Constructor 

CONEXLDS() 
The constructor is used to create an instance of the CONEX-LDS device. 

2.2

 

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. If the opening 

failed, the returned code is -1

.

 

 

CloseInstrument 

Syntax 

int CloseInstrument() 
return: 0 = successful or -1 = failure 

Decription 

This function allows closing communication with the selected device. If the closing 

failed, the returned code is -1. 

 

GetDevices 

Syntax 

string[] GetDevices() 
return: list of strings that contains the accessible COM ports 

Decription 

This function returns the list of connected devices available to communicate. 

 

EDH0333En1022 — 12/18

 

Summary of Contents for CONEX-LDS

Page 1: ...CONEX LDS Electronic Autocollimator Command Interface Manual V1 0 x...

Page 2: ...tructions 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 s...

Page 3: ...Command Interface 3 2 1 Constructor 3 2 2 Functions 3 2 2 1 General 3 OpenInstrument 3 CloseInstrument 3 GetDevices 3 WriteToInstrument 4 2 2 2 Commands 4 CD 4 GP 5 GX_Get 5 GX_Set 5 GY_Get 6 GY_Set...

Page 4: ...CONEX LDS Command Interface Manual SA_Set 12 SL_Get 12 SL_Set 13 SR_Get 13 SR_Set 13 SU_Get 14 SU_Set 14 TB 14 TE 15 TS 15 VE 15 ZT 16 3 0 Python example 17 Service Form 21 EDH0333En1022 12 18 iv...

Page 5: ...d Interface DLL is a generic name that refers to a DLL used to communicate with an instrument Typically this DLL exposes all the commands the instrument supports These commands are exposed as function...

Page 6: ...X LDS Bin Newport CONEXLDS CommandInterface dll 1 4 Possible uses of Newport CONEXLDS CommandInterface dll Newport CONEXLDS CommandInterface dll is used by CONEX LDS applet for communicating with the...

Page 7: ...ecription This function allows opening communication with the selected device If the opening failed the returned code is 1 CloseInstrument Syntax int CloseInstrument return 0 successful or 1 failure D...

Page 8: ...to the instrument 2 2 2 Commands CD Syntax int CD int controllerAddress out string FactoryCalibrationInformation out string errstring controllerAddress controllerAddress FactoryCalibrationInformation...

Page 9: ...double GainX out string errstring controllerAddress controllerAddress GainX GainX errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchro...

Page 10: ...rAddress GainY GainY errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous GY Set command which is used to Set gain for analog ima...

Page 11: ...string controllerAddress controllerAddress LaserState LaserState errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous LB Get comm...

Page 12: ...lerAddress Frequency Frequency errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous LF Set command which is used to Set the low p...

Page 13: ...dress CalibrationCoefficientX CalibrationCoefficientX errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous PX Get command which i...

Page 14: ...string errstring controllerAddress controllerAddress CalibrationCoefficientY CalibrationCoefficientY errString The failure reason return 0 in success and 1 on failure Description This function is used...

Page 15: ...trollerAddress controllerAddress errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous RS Set command which is used to Reset the c...

Page 16: ...Address errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous SA Set command which is used to Set the controller s RS 485 address...

Page 17: ...dress HighlevelPowerThreshold HighlevelPowerThreshold errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous SR Get command which i...

Page 18: ...lerAddress Units Units errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous SU Set command to set the the measurement units Refer...

Page 19: ...ddress ErrorCode ErrorCode StatusCode StatusCode errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous TS Get command which is use...

Page 20: ...s controllerAddress ConfigurationParameters ConfigurationParameters errString The failure reason return 0 in success and 1 on failure Description This function is used to process synchrounous ZT Get c...

Page 21: ...ocation of Newport CONEXLDS CommandInterface dll to sys path sys path append r C Program Files Newport MotionControl CONEX LDS Bin The CLR module provide functions for interacting with the underlying...

Page 22: ...tLaserStatus LDS address flag result laserStatus errString LDS LB_Get address if flag 1 if result 0 print Laser status laserStatus else print LB_Get Error errString return result laserStatus Procedure...

Page 23: ...ON displayFlag result iLaserStatus CONEXLDS_GetLaserStatus LDS address displayFlag Get positions if iLaserStatus ON print Laser is ON Get X Y positions and light level returnValue positionX positionY...

Page 24: ......

Page 25: ...____________________________________________________ __________________________________________________________________________________________________________________ ________________________________...

Page 26: ...mail tech newport com Service RMAs Returns Tel 800 222 6440 e mail service newport com Europe MICRO CONTROLE Spectra Physics S A S 9 rue du Bois Sauvage 91055 vry CEDEX France Sales Tel 33 0 1 60 91 6...

Reviews: