LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple VI on a Single Front Panel

Probably a simple question but I'm having trouble figuring out how to do it.

 

First, I have LabView 2010, Professional Development System

 

I have been trying to learn LabView the hard way.  I've been reading the documentation, starting with Getting Started and testing VI and front panels for instruments we have in the lab.  I can run the examples and control the instruments individually through individual front panels.

 

My question is, "How do I create a single front panel (or application), that consists of several instruments?"

 

For instance, I have an Agilent 34970, Data Actuisition Unit.  And I can create a front panel (and block diagram) to read data from the instrument input terminals, operate switches, etc.  I also have a GenSys Power Supply and can control the voltage levels and on/off, from it's front panel. But the two panels (and block diagrams) are not linked.

 

I have other instruments but understanding how to link two different block diagrams (with single front panel), will help me figure out how to expand it to multiple.

 

How do I integrate multiple block diagrams (or VI), with a single front panel (and block diagram) such that I can use loops, structures and conditions in one, that can be used to control the programming in the other.  For instance, say I want to sample an input on the 34970 and if it's between x and y voltage, then set the power supply to another voltage and test again. This requires two VI acting in synchronization with each other. 

 

I can do each seperately but am stuck on how to integrate these into a single application.

 

Thanks,

Message 1 of 6
(8,226 Views)

Clarification:

 

It may be that I want to keep the front panels seperately.  I'm not sure which would be best. 

 

The real issue is that what I'm trying to do, is to merge two block diagrams into a single application (i.e. have one or two front panels, either would be ok but have only a single block diagram (or program).

0 Kudos
Message 2 of 6
(8,220 Views)

Hello,

 

Perhaps the use of modularity in the form of subVIs will fit your questions and application. With subVIs, you would be able to call different VIs that control your various instruments and combine all their outputs onto one block diagram and then ultimately one front panel.  Below are some link that provide further information regarding subVIs and their use. You will need to create a profile and login in order to view the second link. 


Tutorial: SubVIs

http://zone.ni.com/devzone/cda/tut/p/id/7593

 

Tutorial and Video: Dataflow, SubVI, and Parallelism in NI LabVIEW

http://decibel.ni.com/content/docs/DOC-1694

 

Hope this helps.

 

Best,

Patricia B.

National Instruments
Applications Engineer
0 Kudos
Message 3 of 6
(8,199 Views)

Hi Mike,

 

Patricia B is right... You can try sub vi. But if you really want to put two vi's in a same window you can try sub panel. But it is not recommanded... Check these vis....

 

<<Kudos are welcome>>

0 Kudos
Message 4 of 6
(8,181 Views)

how to connect two VI in labview

0 Kudos
Message 5 of 6
(7,042 Views)

rajeshrkl@gmail.com wrote:

how to connect two VI in labview


1. Connect inputs and outputs in connector pane.

2. Connect VI's
3. Win

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(7,036 Views)