LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure help needed~

Hi guys, i am running into some problem trying to output multiple data source into one single indicator, i have attached a screen shot of my schematic below. let's to refer to it...

i need to run the big case structure after condition is met, but once it is met it will also need to check for certain condition, like '21' and '31' (i have many more) and display whatever constant that is to be displayed, but after i wired it up, it says wire connects to a undirected tunnel. is there is way to wire this sort of logic? i already tried it for quite sometimes, but still couldn't get it to work...

Thanks in advance for all your help~
0 Kudos
Message 1 of 27
(5,081 Views)
Simmy,

1st) Please do not use variables if not really neccessary
2nd) Think of the wires in LabVIEW just like wires in electronics. Connecting two sources lead to a short. In your case, the short is not obvious since LV didn't typify the outputtunnel from the lower case structure.... which is strange to me, but for usage just as bad as a short....If you like to create a string "21" out of "2" and "1", you have to concatenate the two strings "2" and "1".

hope this helps,
Norbert


Message Edited by Norbert B on 08-01-2008 02:18 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 27
(5,067 Views)
Hi Simmy,
you can´t connect two or more wires to one indicator. In your case, use only one case structure and connect directly the string wire to the case structure input. Now you have only one output per condition.
Mike
Message 3 of 27
(5,066 Views)

Hi,

There's couple basic errors on your diagram. You can't wire a wire to another like that! You could use for example "Concatenate strings" function with your string constants.  Also, you should put those indicators outside the case structure and get rid of those local variables because you have no need for them.

Edit: Now, there was a rush of answers in a short time! 🙂

- Matti



Message Edited by Matti Autioniemi on 08-01-2008 10:20 AM
Message 4 of 27
(5,065 Views)
sorry for not making it clear, i am not trying to split 2 and 1, i am sending data to the indicator, the 2 and 1 are actually other data, which i have not put in yet, it will be a string, but not numbers, it is a name of some sort, so i need to send different string when different condition is met, to a single indicator, is there a way to do that?
0 Kudos
Message 5 of 27
(5,043 Views)

Hi Simmy,

as i said before, you can connect the string directly to the case structure.

Mike



Message Edited by MikeS81 on 08-01-2008 09:44 AM
Message 6 of 27
(5,040 Views)
wow that explained it, i will try it out, seems abit advance for me. thanks 😄
0 Kudos
Message 7 of 27
(5,032 Views)
@MikeS81: how do I connect those different case structure together? from your diagram, they seems linked, how do i link them?
0 Kudos
Message 8 of 27
(4,983 Views)
Hi Simmy,
it is only one case structure, it only shows all available states. Smiley Happy

Mike
Message 9 of 27
(4,980 Views)
@MikeS81: how do I connect those different case structure together? from your diagram, they seems linked, how do i link them?
0 Kudos
Message 10 of 27
(4,968 Views)