LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A button driven user interface in labview

Solved!
Go to solution

Hi all,

I'm fairly new to Labview and I am working on a project related to control systems. What I have with me is an old program written in 1996 for a DOS based system that interfaces with a Water tank controller device and allows the control of a double water tank system. The software is used for laboratory teaching of control systems. I have to upgrade the software using labview.

The part I'm not able to figure out is how to make a GUI similar to the one of the old software. I need a welcome screen with multiple buttons specifying the various kinds of control the software can perform(PID, fuzzy etc.) When the user clicks on a particular button, the screen changes and a new interface appears with controls and indicators relevant to the chosen option, there may be buttons for further sub-options as well.

 

I tried using the Event Structure, for different actions corresponding to different button presses, but on the front panel all the controls and indicators for the different types of control appeared together which isn't what I want. Please help!

 

0 Kudos
Message 1 of 16
(4,987 Views)
post ur vi
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 2 of 16
(4,963 Views)
you can make buttons become visible and invisible by using the visibility property node:) but you should post your vi for further understanding of your problem.....
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 3 of 16
(4,959 Views)

Rainbow_Warrior wrote:

 

I tried using the Event Structure, for different actions corresponding to different button presses, but on the front panel all the controls and indicators for the different types of control appeared together which isn't what I want. Please help!

 


You are heading in the right direction.  Smiley Happy

 

What you need to do is to create SubVIs (UIs) for each of your button clicked [a button click event in VB corresponds to a Value Change event in LabVIEW under normal coding rules) on the Main VI (UI).

 

I suggest you to go thro' some online tutorials/materials reg the basics of LabVIEW. Also, a google search will give you loads of pdfs to learn LV.

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 16
(4,949 Views)

Hi, I'm posting the original software that i have to upgrade. basically i want to create the same kind of GUI in Labview (with support for mouse clicks, of course). It doesnt have any functionality by itself but you can get an idea of the GUI i have to create.

Don't worry, its not a virus 🙂

 

Thanks in advance.

 

P.S. I wasnt able to upload exe files, so i changed the extension from .exe to .txt. Please rename it to run it.

 

0 Kudos
Message 5 of 16
(4,942 Views)
if you are going to use mouse clicks than an event case is def. right for you.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 6 of 16
(4,935 Views)
Actually, you EXE looks like a PPT controlled by keyboard, very nice indeed...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 16
(4,924 Views)

Hai,

 The exe you have attached can be upgraded in LabVIEW and there are pretty good examples that established such architecture.  Follow these steps to start with so that you can build the entire application based on those:

 

1. List out the GUI screens that are required for various activities.

2. Determine the linkage between them and develop the hierarchy flow

3. Now chose the architecture.  for this application you can do with state machines and if best suited will be event based  Q architecture (just run a search to find good documents on this)

4. Now start building the GUI for each screen classified based on activity so that you will not end up with clumpsy front panels.

 

Post for any queries

 

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 8 of 16
(4,902 Views)
Very good explanation, JK! Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 16
(4,889 Views)
Smiley Happy
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 10 of 16
(4,884 Views)