LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating subroutines for multiple event structures and common stop button

Solved!
Go to solution

Hi Guys,

I wonder if there is a better way of designing algorithm in below scenerio than repeating similar technique for every event structure.

Please find attached vi where I designed code for one boolean (D). I want to design similar code for all other bolleans. (In this design code, picture is displayed when mouse is hovered over D). For other booleans,(A,B,C,E,F) I have obviously other pictures. Can we have some sort of subroutines for remaining booleans and a single stop button for whole application.

Many thanks in advance for your support.

 

0 Kudos
Message 1 of 5
(3,209 Views)
Solution
Accepted by topic author kwaris
sorry (forgot to add vi) please find attached.
0 Kudos
Message 2 of 5
(3,207 Views)

if you save your code in 8.6 I will take a look at it

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 5
(3,194 Views)

there is something called as "Subvi" in LabVIEW which can be used for common operation.

 

I can not see your code since i have 8.5 installed on my machine.

 

However here is an example for you to undertsand the same.

 

In this vi, i have used the select to perform the operation and you can use the same to specify the image path while hovering over.

 

Go through the LabVIEW help (Help->Search LabVIEW help and also the examples) for more information on how to use the subvi's tips and tricks

Message Edited by Guruthilak on 02-01-2010 12:28 PM
Regards
Guru (CLA)
0 Kudos
Message 4 of 5
(3,192 Views)

 Can we have some sort of subroutines for remaining booleans and a single stop button for whole application.

 

 


 
As far as I can understand, you need design pattern like this:
 
events.png 
You can choose right image by using appropriate index.
Hope it helps,
Andrey.
 

 

Message 5 of 5
(3,164 Views)