尝试使用辐射探测器和准直器对老鼠进行成像

问题描述

我正在尝试使用辐射探测器和准直器(带孔的铅块)对放射性小鼠进行成像。我有 2 个旧的 zaber 线性运动电机来移动探测器下方的鼠标。我想弄清楚如何保存控制台中报告的位置和来自探测器的电压信号(指示活动)。我终于可以让电机独立移动,但我无法让系统输出两个电机的位置。在下面的例子中,我让电机向右移动,但我得到了 3 倍相同的位置(设备 1 的位置)。我很感激我是一个完全的菜鸟,但我希望得到一个了解这些命令如何工作的提示。谢谢。

卡洛斯

这是我写的:

//2 old linear motion T-LSM100A
//I am trying to get them to move and report their position
//They move right,but I am only getting the position of the first device always

#template(simple)
var Device1 = PortFacade.GetDevice(1);
Device1.Send(Command.MoveRelative,10000);
Sleep(500);

var currPos1 = Conversation.Request(Command.ReturnCurrentPosition).Data;
Output.WriteLine("Current position is {0} microsteps.",currPos1);
Sleep(500);


var Device2 = PortFacade.GetDevice(2);
Device2.Send(Command.MoveRelative,10000);
Sleep(500);

var currPos2 = Conversation.Request(Command.ReturnCurrentPosition).Data;
Output.WriteLine("Current position is {0} microsteps.",currPos2);
Sleep(500);

var Device3 = PortFacade.GetDevice(2);
Device3.Send(Command.ReturnCurrentPosition);
var currPos3 = Conversation.Request(Command.ReturnCurrentPosition).Data;
Output.WriteLine("Current position is {0} microsteps.",currPos3);
Sleep(500);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...