12-07-2012 11:06 AM
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 /?
12-07-2012 11:11 AM - edited 12-07-2012 11:17 AM
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?
12-07-2012 11:15 AM
Thank you 🙂
12-07-2012 11:16 AM
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?
12-07-2012 11:21 AM
@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? 😄
12-07-2012 11:21 AM
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 .
12-07-2012 11:23 AM
The forums are here to help people. I'm not the only one here that will help. If you have a question, post it.
12-07-2012 11:23 AM
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.
12-07-2012 11:26 AM
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
12-07-2012 11:36 AM
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.