LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to scroll front panel at runtime

Solved!
Go to solution

      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

0 Kudos
Message 1 of 10
(3,650 Views)

Hi, Sonali,

 

You can use Origin property node for autoscroll.

 

Modified example in attachment.

Andrey.

 

0 Kudos
Message 2 of 10
(3,647 Views)

Hi Sonali,

see the attached example.

 

Mike

0 Kudos
Message 3 of 10
(3,643 Views)
Thank you for reply but I'm using LabVIEW 8.5 not 8.5.
0 Kudos
Message 4 of 10
(3,640 Views)

Ups...

 

Here downconverted to 8.5

 

Andrey.

0 Kudos
Message 5 of 10
(3,629 Views)

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.

        

0 Kudos
Message 6 of 10
(3,597 Views)

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

0 Kudos
Message 7 of 10
(3,571 Views)
Solution
Accepted by topic author Sonali

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.

Message Edited by Andrey Dmitriev on 02-10-2009 09:30 AM
Download All
0 Kudos
Message 8 of 10
(3,564 Views)

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

0 Kudos
Message 9 of 10
(3,563 Views)

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.

0 Kudos
Message 10 of 10
(3,541 Views)