Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Source: National Instruments Survey of Data Acquisition Customers and Prospects 2005
Challenge: Building an advanced monitoring system that can survive being mounted directly to an oil well servicing pump in a rugged environment while performing advanced analysis on sensor data.
Products: NI CompactRIO, LabVIEW, LabVIEW RealTime and LabVIEW FPGA modules, and NI Single-Board RIO Key Benefit: The high-speed I/O and analysis catch the momentary pressure spikes and vibration indications of the pumps. LabVIEW has made the software development side much quicker than our past experiences in C-based programming. What most C programmers take two years to do, we can accomplish in a couple of months. We can use that time savings to get to market quicker and capitalize on our competitors lag time. Robert Stewart, Supreme Electrical Services Inc.
Agenda
Framework Definition Framework Outline Demo - Overview Framework Modules Demo Adding Your Own Display Windows Additional Systems Engineering Components Networking Your Data Display Substitute Other Options for Logging To Disk References
Four Processes
1. Handle all GUI events from the main user interface. 2. Process messages from user interaction or other external processes. Additional display windows or plug-ins can be launched from this process. 3. Acquire data continuously. Data is sent via a queue to the data logging process and is also published via a notifier for any display windows. 4. Log data.
Inter-Loop Communication
Two types of data passed between processes:
Commands Data
Commands are sent using the Asynchronous Message Communication (AMC) library Time Domain Data is sent using two methods:
Queues (lossless) Notifiers (potentially lossy)
Demonstration
10
11
Configuration Module
Provides the user a way to configure the system via
Front Panel Interaction Loading saved configurations from file Manipulating configurations currently in memory
12
13
14
15
16
17
18
19
Between Processes
20
21
Processing Messages
22
One to One
Network Streams STM (Simple TCP Messaging)
23
24
25
Machine 2
Client Readers
4 5 6 7 1 2 3 4
Client Writers
1 2 3 5 6 7 4
26
Machine 2
Reader Endpoint
5 4 3 2 1 5 4 3
27
28
ASCII: Characteristics
Human readable text file Data represented as string Common for low speed DAQ
29
30
Binary: Characteristics
Not human readable Common for high speed DAQ Common for multiple channel DAQ
31
32
TDMS: Characteristics
NIs recommended file format Binary header Binary data storage Optimized for high-speed streaming Versatile data buffers Recommended for all DAQ
33
34
35
36
37
38
Examples
1. Writing data to an ASCII file with timestamps 2. Writing waveform data to file with timestamps 3. Using the Microsoft Report Generation Toolkit
39
40
Additional References
TDM Streaming (TDMS) VIs
http://zone.ni.com/devzone/cda/tut/p/id/3539
Creating a Report in Microsoft Excel Using the LabVIEW Report Generation Toolkit
http://zone.ni.com/devzone/cda/tut/p/id/3178
41
Review
Framework Definition Framework Outline Demo - Overview Framework Modules Demo Adding Your Own Display Windows Additional Systems Engineering Components Networking Your Data Display Other Options for Logging To Disk References
42
Questions?
Kitt Farrar Cell: (513) 894-2321 kitt.farrar@ni.com