没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Getting Started with the LabVIEW
™
Touch Panel
Module
The LabVIEW Touch Panel Module extends the LabVIEW graphical development environment to
Touch Panel devices so you can create human-machine interface (HMI) applications for Touch Panel
devices running Windows CE or Windows XP Embedded. You can create custom touch panel displays
to communicate with National Instruments embedded real-time platforms, such as Compact FieldPoint,
CompactRIO, and Compact Vision System.
This manual contains installation instructions for additional tools you might need to use with the Touch
Panel Module and a tutorial that shows you how to create a LabVIEW project and build, run, deploy,
and debug a Touch Panel application. Refer to the LabVIEW Touch Panel Module Readme, available
by selecting Start»All Programs»National Instruments»LabVIEW»Readme and opening
readme_TouchPanel.html, for system requirements and instructions about installing the Touch Panel
Module.
Contents
Installing Additional Tools...................................................................................................................1
NI-DAQmx Base..........................................................................................................................2
NI TPC Service Support...............................................................................................................2
Shared Variable Support (Windows CE)......................................................................................2
PNG Image Support (Windows CE).............................................................................................3
NI-VISA Support (Windows CE).................................................................................................4
x86 Target Support for Third Parties (Windows CE)...................................................................4
Windows CE Tutorial...........................................................................................................................4
Conguring the Windows CE Device to Use the NI TPC Service...............................................4
Creating the LabVIEW Project.....................................................................................................5
Creating the Build Specication...................................................................................................9
Building the VI into an Application and Deploying...................................................................12
Closing the Application..............................................................................................................13
Debugging the Application.........................................................................................................13
XP Embedded Tutorial........................................................................................................................17
Creating the LabVIEW Project...................................................................................................17
Creating the Build Specication.................................................................................................21
Building the VI into an Application and Deploying...................................................................24
Debugging the Touch Panel Application....................................................................................25
Related Documentation.......................................................................................................................29
Installing Additional Tools
After installing the Touch Panel Module, you might need to install additional tools on the target depending
on the functionality you need.
NI-DAQmx Base
You can download the latest version of NI-DAQmx Base for use with Touch Panel devices from the
National Instruments Web site. After you complete the NI-DAQmx Base installation, you must copy
the driver les to the device.
Complete the following steps to install NI-DAQmx Base on the Touch Panel device.
1. Select Start»Programs»National Instruments»NI-DAQmx Base»Utilities.
2. Launch the Driver Installation utility that corresponds to the Touch Panel device.
3. Check the device screen to see if any additional steps are requested, such as replacing an older
driver.
Refer to the NI-DAQmx Base Readme and the NI-DAQmx Base 3.x Getting Started Guide for more
information about NI-DAQmx Base.
NI TPC Service Support
The NI TPC Service is an Ethernet-based service that you can use to deploy, run, and debug Touch Panel
applications. Use the NI TPC Service instead of ActiveSync if you are using Ethernet and need to deploy
a Touch Panel application to multiple Touch Panel targets. If you are using third-party devices or your
NI Touch Panel device does not have the NI TPC Service installed, you must install the NI TPC Service
on the device before you can use the NI TPC Service. Most NI Touch Panel devices include the NI TPC
Service by default.
Windows CE Targets
Complete the following steps to install support for the NI TPC Service on a Touch Panel target.
1. Depending on which type of target you are using, use FTP or an external storage device to copy
NITPCService.CAB from the labview\PDA\Utilities\NITPCService\ARM directory or
labview\PDA\Utilities\NITPCService\x86 directory to any location on the Touch Panel
device.
2. Run the .CAB le on the Touch Panel device to install the NI TPC Service.
3. For NI TPC devices, use the default installation location. Tap the <Enter> key to accept the default
installation location. For third-party devices, install the service in a non-volatile directory on the
device.
Third-Party XP Embedded Targets
You must install the LabVIEW Run-Time Engine on the Touch Panel target before you can install the
NI TPC Service. An installer for the LabVIEW Run-Time Engine is located on the LabVIEW DVD or
CD. Refer to the National Instruments Web site to download the latest version and other versions of the
LabVIEW Run-Time Engine.
After you install the LabVIEW Run-Time Engine on the Touch Panel target, install the NI TPC Service
from NI_TP_Service\NITPCService.msi, which is located in the same directory as the setup.exe
you used to install the Touch Panel Module.
Shared Variable Support (Windows CE)
If you are using third-party devices or your NI Touch Panel device does not have shared variable support,
you must install the latest version of shared variable support on the device before you can use front panel
data binding and Shared Variable nodes in Touch Panel applications.
Note Most NI Touch Panel devices include the latest version of shared variable support, so
you do not need to complete the following steps. If you have an NI TPC-2006 device and you
Getting Started with the LabVIEW Touch Panel
Module
2 ni.com
downloaded the improved display driver from the National Instruments KnowledgeBase at
ni.com, you also do not need to complete the following steps.
Note Shared variables are not supported on Windows CE 4.x x86 Touch Panel targets. Shared
variables are supported on Windows CE 5.0 and later x86 targets.
Using ActiveSync/FTP
Complete the following steps to install or uninstall support for shared variables on a Touch Panel target
using ActiveSync/FTP.
1. Connect the device to the host computer using ActiveSync/FTP.
2. Navigate to and run labview\PDA\Utilities\Variables\ARM\Setup.exe or
labview\PDA\Utilities\Variables\x86\Setup.exe, depending on which type of target
you are using.
3. For NI TPC devices, use the default installation location. For third-party devices, install the service
in a non-volatile directory on the device.
Using the NI TPC Service
Complete the following steps to install or uninstall support for shared variables on a Touch Panel target
using the NI TPC Service.
1. In LabVIEW, right-click the Touch Panel target in the Project Explorer window and select
Install»Support for Shared Variables (ARM) from the shortcut menu.
2. For NI TPC devices, use the default installation location. For third-party devices, install the service
in a non-volatile directory on the device.
PNG Image Support (Windows CE)
If you are using third-party devices or your NI Touch Panel device does not support PNG images, you
must install support for PNG images on the device if the VI contains PNG images in the user interface.
Note Most NI Touch Panel devices include support for PNG images, so you do not need to
complete the following steps. If you have an NI TPC-2006 device and you downloaded the
improved display driver from the National Instruments KnowledgeBase at ni.com, you also
do not need to complete the following steps.
Using ActiveSync/FTP
Complete the following steps to install or uninstall support for PNG images on a Touch Panel device
using ActiveSync/FTP.
1. Connect the device to the host computer using ActiveSync/FTP.
2. Navigate to and run labview\PDA\Utilities\LVPNG\ARM\Setup.exe or
labview\PDA\Utilities\LVPNG\x86\Setup.exe, depending on which type of target you are
using.
©
National Instruments Corporation 3 Getting Started with the LabVIEW Touch Panel
Module
3. For NI TPC devices, use the default installation location. For third-party devices, install the service
in a non-volatile directory on the device.
Tip You also can right-click the target in the Project Explorer window in LabVIEW and
select Install»Support for PNG Images (ARM) from the shortcut menu.
Using the NI TPC Service
Complete the following steps to install or uninstall support for PNG images on a Touch Panel target
using the NI TPC Service.
1. In LabVIEW, right-click the Touch Panel target in the Project Explorer window and select
Install»Support for PNG Images (ARM) from the shortcut menu.
2. For NI TPC devices, use the default installation location. For third-party devices, install the service
in a non-volatile directory on the device.
NI-VISA Support (Windows CE)
You must install NI-VISA on the target to use VISA in Touch Panel applications. If you did not install
NI-VISA when you installed the Touch Panel Module, select Start»All Programs»National
Instruments»VISA and select Windows CE for ARM Driver Installation or Windows CE for x86
Driver Installation, depending on which type of target you are using.
Tip You also can right-click the target in the Project Explorer window in LabVIEW and
select Install»Support for NI-VISA (ARM) from the shortcut menu.
x86 Target Support for Third Parties (Windows CE)
The Touch Panel Module installs support for ARM Touch Panel targets and Windows CE 5.0 x86 Touch
Panel targets. If you need support for x86 Touch Panel targets running Windows CE 4.2, install the
following Microsoft eMbedded Visual Tools:
• Microsoft eMbedded Visual C++ 4.0
• Microsoft eMbedded Visual C++ SP 4 or later
• SDK for Windows Mobile 2003-based Pocket PCs
Refer to the National Instruments KnowledgeBase at ni.com/info and enter the Info Code tpcevc
for the most recent information about downloading and installing the Microsoft eMbedded Visual Tools.
Windows CE Tutorial
Use this tutorial to learn how to congure a Touch Panel Windows CE device to use the NI TPC Service;
how to use the Touch Panel Project Wizard to create a project; and how to build, deploy, run, and debug
a Touch Panel application.
The VI in this tutorial simulates setting a temperature, displaying the current temperature in a graph and
on a thermometer, and indicating if the temperature is not in range.
Configuring the Windows CE Device to Use the NI TPC Service
Note If you want to use ActiveSync instead of the NI TPC Service, you must use a USB or
serial connection to connect the Touch Panel device to the host computer. If you use a serial
cable, connection time is longer.
Complete the following steps to congure the Touch Panel device to use the NI TPC Service.
1. Ensure the host and target are on the same subnet.
Getting Started with the LabVIEW Touch Panel
Module
4 ni.com
2. Enable FTP on the Touch Panel device. Refer to the National Instruments Web site at ni.com/info
and enter the Info Code ex6pwq for the most recent information about conguring NI TPC devices
to use FTP. For third-party devices, refer to your device documentation.
3.
Install the NI TPC Service on the Touch Panel target. Refer to the NI TPC Service Support section
for more information about installing the NI TPC Service on Touch Panel targets.
4. Use the NI TPC Service Manager to congure the service to run on the Touch Panel target.
a. Select Start»All Programs»National Instruments»NI TPC Service»NI TPC Service
Manager to launch the NI TPC Service Manager. The manager checks the status of the NI
TPC Service and displays the status information.
b. Tap the Start button to start the NI TPC Service if the NI TPC Service is not running.
Creating the LabVIEW Project
Use LabVIEW projects to group together LabVIEW les and non-LabVIEW les, create build
specications for building a Touch Panel VI into an application, and deploy the application to the target.
You must use a project to build a Touch Panel VI into an application.
Using the Touch Panel Project Wizard, complete the following steps to create a LabVIEW project, add
the target, and add an existing VI to the project.
1. Launch LabVIEW. In the Getting Started window, select Touch Panel Project from the Targets
pull-down menu. Click the Go button to launch the Touch Panel Project Wizard.
2. Dene the project information as shown in Figure 1.
a. Select New Touch Panel project, import VI from the Project type pull-down menu to create
the LabVIEW project using an existing VI.
Tip The blank VI project type creates a project with a new Touch Panel template
VI rather than importing an existing VI.
b. Specify a project name and the location where you want to save the project and the VI in the
Project location text box. Save the project to a location other than the default location so you
do not overwrite the shipping example with your changes. The default project name is
Untitled project.lvproj. For this tutorial, name the project Touch Panel
Tutorial.lvproj in the Project location text box.
c. Click the Browse button next to the VI path text box and navigate to
labview\examples\TouchPanel\tutorial\Touch Panel Tutorial.vi to select the
VI to import. Click the OK button to add the VI to the project you are creating.
©
National Instruments Corporation 5 Getting Started with the LabVIEW Touch Panel
Module
剩余29页未读,继续阅读
资源评论
- WANWU2013-06-02英文版的,慢慢看,还是有用处的。
- lipeng_qiu2012-08-18非常经典,因为它是labview的官方文档 touch panel 的入门介绍
- 微豆2012-11-26英文版的,杯具了,要慢慢看,还真没用过LabVIEW写触摸板程序。
- cyc_cheng2012-12-15英文版...郁闷了
yufu665
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功