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.
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).
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 and Video: Dataflow, SubVI, and Parallelism in NI LabVIEW
Hope this helps.