LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure connection

hi all

 

I am trying to connect a wire from the inside of a case structure to another while loop. but it shows as you can see in the attached picture .(unwired)  how can i solve that please /?

 

 

Bill David
0 Kudos
Message 1 of 11
(3,764 Views)

All cases need to provide some output. You have some cases that are not wired to that output.

 

If you want to output the default value for the datatype in the unconnected cases (empty array in this case) right-click the tunnel and select "use default if unwired". (not available in ancient LabVIEW versions).

 

It really depends on the scenario what's best, but you don't show much code in your picture. Sometimes an input array to the case structure could be wired across in some cases unchanged. Sometimes you would use a feedback node and output the last valid output in cases where it is not modified. Can you show is the entire code?

0 Kudos
Message 2 of 11
(3,760 Views)

Thank you 🙂

Bill David
0 Kudos
Message 3 of 11
(3,755 Views)

Every case has to give the output tunnel a value.  So make every case supply a value.  Or you could right click on the tunnel and choose "use default if unwired" (typically not recommended).

 

I have a feeling this isn't really what you want to do.  Can you show us the rest of your code and explain what you are trying to do?


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 11
(3,753 Views)

@Bildavid wrote:

Thank you 🙂


Also remember that the LabVIEW compiler is very good at explaining code problems. For example if you get a broken run arrow because of this problem and click the run arrow anyway, it will tell you the following:

 


Tunnel: Missing assignment to tunnel

Details: The Case or Event structure does not have anything wired to the output tunnel in one or more cases. Since only one frame of the structure is executed, every frame must assign values to all the outputs.  Right-click the tunnel and select Use Default If Unwired to relax this requirement.


 

 

All clear? 😄

 

0 Kudos
Message 5 of 11
(3,745 Views)

Crossrulz

 

you look to be helpful , I have a dilema to be solved here . I am not talking about the case structure output . I am talking about  something else . 

 

are you ready to give me some help ? so i can tell what exactly is my problem and show you some examples that i am working on ?

 

Just let me know if you wanna help .

 

Thanks alot .

 

 

 

 

Bill David
0 Kudos
Message 6 of 11
(3,745 Views)

The forums are here to help people.  I'm not the only one here that will help.  If you have a question, post it.


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 7 of 11
(3,740 Views)

Bildavid wrote:

you look to be helpful , I have a dilema to be solved here . I am not talking about the case structure output . I am talking about  something else . 


Just post whatever questions you have and somebody (even if they don't look helpful yet :D) will probably find a solution for you. If it is no longer about the case structure, start a new thread.

0 Kudos
Message 8 of 11
(3,739 Views)

Dear Altenbash ,

 

I appreciate that . but i am afraid in the last three days no one answered my questions ... why ? i dunno .. anyway . i will start a new thread right now .

 

 

Any help would be deeply appreciated .

 

 

thanks alot

Bill David
0 Kudos
Message 9 of 11
(3,735 Views)

Bildavid wrote:

I appreciate that . but i am afraid in the last three days no one answered my questions ... why ? i dunno .. anyway . i will start a new thread right now .


No, if you already posted the question, point us to the old thread.

 

If nobody answer, it could mean many things. Maybe the question is not clear,for example. Try to add more explanations, attach example code, tell us exactly waht you do, what you want and what you get instead.

0 Kudos
Message 10 of 11
(3,723 Views)