Realizing Remote Data Acquisition Based on C/S Structure in LabVIEW

Publisher:WanderlustGlowLatest update time:2011-01-10 Source: 仪表技术Keywords:LabVIEW Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

LabVIEW has powerful remote data acquisition capabilities, and there are four main implementation methods: Method 1, software operation interface sharing method, using RemotePanels technology to achieve remote data acquisition; Method 2, DAQ device sharing method, using RDA technology to achieve remote control of DAQ devices; Method 3, data publishing method, using TCP technology to achieve remote data acquisition; Method 4, data sharing method, using DataSocket technology to achieve remote data acquisition [. Regardless of which method is used, the system consists of a client (Client) and a server (Server) connected through a network, in which the DAQ device is installed on the server, and the client controls the DAQ device on the server through the network to complete data acquisition. The system composition is shown in Figure 1.

System composition

Remote Data Collection Using Remote Panels Technology

Starting from LabVIEW 6.1, LabVIEW has integrated RemotePanels technology, allowing users to directly open and operate the front panel of the VI located on the server computer on the client computer. You can even embed the front panel window of the LabVIEW VI into a web page and operate it directly on the web page. This is a way to share the software operation interface. Write the server software in the usual way to control the DAQ device to complete data acquisition. Through certain settings, publish the front panel of the server software to the client. In this way, users can directly operate the software located on the server on the client to achieve remote data acquisition. It only takes two steps to set up and use Remote Panels in LabVIEW:

The first step is to start the LabV IEW Web Server service on the computer at the LabV IEW Web Server end: Before using Remote Panels on the client, you must first run LabV IEW on the server computer and use the LabV IEW Options configuration dialog box to configure the Web Server's file path and network parameters, client access rights, and VIs access rights. In order to provide web browser access, you must use the Web Publish Tool to publish the web page when configuring the server.

The second step is to connect and run Remote Panels on the client computer. There are two ways to operate Remote Panels: Method 1: Use the Connect to Remote Panels tool in the LabVIEW environment to directly operate Remote Panels. Method 2: Use a web browser to directly operate Remote Panels on a web page. If you enter the server URL in the address bar of the client's web browser, you can directly operate Remote Panels on the web page. In a local area network, the URL format is: http://PcName:Port/ViName.htm; on the Internet, the URL format is: http://IpAddr:Port/ViName.htm. When Remote Panels appears on the browser, you can get control of Remote Panels through the right-click drop-down menu. Using a web browser to operate Remote Panels does not require the installation of LabVIEW, but only requires the installation of a LabVIEW Run-Time Engine. Figure 2 shows a virtual instrument front panel located on a server opened in an IE browser.

Virtual instrument front panel located on the server

LabVIEW's Remote Panels can not only be viewed, but also controlled in the LabVIEW environment or on a browser. This powerful function allows developers to easily create remote applications, allowing users to easily monitor various situations in the office, laboratory, or even production line while sitting in front of their home computers on weekends. The disadvantage of this method is that the test data cannot be obtained on the client side.

Realizing Remote Data Collection Using RDA Technology

Use RDA (Remote Device Access) technology to share devices on the server, and program on the client to directly control the DAQ device on the server to achieve remote data acquisition. RDA programming is exactly the same as using a local DAQ device. The steps to use RDA technology to achieve remote data acquisition in LabVIEW are as follows:

The first step is to configure the RDA server. The RDA server needs to install NI-DAQ6.0 (or higher) and DAQ devices, set the server's IP address, for example 192.168.0.1, and its subnet mask is 255.255.255.0. Then start the RemoteDevice Access Server on the server. If necessary, you can set the RDA access password in the properties dialog box of the DAQ device.

The second step is to set up the client. The RDA client should install the same version of NI-DAQ as the server, otherwise the DAQ device will not be able to connect. Set the client's IP address, for example 192.168.0.2, and its subnet mask is 255.255.255.0. The RDA client is more complicated to set up, and is usually done in the following steps:

In the client's MAX (Measurement & Automation Explorer) directory tree on the left, right-click the Devices and Interfaces item and select "Create New..." in the pop-up menu. In the Create New window, select RDA/Ethernet Device.

Keywords:LabVIEW Reference address:Realizing Remote Data Acquisition Based on C/S Structure in LabVIEW

Previous article:Analysis and Design of Step Wave Generator Based on PSpice
Next article:Design of virtual instrument test system based on engine performance

Recommended ReadingLatest update time:2024-11-16 22:54

Application of LabVIEW in Intelligent Virtual Instrument Simulation
  1 Introduction   In electronic courses, experiments are one of the important teaching methods. Through experiments, students can deepen their understanding of the knowledge they have learned.   However, due to the increasing number of students in recent years, the laboratory equipment and scale are difficult to
[Test Measurement]
Application of LabVIEW in Intelligent Virtual Instrument Simulation
Design of Multi-channel Sequential Control Pulse Generator Based on LabVIEW
0 Introduction In process control and automatic measurement, some timing control pulses are often needed to trigger and shut down the work of different control units and functional components. The generation of timing pulse signals is generally implemented in hardware. In the early days, counters and regist
[Test Measurement]
Design of Multi-channel Sequential Control Pulse Generator Based on LabVIEW
A low-cost LabVIEW experimental teaching system based on MCS51
NI proposed the concept of virtual instruments in the 1970s. Virtual instruments are computer instrument systems designed by users on a computer-based platform, with virtual panels and software to implement test functions. They are the product of the combination of computers and test instruments. The most commonly use
[Power Management]
A low-cost LabVIEW experimental teaching system based on MCS51
CNC machine tool network measurement and control system based on LabVIEW--software design based on B/S mode 1
5 Software Design of Network Measurement and Control System for CNC Machine Tools Based on B/S Mode 5.1 Design of data acquisition, display, storage and playback software for lower-level measurement and control machines The lower-level measurement and control server system software includes two parts: interface inst
[Test Measurement]
CNC machine tool network measurement and control system based on LabVIEW--software design based on B/S mode 1
Development of portable automobile instrument tester based on LabVIEW ---- Scheme and structure 2
  3.1.2 Data Communication (Bus)   Data communication is a form of communication that combines data processing and transmission into one, realizes the reception, storage, processing and transmission of digital information, and controls, verifies and manages the information flow.   Computers are combined with commu
[Test Measurement]
Development of portable automobile instrument tester based on LabVIEW ---- Scheme and structure 2
Implementation of Serial Communication between LabVIEW and STC89C54 MCU
  1. Overview   In modern measurement and control systems, we often use the development and control mode of the host computer and the slave computer. The slave computer is mainly used to collect data, which can be realized through embedded controllers, single-chip microcomputer controllers, PLCs, etc. The host compu
[Microcontroller]
Implementation of Serial Communication between LabVIEW and STC89C54 MCU
Registering the MSComm Control for Use in LabVIEW
    Problem description: When using the MSComm control in LabVIEW before, you can see the MSComm control by directly using Import--ActiveX Control to Palette. Now I have changed computers, and I can't find the MSComm control when I use it again (VB was installed when VS was installed on the original computer, so it can
[Test Measurement]
Design of groundwater level monitoring system based on LM3S615
0 Introduction Groundwater in my country accounts for one-third of the total water resources, and the annual water supply accounts for nearly 20% of the total water supply, playing an important role in supporting economic and social development. Large-scale groundwater development has caused groundwater ove
[Industrial Control]
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号