02-09-2009 05:47 AM
Hi
I'm using LabVIEW 8.5. I want to scroll front panel automatically according to moving object. I'm attaching one vi as an example, in which I'm moving the picture but if it is out of screen limit I have to scroll the horizontal scroll bar manually to see the position of the picture, is it possible that it will scroll automatically according to my object position.
- Thank you in advance
Solved! Go to Solution.
02-09-2009 05:56 AM
Hi, Sonali,
You can use Origin property node for autoscroll.
Modified example in attachment.
Andrey.
02-09-2009 05:58 AM
Hi Sonali,
see the attached example.
Mike
02-09-2009 06:00 AM
02-09-2009 06:08 AM
Ups...
Here downconverted to 8.5
Andrey.
02-09-2009 10:18 PM
Thank u All,
is it possible to make object visible at runtime, as of now horizontal scroll bar is moving but after screen limit the train is going outside the screen (in attach file). I need to make the train visible all time wherever it will go in screen.
- THANK YOU IN ADVANCE.
02-10-2009 01:21 AM
Hi Sonali,
what do you mean? What do you want to make visible at runtime? In your case it should be enough to change the origin as shown in the examples before.
Mike
02-10-2009 02:29 AM - edited 02-10-2009 02:30 AM
Hi, Sonali,
Well, now I see what you needed. From my point of view using front panel scrolling for such animation is wrong way (otherwise I don't know your final goals).
I would like to recommend to use picture control for this. Here a little bit more hand work, but you will get better results and your Front Panel will be not scrolled.
For example, "quick and dirty" implementation:
Andrey.
02-10-2009 02:29 AM
Hi mike,
I mean to say I want to make the train picture at middle of screen and background(front panel) moving. When the train moves only its background will change.
- Thank you
02-10-2009 03:11 AM
THANK YOU VERY MUCH.... THIS IS WHAT I WANTED... Its quite hard to understand the block diagram ( but i will try) as I'm fresher just having 1 month use of LabVIEW but I'm impress.. Thank you again.