san_gr Posted December 27, 2009 Report Share Posted December 27, 2009 Hey everyone, I'm not sure if this can be done at all but i'll give it a shot. I want to create a very unique indicator . I have made two custom indicators and I want to combine them. Some of you may remember that I was building an elevator simulation. To simulate the elevator movement, I customized a vertical pointer slide (called "elevator shaft") and to animate the elevator doors, I customized a vertical progress bar (called "door"). Is there a way to fix the second indicator to the first one so that the whole "door" moves up or down? PS. I have attached a simple vi too see how these 2 indicators are going to be used. demo1.vi Quote Link to comment
Yair Posted December 27, 2009 Report Share Posted December 27, 2009 I'm pretty sure you can't do what you want, but you can control the placement of the "door" using the Top property by creating a property node for the door control. It requires some code, but it's the same as far as the end user is concerned. If you want to hide the code, you can make an XControl, but it's probably not worth the effort. Quote Link to comment
san_gr Posted December 27, 2009 Author Report Share Posted December 27, 2009 I'm pretty sure you can't do what you want, but you can control the placement of the "door" using the Top property by creating a property node for the door control. It requires some code, but it's the same as far as the end user is concerned. If you want to hide the code, you can make an XControl, but it's probably not worth the effort. I see... Could you go into some more details about how to control the placement of the "door"? Quote Link to comment
Yair Posted December 27, 2009 Report Share Posted December 27, 2009 I didn't look at your code, but you said the door was a numeric control, so all you need to do is right click it, select Create>>Property Node>>Position>>Top, which will drop a property node on the BD already linked to the control and with the top property selected. Now you can simply poll the shaft for its value (in a loop) and use that to calculate what the position of the door should be. If you want to get a little more fancy, you can even get the position, scale and size info of the shaft and use that to dynamically detemine where the door should go relative to the shaft, but that's already more complicated. Quote Link to comment
san_gr Posted January 4, 2010 Author Report Share Posted January 4, 2010 Hey I just saw your reply. I will try your method next week but from the way you described it, it doesn't seem that hard Thanks again Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.