LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MY SUB VI DOESN'T WORK.

Solved!
Go to solution

Hello,

I'm creating a sub VI, where there's a radio button related to a boolean case and there's an another boolean case under it. in these cases I put the main commands and functions with their local variables. so, when I use this as a sub VI when I'm changing from case to another it doesn't work for example case 1:
x * my = z case 2:
z / x = my case 3:
z/y = x each time a case selected there is one command must not change, but it should give the result

 

0 Kudos
Message 1 of 5
(3,084 Views)

That is probably because Your third radiobutton doesn't have a name, and the Case You've assigned to it only runs when the " " (Space) radiobutton is activated. Try to make the labels of each radiobutton visible, and give each one a unique name.

 

 

Don't forget to rate a good Answer....
---------------------------------------------------------
Here should be some cool signature

But there's NOT

LabVIEW 2012-2017
---------------------------------------------------------
Message 2 of 5
(3,078 Views)

I TRIED TO DO SO. BUT THE NAME OF EACH CASE TURN RED IN THE DIAGRAM

AND IT DOESN'T WANT TO COMPILE 

0 Kudos
Message 3 of 5
(3,015 Views)
Solution
Accepted by topic author sam2017

@sam2017 wrote:

I TRIED TO DO SO. BUT THE NAME OF EACH CASE TURN RED IN THE DIAGRAM

AND IT DOESN'T WANT TO COMPILE 


No need to yell (all caps = yelling).

 

Right click on your radio buttons and select Visible Items->Label.  Edit those to match what you want in your case selector.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(3,007 Views)

thank you. that what i did 

right click on the radio button => property => modify visible item

0 Kudos
Message 5 of 5
(2,993 Views)