02-01-2010 12:13 AM
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.
Solved! Go to Solution.
02-01-2010 12:15 AM
02-01-2010 12:53 AM
if you save your code in 8.6 I will take a look at it
02-01-2010 12:57 AM - edited 02-01-2010 12:58 AM
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
02-01-2010 07:02 AM
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:
You can choose right image by using appropriate index.
Hope it helps,
Andrey.