Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 27, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Running Multiple Tasks

10 ratings | 4.00 out of 5
Print

Downloads

Filename: multtask.llb
Requirements: View

This example shows different approaches to designing an application. The attached library contains three top-level VIs that accomplish three tasks each: acquire data, analyze data, and present data. The acquired data is simulated, so you do not need a DAQ device to run these VIs.

Each top-level VI takes a different approach to accomplishing the three different tasks. The Ordered Example VI processes the tasks sequentially. The Multiple Tasks Example (Simple) VI processes the tasks independently, with no timing or synchronization to prevent lost data. The Multiple Tasks Example (Advanced) VI processes the tasks independently and uses Queues to insure no data is lost.

Refer to the Using LabVIEW to Create Multithreaded Applications for Maximum Performance and Reliability Application Note (see link below) for more information about running multiple tasks.

Requirements


Filename: multtask.llb

Software Requirements


Application Software: LabVIEW Full Development System 6.0.2
Language(s): LabVIEW

 
10 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

Needs an update
Could a file like this be made available for newer versions of labview? I am having trouble starting and running simultaneos tasks
- Aug 11, 2008

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).