跟踪Zaber设备移动时的位置 [英] Track position of a Zaber device as it moves

查看:95
本文介绍了跟踪Zaber设备移动时的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写LabVIEW VI来移动Zaber线性执行器,我想每移动几毫秒记录一次设备的位置.

我已经安装了 Zaber的LabVIEW驱动程序,并使用其示例来使我的执行器运动,但是在这些移动过程中我如何读取位置?

解决方案

在移动过程中,可以通过三个选项来跟踪我们其中一个设备的位置:从起点和终点进行插值,使用计时器查询位置或打开每250毫秒报告一次位置的设备模式.可以从我们的网站下载示例. >

最简单的方法是根据运动的开始和停止位置对位置进行插值.如果您的加速度相当高,那么这是一个很好的第一次尝试.错误的来源是运动开始和结束时的加速和减速,以及串行通信中的延迟.

下一个选项是使用计时器,每隔几毫秒查询一次设备的位置.优点是时间安排灵活.您可以将更新时间设置为任何所需的时间.当然,串行通讯会限制您查询位置的速度.从理论上讲,您可以降低到大约12毫秒,但是15毫秒会给您一些喘息的空间.

最后一个选项是打开每250毫秒发送一次位置更新的设备模式.这样做的好处是时序会稍微准确一些,因为您仅在一个方向上有通信延迟.在较新的A系列设备中,您可以更改更新时间,但是T系列设备始终使用250毫秒.

I'm writing a LabVIEW VI to move a Zaber linear actuator, and I want to record the device's position every few milliseconds as it moves.

I've installed Zaber's LabVIEW driver and used its examples to get my actuator moving, but how can I read the position during those moves?

解决方案

There are three options for tracking the position of one of our devices during a move: interpolate from the start and end points, poll the position using a timer, or turn on a device mode that reports the position every 250 ms. Examples that demonstrate the second and third options can be downloaded from our web site.

The easiest method is to just interpolate the position based on where the motion started and stopped. If your acceleration is reasonably high, then this makes a good first attempt. Sources of error are the acceleration and deceleration at the start and end of the motion, as well as the delay in serial communications.

The next option is to use a timer and query the device's position every few milliseconds. The advantage is that the timing is flexible. You can set the update period to anything you want. Of course, the serial communication limits how fast you can query the position. Theoretically, you can get down to about 12 ms, but 15 ms would give you a bit of breathing room.

The last option is to turn on a device mode that sends a position update every 250 ms. The advantage is that the timing is slightly more accurate, since you only have a communication delay in one direction. In more recent A-series devices, you can change the update period, but the T-series devices always use 250 ms.

这篇关于跟踪Zaber设备移动时的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆