LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple boolean values to a single value

hello,

   I am new to labview and iam dealing with a project where i have 3 stop indicators in the whole vi, one stop indicator is in a sub vi and the other two indicators in the same vi. Now i have to club all these three stop indicators to a single stop indicator. Can anyone please guide me in doing this.

0 Kudos
Message 1 of 10
(4,166 Views)

Hi Samineni,

 

You can just wire all the 3 diff stop indicators to a 'Compount Airthmetic' function .See here.

0 Kudos
Message 2 of 10
(4,165 Views)

hi

  Thanks for the reply. I have used arthimetic or function but still i couldnt get it, I have 2 boolean global variables and 1 boolean indicator, so all the three i have given it to arthimetic or. Is  there any other way to do that

0 Kudos
Message 3 of 10
(4,163 Views)

Hi,

 

See the below image. This  is one way to stop your main vi. Hope this helps you.

stop.JPG

 

0 Kudos
Message 4 of 10
(4,159 Views)

hello,

         Thanks for the intrest once again. This is what i have done before. My requirement is if i press any one of the button,whole vi has to get stopped. Which is not happening. In the three boolean indicators 2 of them are global variables, i am reading the global variable, is it right i am doing or should i have to make any other changes

0 Kudos
Message 5 of 10
(4,154 Views)

Hi,

 

You can wire the values coming from 2 global variable and 1 boolean control to 'Airthmetic Function' with 'OR' (right-click on Airthmetic) option selected. So if any 1 is true your whole vi will stop. If you are still not getting post your vi.

0 Kudos
Message 6 of 10
(4,149 Views)

hi,

   I got resolved with it. In my main vi,i have a sub vi so when i run the main vi everytime, the sub vi's front panel get's opened up. How can i stop the sub vi's front panel getting opened up.

0 Kudos
Message 7 of 10
(4,139 Views)

Hi

 

In order to stop the front panel of a sub vi opening when called, try this:

 

Open the sub vi front panel, go to File Menu, VI Properties.

Select 'Window Appearance' in the Category pull-down menu

Click on 'Customize' button

You will find a selection for 'Open front panel when called'. Ensure that this selection is 'un checked'.

Click 'Ok' and save your sub vi.

 

Try running the main vi now.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 8 of 10
(4,135 Views)

If you dont want to open the front panel of the SUbVI when the main VI is running.

just right click on the subVI and select the option of SubVI node setup.

 

There three checkboxes are there which allows you to show the front panel of the subvi or hide it.

remove tick from all the checkboxes and then run your main VI.

 

 

 

0 Kudos
Message 9 of 10
(4,130 Views)

Please post your code.  There may be a better design archetecture for what you are trying to do.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 10 of 10
(4,124 Views)