Shogun,
You will probably need some sort of case structure to determine your input.
It looks to me like you are searching a common string for whether it contains Valve1, Valve2, Valve3 and so on. Depending on which one it finds you are outputting that picture. I would need more information as to what exactly you were doing, but I might look in the string for "Valve" then a number and feed that output into a case structure. For instance if you find Valve3 in the string you send the input corresponding to Valve3 into the picture ring
Matt J | National Instruments | CLA