//////////////////////////////////////////////////////////////////// // Created header file xps_c8_drivers.h for API headings // #ifndef DLL #define DLL_declspec(dllimport) #endif #ifdef __cplusplus extern "C" { #endif int __stdcall TCP_ConnectToServer(char *Ip_Address, int Ip_Port, double TimeOut); void __stdcall TCP_SetTimeout(int SocketIndex, double Timeout); void __stdcall TCP_CloseSocket(int SocketIndex); char * __stdcall TCP_GetError(int SocketIndex); char * __stdcall GetLibraryVersion(void); int __stdcall ElapsedTimeGet (int SocketIndex, double * ElapsedTime); int __stdcall ErrorStringGet (int SocketIndex, int ErrorCode, char * ErrorString); int __stdcall FirmwareVersionGet (int SocketIndex, char * Version); int __stdcall TCLScriptExecute (int SocketIndex, char * TCLFileName, char * TaskName, char * ParametersList); int __stdcall TCLScriptExecuteAndWait (int SocketIndex, char * TCLFileName, char * TaskName, char * InputParametersList, char * OutputParametersList); int __stdcall TCLScriptKill (int SocketIndex, char * TaskName); int __stdcall TimerGet (int SocketIndex, char * TimerName, int * FrequencyTicks); int __stdcall TimerSet (int SocketIndex, char * TimerName, int FrequencyTicks); int __stdcall Reboot (int SocketIndex); int __stdcall EventAdd (int SocketIndex, char * PositionerName, char * EventName, char * EventParameter, char * ActionName, char * ActionParameter1, char * ActionParameter2, char * ActionParameter3); int __stdcall EventGet (int SocketIndex, char * PositionerName, char * EventsAndActionsList); int __stdcall EventRemove (int SocketIndex, char * PositionerName, char * EventName, char * EventParameter); int __stdcall EventWait (int SocketIndex, char * PositionerName, char * EventName, char * EventParameter); int __stdcall GatheringConfigurationGet (int SocketIndex, char * Type); int __stdcall GatheringConfigurationSet (int SocketIndex, int NbElements, char * TypeList); int __stdcall GatheringCurrentNumberGet (int SocketIndex, int * CurrentNumber, int * MaximumSamplesNumber); int __stdcall GatheringStopAndSave (int SocketIndex); int __stdcall GatheringExternalConfigurationSet (int SocketIndex, int NbElements, char * TypeList); int __stdcall GatheringExternalConfigurationGet (int SocketIndex, char * Type); int __stdcall GatheringExternalCurrentNumberGet (int SocketIndex, int * CurrentNumber, int * MaximumSamplesNumber); int __stdcall GatheringExternalStopAndSave (int SocketIndex); int __stdcall GlobalArrayGet (int SocketIndex, int Number, char * ValueString); int __stdcall GlobalArraySet (int SocketIndex, int Number, char * ValueString); int __stdcall GPIOAnalogGet (int SocketIndex, int NbElements, char * GPIONameList, double AnalogValue[]); int __stdcall GPIOAnalogSet (int SocketIndex, int NbElements, char * GPIONameList, double AnalogOutputValue[]); int __stdcall GPIOAnalogGainGet (int SocketIndex, int NbElements, char * GPIONameList, int AnalogInputGainValue[]); int __stdcall GPIOAnalogGainSet (int SocketIndex, int NbElements, char * GPIONameList, int AnalogInputGainValue[]); int __stdcall GPIODigitalGet (int SocketIndex, char * GPIOName, unsigned short * DigitalValue); int __stdcall GPIODigitalSet (int SocketIndex, char * GPIOName, unsigned short Mask, unsigned short DigitalOutputValue); int __stdcall GroupAnalogTrackingModeEnable (int SocketIndex, char * GroupName, char * Type); int __stdcall GroupAnalogTrackingModeDisable (int SocketIndex, char * GroupName); int __stdcall GroupHomeSearch (int SocketIndex, char * GroupName); int __stdcall GroupHomeSearchAndRelativeMove (int SocketIndex, char * GroupName, int NbElements, double TargetDisplacement[]); int __stdcall GroupInitialize (int SocketIndex, char * GroupName); int __stdcall GroupInitializeWithEncoderCalibration (int SocketIndex, char * GroupName); int __stdcall GroupJogParametersSet (int SocketIndex, char * GroupName, int NbElements, double Velocity[], double Acceleration[]); int __stdcall GroupJogParametersGet (int SocketIndex, char * GroupName, int NbElements, double Velocity[], double Acceleration[]); int __stdcall GroupJogCurrentGet (int SocketIndex, char * GroupName, int NbElements, double Velocity[], double Acceleration[]); int __stdcall GroupJogModeEnable (int SocketIndex, char * GroupName); int __stdcall GroupJogModeDisable (int SocketIndex, char * GroupName); int __stdcall GroupKill (int SocketIndex, char * GroupName); int __stdcall GroupMoveAbort (int SocketIndex, char * GroupName); int __stdcall GroupMoveAbsolute (int SocketIndex, char * GroupName, int NbElements, double TargetPosition[]); int __stdcall GroupMoveRelative (int SocketIndex, char * GroupName, int NbElements, double TargetDisplacement[]); int __stdcall GroupMotionDisable (int SocketIndex, char * GroupName); int __stdcall GroupMotionEnable (int SocketIndex, char * GroupName); int __stdcall GroupPositionCurrentGet (int SocketIndex, char * GroupName, int NbElements, double CurrentEncoderPosition[]); int __stdcall GroupPositionSetpointGet (int SocketIndex, char * GroupName, int NbElements, double SetPointPosition[]); int __stdcall GroupPositionTargetGet (int SocketIndex, char * GroupName, int NbElements, double TargetPosition[]); int __stdcall GroupStatusGet (int SocketIndex, char * GroupName, int * Status); int __stdcall GroupStatusStringGet (int SocketIndex, int GroupStatusCode, char * GroupStatusString); int __stdcall KillAll (int SocketIndex); int __stdcall PositionerAnalogTrackingPositionParametersGet (int SocketIndex, char * PositionerName, char * GPIOName, double * Offset, double * Scale, double * Velocity, double * Acceleration); int __stdcall PositionerAnalogTrackingPositionParametersSet (int SocketIndex, char * PositionerName, char * GPIOName, double Offset, double Scale, double Velocity, double Acceleration); int __stdcall PositionerAnalogTrackingVelocityParametersGet (int SocketIndex, char * PositionerName, char * GPIOName, double * Offset, double * Scale, double * DeadBandThreshold, int * Order, double * Velocity, double * Acceleration); int __stdcall PositionerAnalogTrackingVelocityParametersSet (int SocketIndex, char * PositionerName, char * GPIOName, double Offset, double Scale, double DeadBandThreshold, int Order, double Velocity, double Acceleration); int __stdcall PositionerBacklashGet (int SocketIndex, char * PositionerName, double * BacklashValue, char * BacklaskStatus); int __stdcall PositionerBacklashSet (int SocketIndex, char * PositionerName, double BacklashValue); int __stdcall PositionerBacklashEnable (int SocketIndex, char * PositionerName); int __stdcall PositionerBacklashDisable (int SocketIndex, char * PositionerName); int __stdcall PositionerCorrectorNotchFiltersSet (int SocketIndex, char * PositionerName, double NotchFrequency1, double NotchBandwith1, double NotchGain1, double NotchFrequency2, double NotchBandwith2, double NotchGain2); int __stdcall PositionerCorrectorNotchFiltersGet (int SocketIndex, char * PositionerName, double * NotchFrequency1, double * NotchBandwith1, double * NotchGain1, double * NotchFrequency2, double * NotchBandwith2, double * NotchGain2); /* int __stdcall PositionerCorrectorPIDFFAccelerationSet (int SocketIndex, char * PositionerName, bool ClosedLoopStatus, double KP, double KI, double KD, double KS, double IntegrationTime, double DerivativeFilterCutOffFrequency, double GKP, double GKI, double GKD, double KForm, double FeedForwardGainAcceleration); int __stdcall PositionerCorrectorPIDFFAccelerationGet (int SocketIndex, char * PositionerName, bool * ClosedLoopStatus, double * KP, double * KI, double * KD, double * KS, double * IntegrationTime, double * DerivativeFilterCutOffFrequency, double * GKP, double * GKI, double * GKD, double * KForm, double * FeedForwardGainAcceleration); int __stdcall PositionerCorrectorPIDFFVelocitySet (int SocketIndex, char * PositionerName, bool ClosedLoopStatus, double KP, double KI, double KD, double KS, double IntegrationTime, double DerivativeFilterCutOffFrequency, double GKP, double GKI, double GKD, double KForm, double FeedForwardGainVelocity); int __stdcall PositionerCorrectorPIDFFVelocityGet (int SocketIndex, char * PositionerName, bool * ClosedLoopStatus, double * KP, double * KI, double * KD, double * KS, double * IntegrationTime, double * DerivativeFilterCutOffFrequency, double * GKP, double * GKI, double * GKD, double * KForm, double * FeedForwardGainVelocity); int __stdcall PositionerCorrectorPIDDualFFVoltageSet (int SocketIndex, char * PositionerName, bool ClosedLoopStatus, double KP, double KI, double KD, double KS, double IntegrationTime, double DerivativeFilterCutOffFrequency, double GKP, double GKI, double GKD, double KForm, double FeedForwardGainVelocity, double FeedForwardGainAcceleration, double Friction); int __stdcall PositionerCorrectorPIDDualFFVoltageGet (int SocketIndex, char * PositionerName, bool * ClosedLoopStatus, double * KP, double * KI, double * KD, double * KS, double * IntegrationTime, double * DerivativeFilterCutOffFrequency, double * GKP, double * GKI, double * GKD, double * KForm, double * FeedForwardGainVelocity, double * FeedForwardGainAcceleration, double * Friction); int __stdcall PositionerCorrectorPIPositionSet (int SocketIndex, char * PositionerName, bool ClosedLoopStatus, double KP, double KI, double IntegrationTime); int __stdcall PositionerCorrectorPIPositionGet (int SocketIndex, char * PositionerName, bool * ClosedLoopStatus, double * KP, double * KI, double * IntegrationTime); */ int __stdcall PositionerCorrectorTypeGet (int SocketIndex, char * PositionerName, char * CorrectorType); int __stdcall PositionerCurrentVelocityAccelerationFiltersSet (int SocketIndex, char * PositionerName, double CurrentVelocityCutOffFrequency, double CurrentAccelerationCutOffFrequency); int __stdcall PositionerCurrentVelocityAccelerationFiltersGet (int SocketIndex, char * PositionerName, double * CurrentVelocityCutOffFrequency, double * CurrentAccelerationCutOffFrequency); int __stdcall PositionerEncoderAmplitudeValuesGet (int SocketIndex, char * PositionerName, double * MaxSinusAmplitude, double * CurrentSinusAmplitude, double * MaxCosinusAmplitude, double * CurrentCosinusAmplitude); int __stdcall PositionerEncoderCalibrationParametersGet (int SocketIndex, char * PositionerName, double * SinusOffset, double * CosinusOffset, double * DifferentialGain, double * PhaseCompensation); int __stdcall PositionerErrorGet (int SocketIndex, char * PositionerName, int * ErrorCode); int __stdcall PositionerErrorStringGet (int SocketIndex, int PositionerErrorCode, char * PositionerErrorString); int __stdcall PositionerHardwareStatusGet (int SocketIndex, char * PositionerName, int * HardwareStatus); int __stdcall PositionerHardwareStatusStringGet (int SocketIndex, int PositionerHardwareStatus, char * PositonerHardwareStatusString); int __stdcall PositionerHardInterpolatorFactorGet (int SocketIndex, char * PositionerName, int * InterpolationFactor); int __stdcall PositionerHardInterpolatorFactorSet (int SocketIndex, char * PositionerName, int InterpolationFactor); int __stdcall PositionerMaximumVelocityAndAccelerationGet (int SocketIndex, char * PositionerName, double * MaximumVelocity, double * MaximumAcceleration); int __stdcall PositionerMotionDoneGet (int SocketIndex, char * PositionerName, double * PositionWindow, double * VelocityWindow, double * CheckingTime, double * MeanPeriod, double * TimeOut); int __stdcall PositionerMotionDoneSet (int SocketIndex, char * PositionerName, double PositionWindow, double VelocityWindow, double CheckingTime, double MeanPeriod, double TimeOut); // int __stdcall PositionerPositionCompareGet (int SocketIndex, char * PositionerName, double * MinimumPosition, double * MaximumPosition, double * PositionStep, bool * EnableState); int __stdcall PositionerPositionCompareSet (int SocketIndex, char * PositionerName, double MinimumPosition, double MaximumPosition, double PositionStep); int __stdcall PositionerPositionCompareEnable (int SocketIndex, char * PositionerName); int __stdcall PositionerPositionCompareDisable (int SocketIndex, char * PositionerName); int __stdcall PositionerSGammaExactVelocityAjustedDisplacementGet (int SocketIndex, char * PositionerName, double DesiredDisplacement, double * AdjustedDisplacement); int __stdcall PositionerSGammaParametersGet (int SocketIndex, char * PositionerName, double * Velocity, double * Acceleration, double * MinimumTjerkTime, double * MaximumTjerkTime); int __stdcall PositionerSGammaParametersSet (int SocketIndex, char * PositionerName, double Velocity, double Acceleration, double MinimumTjerkTime, double MaximumTjerkTime); int __stdcall PositionerSGammaPreviousMotionTimesGet (int SocketIndex, char * PositionerName, double * SettingTime, double * SettlingTime); int __stdcall PositionerUserTravelLimitsGet (int SocketIndex, char * PositionerName, double * UserMinimumTarget, double * UserMaximumTarget); int __stdcall PositionerUserTravelLimitsSet (int SocketIndex, char * PositionerName, double UserMinimumTarget, double UserMaximumTarget); int __stdcall MultipleAxesPVTVerification (int SocketIndex, char * GroupName, char * FileName); int __stdcall MultipleAxesPVTVerificationResultGet (int SocketIndex, char * PositionerName, char * FileName, double * MinimumPosition, double * MaximumPosition, double * MaximumVelocity, double * MaximumAcceleration); int __stdcall MultipleAxesPVTExecution (int SocketIndex, char * GroupName, char * FileName, int ExecutionNumber); int __stdcall MultipleAxesPVTParametersGet (int SocketIndex, char * GroupName, char * FileName, int * CurrentElementNumber); int __stdcall SingleAxisSlaveModeEnable (int SocketIndex, char * GroupName); int __stdcall SingleAxisSlaveModeDisable (int SocketIndex, char * GroupName); int __stdcall SingleAxisSlaveParametersSet (int SocketIndex, char * GroupName, char * PositionerName, double Ratio); int __stdcall SingleAxisSlaveParametersGet (int SocketIndex, char * GroupName, char * PositionerName, double * Ratio); int __stdcall XYLineArcVerification (int SocketIndex, char * GroupName, char * FileName); int __stdcall XYLineArcVerificationResultGet (int SocketIndex, char * PositionerName, char * FileName, double * MinimumPosition, double * MaximumPosition, double * MaximumVelocity, double * MaximumAcceleration); int __stdcall XYLineArcExecution (int SocketIndex, char * GroupName, char * FileName, double Velocity, double Acceleration, int ExecutionNumber); int __stdcall XYLineArcParametersGet (int SocketIndex, char * GroupName, char * FileName, double * Velocity, double * Acceleration, int * CurrentElementNumber); int __stdcall XYZSplineVerification (int SocketIndex, char * GroupName, char * FileName); int __stdcall XYZSplineVerificationResultGet (int SocketIndex, char * PositionerName, char * FileName, double * MinimumPosition, double * MaximumPosition, double * MaximumVelocity, double * MaximumAcceleration); int __stdcall XYZSplineExecution (int SocketIndex, char * GroupName, char * FileName, double Velocity, double Acceleration); int __stdcall XYZSplineParametersGet (int SocketIndex, char * GroupName, char * FileName, double * Velocity, double * Acceleration, int * CurrentElementNumber); int __stdcall EEPROMCIESet (int SocketIndex, int CardNumber, char * ReferenceString); int __stdcall EEPROMDACOffsetCIESet (int SocketIndex, int PlugNumber, double DAC1Offset, double DAC2Offset); int __stdcall EEPROMDriverSet (int SocketIndex, int PlugNumber, char * ReferenceString); int __stdcall EEPROMINTSet (int SocketIndex, int CardNumber, char * ReferenceString); int __stdcall CPUCoreAndBoardSupplyVoltagesGet (int SocketIndex, double * VoltageCPUCore, double * SupplyVoltage1P5V, double * SupplyVoltage3P3V, double * SupplyVoltage5V, double * SupplyVoltage12V, double * SupplyVoltageM12V, double * SupplyVoltageM5V, double * SupplyVoltage5VSB); int __stdcall CPUTemperatureAndFanSpeedGet (int SocketIndex, double * CPUTemperature, double * CPUFanSpeed); int __stdcall ActionListGet (int SocketIndex, char * ActionList); int __stdcall ActionExtendedListGet (int SocketIndex, char * ActionList); int __stdcall APIExtendedListGet (int SocketIndex, char * Method); int __stdcall APIListGet (int SocketIndex, char * Method); int __stdcall ErrorListGet (int SocketIndex, char * ErrorsList); int __stdcall EventListGet (int SocketIndex, char * EventList); int __stdcall EventExtendedListGet (int SocketIndex, char * EventList); int __stdcall GatheringListGet (int SocketIndex, char * list); int __stdcall GatheringExtendedListGet (int SocketIndex, char * list); int __stdcall GatheringExternalListGet (int SocketIndex, char * list); int __stdcall GroupStatusListGet (int SocketIndex, char * GroupStatusList); int __stdcall HardwareInternalListGet (int SocketIndex, char * InternalHardwareList); int __stdcall HardwareDriverAndStageGet (int SocketIndex, int PlugNumber, char * DriverName, char * StageName); int __stdcall ObjectsListGet (int SocketIndex, char * ObjectsList); int __stdcall PositionerErrorListGet (int SocketIndex, char * PositionerErrorList); int __stdcall PositionerHardwareStatusListGet (int SocketIndex, char * PositionerHardwareStatusList); int __stdcall GatheringUserDatasGet (int SocketIndex, double * UserData1, double * UserData2, double * UserData3, double * UserData4, double * UserData5, double * UserData6, double * UserData7, double * UserData8); int __stdcall TestTCP (int SocketIndex, char * InputString, char * ReturnString); #ifdef __cplusplus } #endif