【机器视觉】 dev_update_var算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
dev_update_var - 開啟或關閉程序運行過程中變量窗口的更新。
02. 簽名
dev_update_var( : : DisplayMode : )
03. 描述
dev_update_var指定程序運行期間變量窗口的行為。 如果DisplayMode被設置為默認的VarRef(‘on’),則變量窗口(圖形和控制變量)的內容每次被程序修改時都會被更新。
如果模式為’off’,則控制變量的值和圖形變量的圖形在運行停止之前不被更新。
為了測量一系列算子的運行時間,應關閉所有更新選項,以減少HDevelop中GUI更新的運行時間的影響。 為此,可以使用算子dev_update_pc,dev_update_time,dev_update_var和dev_update_window或者函數dev_update_on和dev_update_off。
這個選項也可以通過Preferences對話框進行控制:Edit - > Preferences - > Runtime Settings - > Update Variables。
原文描述:
dev_update_var specifies the behaviour of the variable window during program execution. If DisplayMode is set to ‘on’, which is the default, the contents of the variable window (iconic and control variables) is updated each time a variable is modified by the program.
If the mode is ‘off’ the values of the control variables and the icons of the iconic variables are not updated before the execution stops.
For measuring the execution time of a sequence of operators all update options should be switched off in order to reduce the influence of the runtime of GUI updates in HDevelop. For this the operators dev_update_pc, dev_update_time, dev_update_var, and dev_update_window or the procedures dev_update_on and dev_update_off can be used.
This option can also be controlled via the Preferences dialog: Edit -> Preferences -> Runtime Settings -> Update Variables.
04. 注意
此算子不支持代碼導出。
05. 參數
DisplayMode (input_control) string → (string)
Mode for graphic output.
Default value: ‘off’
List of values: ‘off’, ‘on’
HDevelop例程
find_pads.hdev Find pads on a die
display_operators.hdev Visualize results
affine_transform_image.hdev Apply affine transformations to an image
程序示例
06. 結果
如果指定參數的值正確,則dev_update_var返回2(H_MSG_TRUE)。 否則會引發異常并返回錯誤代碼。
07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 dev_update_var算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 dev_unmap_pro
- 下一篇: 【机器视觉】 close_measure