LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User able to zoom in/out picture in realtime on running Front Panel?

Solved!
Go to solution

Well I've searched for this and have come up empty. What I would like to do is have a picture of a schematic up on the front panel, and while the VI is running the user can somehow zoom in/out of the picture in real-time.

 

I know there is a thing called Zoomfactor which you instantiate in a way in the Block Diagram, but that seems to zoom in on a picture pre-run of the program. The zoom is not real-time. There is no real user ability to zoom in/out with free will using the Zoomfactor that I can see. (sorry I forget the function's full name). And I've seen posts by someone named George Zou who seems to have come up with a VI that is closer to what I want, but the VI's I pulled from his site don't seem to work with my computer (my rig is running XP with Labview 2013 currently). So, I was just wondering if anyone else had found other suitable answers to my quire?

0 Kudos
Message 1 of 11
(4,174 Views)
Solution
Accepted by ShogunOrta

Use an Event structure in order to modify zoom factor during runtime.

You can even program your own shortcuts for the Event structure, for example if the user clicks on one particular point on the picture, and you read this coordinate out, and you zoom in a way that this point stays in the center...There are many options to play with...

 

 

 

 

Message 2 of 11
(4,086 Views)

Can this be used to zoom in on the data immediately after a finishing an acquisition run?

 

Also, is there a way to make a zoom window 'jump' ahead by a user-determined amount of time (not during realtime)? For example, if a graph represents 60 seconds of acquisition, and I'm zoomed in on a 1 s window, can I add a feature that allows me to use the keyboard to scroll ahead 5 seconds at a time while staying zoomed in?

 

Thank you

0 Kudos
Message 3 of 11
(4,051 Views)

Why do you hijack this thread? Your question has NOTHING to do with the OP's question. We discuss here how to zoom in/out a picture.

You talk about plotting data. Create a separate post for your question. Before you do that, you should search for this topic, you will find hundreds of posts dealing with Graph/Chart zooming questions...

 

Actually if you right click on a Graph/Chart on the front panel, you can choose from the menu: "Visible Items" --> Graph Palette. Here you can find interactive zoom tools...

+edit: Visible Items" --> X scrollbar. This can give you the option to scroll through the plot while it is zoomed. But do not forget to turn off the "autoscale" of X-axis. Also you can use the "hand tool" from the "Graph palette"...

 

 

0 Kudos
Message 4 of 11
(4,043 Views)

I appreciate (but already knew) the helpful part of your response. It is still too time-consuming to scroll through to a subsequent timepoint many seconds away while zoomed in. I would like a way to use the keyboard to jump ahead a user-defined amount of time while staying zoomed in. I will start another thread on this.

Obviously, not everyone is as knowledgeable as you, or as experienced as you in the Labview discussion forums - you should give people a break on their first few posts rather than accusing them of hijacking anything. I would also think that using/displaying one's real identity would be basic etiquette for a professional/academic message board.

 

--Noam Harel (2nd post)

0 Kudos
Message 5 of 11
(4,018 Views)

PS yes I have searched the knowlegebase for hours on this before posting

0 Kudos
Message 6 of 11
(4,015 Views)

"Obviously, not everyone is as knowledgeable as you, or as experienced as you in the Labview discussion forums - you should give people a break on their first few posts rather than accusing them of hijacking anything."

This has nothing to do with LabVIEW. Any forum works in this way, if you have a non related question, you do not put it in another post, but create a new one. Also, you can read the forum rules at the top. Beside, you can find very useful info here too (also training material at the end!):

https://decibel.ni.com/content/docs/DOC-40451

 

" I would also think that using/displaying one's real identity would be basic etiquette for a professional/academic message board."

Some people show their full name here, some not. We are here to help others, and learn from the more experienced ones, and not for discussing forum etiquette opinions IMHO. (But if this is so important for you: Dr. András Bükki-Deme)

 

"it is still too time-consuming to scroll through to a subsequent timepoint many seconds away while zoomed in. I would like a way to use the keyboard to jump ahead a user-defined amount of time while staying zoomed in."

Use property nodes with Event structure for the Graph so you can programmatically change x-scale min/max, etc...

 

0 Kudos
Message 7 of 11
(3,990 Views)

@NYHarel wrote:
I would also think that using/displaying one's real identity would be basic etiquette for a professional/academic message board.

 

 


Nice to meet you NY.  Now, let me go Google your resume rather than talk to you.  That'll certainly aid in the conversation.

0 Kudos
Message 8 of 11
(3,954 Views)

Alright guys. Truce. Truce. And thanks Blokk, I'll look further into Zoom factor's capabilities regarding this.

0 Kudos
Message 9 of 11
(3,913 Views)

Okay REALLY THANK YOU BLOKK! That VI you attached helps out a ton. Jeez, I almost missed it!

0 Kudos
Message 10 of 11
(3,907 Views)