================================================================================
Plug-in Framework
Project : TemperatureSensor_03
Generated on 01 February 2002
================================================================================
The LNS(tm) Device Plug-in Wizard has created this plug-in
application for you. This plug-in software is a fully
functioning LNS device plug-in. You may customize this plug-in
to tailor it to your device and further simplify device
installation for your users. The only required change to
the code generated by the plug-in wizard is to delete
MsgBox() function calls in the ProcessLonMarkObjectCommand()
and ProcessDeviceCommand() functions within fMain.frm. These
MsgBox() calls identify where you can start adding your
customization code.
The following comments describe the code generated by the
plug-in wizard and identify functions that you can customize.
Functions that require changes if you add any controls that
are not added by the plug-in wizard are identified. Refer to
the LNS Plug-In Programmer's Guide for more details about
customizing the code generated by the wizard.
Search for "TO DO:" to find possible changes.
<-- fHidden.frm -->
This form is an invisible container for the ActiveX Common Dialog
control, that is used to select the XIF file. This feature is used by
the RegisterSupportedCommands function if an appropriate DeviceTemplate
is not found within the current network database.
* This module is complete and does not require changes.
<-- fMain.frm -->
The fMain form is where most of the wizard-defined and user-defined action
takes place. The form contains:
1 Tabbed Dialog Control 6.0 (SP5). This control accommodates the elements
used by the monitoring and control feature provided by the plug-in.
N text control(s): When generating a user interface with the user interface
editor, a text control is added for each network variable and
configuration property, grouped in tabs according to your selection
in the user interface editor.
Apply and Cancel buttons.
An EchLog control: This is an ActiveX control named EchLog, similar to a ListBox.
The EchLog control is used to record all user and system events.
An EchStsBar control: This is an ActiveX control named EchStsBar, similar to a
standard status bar. EchStsBar displays the device name, the device's
state, the functional blocks, and status and alarm information
for each functional block.
Device Template Label. The device template label displays the name of the LNS
device template the plug-in software applies to.
The Wizard generates the following code:
ProcessLonMarkObjectCommand or ProcessDeviceCommand:
Handlers to process a command that applies to a functional block
(LcaLonMarkObject), or an entire device (LcaAppDevice), respectively.
The default implementation contains code to perform a complete resource
rile look-up to adjust the scope of the implemented functional blocks.
It also contains pre-defined code to set the device template label and
to initialize the device.
Also contains a MsgBox() function call, reminding you that these handlers
are subject to review and enhancement; at a minimum, you must remove the
MsgBox() function calls.
* TO DO: You can add code to enhance the plug-in functionality and to
tailor the plug-in software to meet the requirements of your device and
its intended user.
txtNvi_KeyPress and txtCp_KeyPress event handlers:
These event handlers mark changes in the relevant text controls when using
the wizard-generated user-interface. The plug-in code tries to commit
pending changes when Apply is clicked.
* TO DO: You must add similar handlers for any controls that you add to
the interface and were therefore not added by the plug-in wizard. You
must add code for your controls to commit pending changes from within the
Apply handler.
cmdApply_Click and cmdCancel_Click:
Commit or cancel the changes pending in the altered text controls.
* TO DO: Add your Apply and Cancel methods if you add any controls that
are not added by the plug-in wizard. For example, you may add controls for
monitoring and control network variable fields or configuration property
fields.
EnableMonitor:
Initialize monitoring for network variables and configuration properties.
* This code is complete and does not normally require changes.
smnuMonitor_Click:
Menu handler to control monitoring of network variables and configuration
properties.
* This code is complete and does not normally require changes.
EnableControls:
Prepares the text controls that are used for monitoring.
* TO DO: Add your own code if you add any controls that are not added by the
plug-in wizard.
tabData_Click:
This click handler is being activated when the tab page changes, and ensures
that only items on the currently visible tab page are monitored.
* TO DO: Modify this code if you wish to permanently monitor any network
variables. Be sure to manage your network bandwidth utilization if you
permanently enable monitoring on many network variables.
SelectActiveTab:
Set the active tab during start-up. The plug-in attempts to set the tab to
the most appropriate page. In case all network variables and configuration
properties that belong to a single functional block are hosted on the same
tab page, the plug-in will then automatically select this page whenever it
receives a command associated with the relevant functional block. It might
start with the incorrect page if the network variable or configuration
property that belong to one functional block are being spread across multiple
tab pages.
* TO DO: You can modify the code if the wrong tab is selected when you have
multiple tab pages with network variables and configuration properties
from the same functional block.
DrfLookUp:
Function to set the functional block scope using the LNS LonMark Objects Mode
property.
* This code is complete and does not normally require changes.
lcaOS_OnNvUpdateError:
Log errors for monitored network variables.
* This code is complete and does not normally require changes.
lcaOS_OnNetworkVariableUpdate:
Calls your update handler.
* This code is complete and does not normally require changes.
NetworkVariableUpdateReceived:
This is a default implementation of an update handler that displays the new
values in simple text controls.
* TO DO: Changes are not required, but you can customize the code and user
interface to your specifics needs.
InitDevice:
Used to determine the device state. Also collects initial values for items
being monitored.
* TO DO: Changes are not required, but you can add your own, device-specific,
initialization code here, if any.
SetDevTemplateLabel:
Set the caption for the Device Template label.
* This code is complete and does not require changes.
ReadInitValues:
Adjust formatting options for network variables and configuration properties,
and retrieve initial values for configuration properties.
* TO DO: Changes are not required, but you can modify the code as needed for
a different format or for using custom controls.
<-- fProgress.frm -->
The form fProgress.frm is a pop up dialog to show status or progress during the plug-in
methods. You should show this progress screen for any function that requires a noticeable
execution time such as, for example, downloading an application image to a LonWorks device.
* TO DO: Changes are not required, but you can customize this form with your logo or
progress icon.
<-- fRegisterPlugIn.frm -->
This is the interface provided for the plug-in when it runs as a standalone executable,
offering a simple user interfac
没有合适的资源?快使用搜索试试~ 我知道了~
LonWorks-Temperature-Sensor.rar_lonworks_lonwork学习
共69个文件
h:6个
nc:5个
frm:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 129 浏览量
2022-09-14
22:20:51
上传
评论
收藏 259KB RAR 举报
温馨提示
LonWorks网络学习工具NodeBuilder,温度传感器部分的源码。
资源详情
资源评论
资源推荐
收起资源包目录
LonWorks-Temperature-Sensor.rar (69个子文件)
LonWorks Temperature Sensor
hvacTempSensor.h 3KB
common.nc 8KB
Release
Temperature Sensor.XIF 1KB
Temperature Sensor.NXE 8KB
Temperature Sensor.NEI 135KB
Temperature Sensor.APB 4KB
IM
Temperature Sensor.bf2 341B
Temperature Sensor.dep 4KB
Temperature Sensor.ns 45KB
Temperature Sensor.dbt 44KB
Temperature Sensor.nldep 2KB
Temperature Sensor.no 35KB
Temperature Sensor.dbg 40KB
Temperature Sensor.bif 911B
Temperature Sensor.nkdep 374B
Temperature Sensor.ncdep 5KB
Temperature Sensor.nxe 8KB
Temperature Sensor.nadep 847B
Temperature Sensor.nxdep 3KB
Temperature Sensor.phd 511B
Temperature Sensor.nxr 13B
Temperature Sensor.log 6KB
Temperature Sensor.XFB 786B
hvacTempSPSensor.nc 5KB
hvacTempSPSensor.h 2KB
common.h 5KB
Filesys.h 4KB
Temperature Sensor.h 3KB
Temperature Sensor.nc 4KB
NodeObject.h 3KB
Plug-in
fRegisterPlugIn.frx 1KB
TemperatureSensor_03.vbw 327B
LnsPluginAPI.cls 18KB
fRegisterPlugIn.frm 4KB
MMain.bas 80KB
fHidden.frm 3KB
fProgress.frx 9KB
CRegistry.cls 13KB
WalkDir.bas 5KB
TemperatureSensor_03.vbp 2KB
modFramework.bas 14KB
fMain.frx 1KB
fProgress.frm 3KB
fMain.frm 44KB
ReadMe.txt 11KB
Development
Temperature Sensor.XIF 1KB
Temperature Sensor.NXE 11KB
Temperature Sensor.NEI 135KB
Temperature Sensor.APB 5KB
IM
Temperature Sensor.bf2 341B
Temperature Sensor.dep 4KB
Temperature Sensor.ns 52KB
Temperature Sensor.dbt 44KB
Temperature Sensor.nldep 2KB
Temperature Sensor.no 47KB
Temperature Sensor.dbg 41KB
Temperature Sensor.bif 911B
Temperature Sensor.nkdep 378B
Temperature Sensor.ncdep 5KB
Temperature Sensor.nxe 11KB
Temperature Sensor.nadep 863B
Temperature Sensor.nxdep 3KB
Temperature Sensor.phd 515B
Temperature Sensor.nxr 13B
Temperature Sensor.log 6KB
Temperature Sensor.XFB 786B
NodeObject.nc 8KB
hvacTempSensor.nc 7KB
Temperature Sensor.NbDt 10KB
共 69 条
- 1
四散
- 粉丝: 49
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0