Example Program Drafts

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW subPanel demo

Overview

This is a simple implementation of LabVIEW subpanel structure. This demo shows how to run different VIs in a single app.

Description

Each VI is executed in another thread; each VI runs independently at a time, data can be shared between VIs after each execution, a shared file is very helpful in case of multiple VIs shares multiple set of data. After each run the next VI read and write data while performs a task, so this process will be repeated by each VI in the subpanel after a call.


For each individual VI running into a subpanel structure you can share data using shared files. I have used shared files with awesome results, other techniques like shared variables could work, but noticed in some cases prone to race conditions.


Steps to Implement or Execute Code

  1. Unzip the attached file to a temporary folder or
  2. Move into your personal project folder
  3. Open the "subPanel" folder and run the VI called Mainframe5.vi
  4. Typedef controls must be in the same root as unzipped.

Requirements

Software

Download LabVIEW 2014

Hardware

Windows Compatible Computer

Additional Images or Video


subpanel_1.png

Figure 1. shows the main program or mainframe

subpanel_2.png

Figure 2. shows the Block Diagram

Have Fun!

Comments
Active Participant nolsqn
Active Participant

can u upload in 2012 as well .. Thanks

Regards
Member palm-harbor
Member

pl try lv12

Member nhatnguyen1001
Member

Please convert all subVIs to 12.0 .

Member dennis.chen
Member

does it build by labview 2012?

Member JUMO
Member

Can you please upload it for LabView 2011?

Member patty23
Member

Can I using subpanel controls into subpunelcontrols? I mean multiply Inteface structers more complex, and I'm not sure is the good solution.

Knight of NI Knight of NI
Knight of NI

patty23 wrote:


                       

Can I using subpanel controls into subpunelcontrols? I mean multiply Inteface structers more complex, and I'm not sure is the good solution.


                   

I have put subpanels on VIs that I load into subpanels.  It does become interesting explaining how that works and it only really worked well due to the object oriented design I had for the instrument control I was doing.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Contributors