连续采集相机,并通过dm-script进行无模式对话框 [英] Continious camera acquisition accompanied with a modeless dialog by dm-script

查看:122
本文介绍了连续采集相机,并通过dm-script进行无模式对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个DM脚本,像VIEW模式一样,连续获取相机图像.在我的计划中,连续摄影机的获取是通过按下位于UIframe对话框中的开始"按钮来开始的;同时也会显示无模式对话框.当按下对话框上的确定"按钮时,连续针刺停止.对于这种脚本,我认为需要后台线程.但是,我对这种后台运行没有足够的了解.

I would like to make a DM script acquiring camera images continuously, like VIEW mode. In my plan, the continious camera acquisition is start when START button located at an UIframe dialog is pressed; and a modeless dialog is also shown simultaneously. The continuous acuisition is stopped when the OK button located at the dialog is pressed. For this kind of scripts, I think a background thread is required. However, I don't have enough knowledge about such a background running.

如果您分享一些智慧,将不胜感激.提前非常感谢您.

It will be appreciated if you share some wisdom. Thank you very much in advance.

推荐答案

连续摄像机采集实际上与脚本中的后台线程无关,而是需要将硬件设置为连续读出模式. 到目前为止,官方脚本API尚不支持此功能.

Continuous camera acquisition has actually nothing to do with background-threading in scripting, but rather requires setting the hardware into a continuous readout mode. This functionality is no supported by the official scripting API up to now.

但是,这里存在一个扩展的,面向对象的脚本API,该API提供了对摄像机的更深入的控制.您需要在DM脚本的面向对象编码风格上具有多种用途才能使用它,并且需要与Gatan联系以可能访问此脚本API,因为它不受官方支持.

However, there exits an extended, object-oriented scripting API which gives a more in-depth control over cameras. You will need to be versatile in the object-oriented coding style of DM-scripting to use it, and you will need to get in contact with Gatan to possibly get access to this script API, as it is not officially supported.

您可能要使用Gatan主页上的支持请求表格. (页面底部的按钮)

You may want to use the support-request form on the Gatan homepage for this. (button on bottom of page)

这篇关于连续采集相机,并通过dm-script进行无模式对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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