THORLABS-BSC203 ActiveX控件方法一览

2021/7/20 MATLABActiveX控件设备开发THORLABS

# 一、方法

名称 参数 返回值类型 方法作用
CalibrateEnc (handle, int32, bool) int32 校准配备编码器的载物台
DeleteParamSet (handle, ustring) int32 删除特定控制器的存储设置
DisableHWChannel (handle, int32) int32 禁用驱动器输出
DoEvents (handle) int32 允许客户端应用程序处理其他活动
EnableHWChannel (handle, int32) int32 启用驱动器输出
GetAbsMovePos (handle, int32, single) [int32, single] 获取绝对移动位置
GetAbsMovePos_AbsPos (handle, int32) single 获取绝对移动位置(由值返回)
GetBLashDist (handle, int32, single) [int32, single] 获取齿隙距离
GetBLashDist_BLashDist (handle, int32) single 获取齿隙距离(通过值返回)
GetCtrlStarted (handle, bool) [int32, bool] 获取ActiveX控件启动标志
GetDispMode (handle, int32) [int32, int32] 获取图形用户界面显示模式
GetEncCalibTableParams (handle, int32, int32, single, int32, int32) [int32, int32, single, int32, int32] 获取配备编码器的级的编码器校准表参数
GetEncPosControlParams (handle, int32, int32, int32, bool) [int32, int32, int32, bool] 获取编码器配备级的编码器位置控制参数
GetEncPosCorrectParams (handle, int32, int32, int32, int32, int32) [int32, int32, int32, int32, int32] 获取配备编码器的载物台的编码器位置校正参数
GetHomeParams (handle, int32, int32, int32, single, single) [int32, int32, int32, single, single] 获取归位序列参数
GetHomeParams_HomeVel (handle, int32) single 获取归航速度参数(由值返回)
GetHomeParams_ZeroOffset (handle, int32) single 获取归位零偏移参数(由值返回)
GetHWCommsOK (handle, bool) [int32, bool] 获取硬件通信正常标志
GetHWLimSwitches (handle, int32, int32, int32) [int32, int32, int32] 获取限位开关配置设置
GetJogMode (handle, int32, int32, int32) [int32, int32, int32] 获取点动按钮操作模式
GetJogMode_Mode (handle, int32) int32 获取点动按钮操作模式(通过值返回)
GetJogMode_StopMode (handle, int32) int32 获取慢速按钮停止模式(由值返回)
GetJogStepSize (handle, int32, single) [int32, single] 获取慢跑步长
GetJogStepSize_StepSize (handle, int32) single 获取缓进步长(由值返回)
GetJogVelParams (handle, int32, single, single, single) [int32, single, single, single] 获取慢跑速度分布参数
GetJogVelParams_Accn (handle, int32) single 获取慢跑加速度参数(由值返回)
GetJogVelParams_MaxVel (handle, int32) single 获取最大速度参数(由值返回)
GetMotorParams (handle, int32, int32, int32) [int32, int32, int32] 获取电机传动参数
GetParentHWInfo (handle, int32, int32) [int32, int32, int32] 获取主机控制器的标识信息
GetPosition (handle, int32, single) [int32, single] 获取当前电机位置
GetPosition_Position (handle, int32) single 获取当前电机位置(由值返回)
GetPositionEx (handle, int32, single, single) [int32, single, single] 获取当前电机位置
GetPositionEx_UncalibPosition (handle, int32) single 获取当前未校准的电机位置(由值返回)
GetPositionOffset (handle, int32, single) [int32, single] 获取电机位置偏移量
GetRelMoveDist (hendle, int32, single) [int32, single] 获取相对移动距离
GetRelMoveDist_RelDist (handle, int32) single 获取相对移动距离(通过引用返回)
GetStageAxis (handle, int32, ustring, int32, int32) [int32, ustring, int32, int32] 获取与受控电机相关联的载物台类型信息
GetStageAxisInfo (handle, int32, single, single, int32, single, int32) [int32, single, single, int32, single, int32] 获取操作台轴参数
GetStageAxisInfo_MaxPos (handle, int32) single 获取操作台最大位置(由值返回)
GetStageAxisInfo_MinPos (handle, int32) single 获取操作台最小位置(由值返回)
GetStatusBits_Bits (handle, int32) int32 获取以32位整数编码的控制状态位(由值返回)
GetTriggerParams (handle, int32, int32, int32) [int32, int32, int32] 获取移动触发参数
GetVelParamLimits (handle, int32, single, single) [int32, single, single] 获取最大速度剖面参数限制
GetVelParams (handle, int32, single, single, single) [int32, single, single, single] 获取速度剖面参数
GetVelParams_Accn (handle, int32) single 获取移动加速度(由值返回)
GetVelParams_MaxVel (handle, int32) single 获取最大速度(由值返回)
Identify (handle) int32 通过闪烁设备指示灯来识别控制器
LLGetDigIPs (handle, int32) [int32, int32] 获取用32位整数编码的数字输入状态
LLGetStatusBits (handle, int32, int32) [int32, int32] 获取用32位整数编码的控制器状态
LLSetGetDigOPs (handle, bool, int32) [int32, int32] 设置或获取以32位整数编码的用户数字输出位
LoadParamSet (handle, ustring) int32 加载特定控制器的存储设置
MoveAbsolute (handle, int32, bool) int32 启动绝对移动
MoveAbsoluteEnc (handle, int32, single, single, int32, bool) int32 为配备编码器的载物台启动指定位置的绝对移动
MoveAbsoluteEx (handle, int32, single, single, bool) int32 启动指定位置的绝对移动
MoveAbsoluteRot (handle, int32, single, single, int32, bool) int32 启动旋转平台指定位置的绝对移动
MoveHome (handle, int32, bool) int32 启动归位序列
MoveJog (handle, int32, int32) int32 开始慢跑
MoveRelative (handle, int32, bool) int32 开始相对移动
MoveRelativeEnc (handle, int32, single, single, int32, bool) int32 为配备编码器的载物台启动指定距离的相对移动
MoveRelativeEx (handle, int32, single, single, bool) int32 启动指定距离的相对移动
MoveVelocity (handle, int32, int32) int32 开始一个没有终点的匀速运动
SaveParamSet (handle, ustring) int32 保存特定控制器的设置
SetAbsMovePos (handle, int32, single) int32 设置绝对移动位置
SetBLashDist (handle, int32, single) int32 设置齿隙距离
SetChannelSwitch (handle, int32) int32 设置图形用户界面通道开关位置
SetDispMode (handle, int32) int32 设置图形用户界面显示模式
SetEncCalibTableParams (handle, int32, int32, single, int32, int32) int32 为配备编码器的工作台设置编码器校准表参数
SetEncPosControlParams (handle, int32, int32, int32, bool) int32 为配备编码器的工作台设置编码器位置控制参数
SetEncPosCorrectParams (handle, int32, int32, int32, int32, int32) int32 为配备编码器的载物台设置编码器位置校正参数
SetHomeParams (handle, int32, int32, int32, single, single) int32 设置归位序列参数
SetHWLimSwitches (handle, int32, int32, int32) int32 设置限位开关配置设置
SetJogMode (handle, int32, int32, int32) int32 设置点动按钮操作模式
SetJogStepSize (handle, int32, single) int32 设置慢跑步长
SetJogVelParams (handle, int32, single, single, single) int32 设置慢跑速度分布参数
SetMotorParams (handle, int32, int32, int32) int32 设置电机传动参数
SetPositionOffset (handle, int32, single) int32 设置电机位置偏移
SetPotParams (handle, int32, int32, single, int32, single, int32, single, int32, single) int32 设置速度控制电位计参数(立方体驱动器)
SetRelMoveDist (handle, int32, single) int32 设置相对移动距离
SetStageAxisInfo (handle, int32, single, single, int32, single, int32) int32 设置载物台轴参数
SetTriggerParams (handle, int32, int32, int32) int32 设置移动触发参数
SetVelParams (handle, int32, single, single, single) int32 设置速度剖面参数
ShowSettingsDlg (handle) int32 显示图形用户界面设置面板
StartCtrl (handle) int32 启动ActiveX控件(开始与控制器通信)
StopCtrl (handle) int32 停止活动控件(停止与控制器的通信)
StopImmediate (handle, int32) int32 立即停止电机运动
StopProfiled (handle, int32) int32 以减速方式停止电机运动

# 二、属性

属性名 备注
APTHelp 指定用户按F1键时将访问的帮助文件。如果APTHelp设置为“真”,将启动主服务器帮助文件MG17Base
DisplayMode 允许设置/读取虚拟显示面板的显示模式
HWSerialNum 指定要与ActiveX控件实例关联的硬件单元的序列号