09-14-2016 09:44 AM
I am making an interface that controls a series of multiposition valves. For the two position valves, I have setup a boolean indicator with "true" showing an image of the valve in one position and "false" showing the other configuration. It works great, but what I must now do is try and replicate this with an 8 and 16 position valve- so rather than 2 images I must select from up to 16 different ones. Is there some way to convert a simple numeric/string output (just the numbers 1-16) to show corresponding images 1-16? I am sure there must be, but it is clearly a very different approach than what I am doing for T/F outputs.
Thank you!
Solved! Go to Solution.
09-14-2016 09:46 AM
You can connect integer values to a case structure, too. 🙂
09-14-2016 09:59 AM
Ahhhhhhhh. So I have the interger value coming into the case structure, and then just use Read PNG File VI => Draw Flattened Pixmap VI to display the right image each time right? Much easier than what I had been trying, thank you!
09-14-2016 10:15 AM
@bgalfond wrote:Ahhhhhhhh. So I have the interger value coming into the case structure, and then just use Read PNG File VI => Draw Flattened Pixmap VI to display the right image each time right? Much easier than what I had been trying, thank you!
Yes! You can even optimize it to move the Read PNG File VI and Draw Flattened Pixmap VI outside the case structure and have the case structure only contain the paths. 🙂
09-14-2016 10:35 AM
If your images are defined at development time, you can use Ring&Enum -> Picture ring. To insert pictures: right click menu -> Add item and Import picture from clipboard
09-14-2016 10:38 AM
Well that worked perfectly. Only issue now is that it looks way too elegant for all the screwing around I did haha! Thanks!