LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying info during a cursor move

Hi I am trying to design a popup panel that has parameters calculated from a user moving a cursor on an XY graph.  The popup panel is necessary due to teh amount of screen size that it takes to display the data based on the cursor position.  I have tried many options from subpanels to regular VI panels popping up based on a cursor move event but I get memory crashes and slow operation issues.  Anybody know how to do this to optimize speed of display and memory?  Atatched are my simplified VIs to show what I am trying to accomplish.

Download All
0 Kudos
Message 1 of 12
(3,362 Views)

Hi id 

 

I came up with a quick solution of displaying the information of the x and y on another front panel by using the event handler VI as a sub VI. This panel however does not popup and I'm not sure as to how fast this is. Do you want the graph panel to be covered up by the pop up window, or do you still want to be able to move the cursor? 

 

I hop the code I added gives you some ideas and post back if this isn't what you were looking for.

 

Thanks 

 

Dan

 

Daniel Harryman MEng
CLA, CPI
Download All
0 Kudos
Message 2 of 12
(3,337 Views)

Thanks.  I want the graph cursor to be able to be moved while continuous updates are viewed on the popup panel

0 Kudos
Message 3 of 12
(3,331 Views)

The problem is that the popup panel grabs the focus. There are probably ways around this, but I am not familiar.

 

Alternative solutions would be to show the current value in the cursor name or to have a temporary indicator that only shows if the cursor is moved. (see attached, LabVIEW 2012)

0 Kudos
Message 4 of 12
(3,328 Views)

I have done this exact same thing in the past.  I used a subVI which was simply the display that I wanted.  I manually opened (and closed) and repositioned the window to be in the corner opposite the direction of the mouse move.  Additionally, for extra flair, I updated the plot images property with a rectangle showing the drag area.

 

I have attached a very quick and dirty example

 

(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)

--
Tim Elsey
Certified LabVIEW Architect
Download All
0 Kudos
Message 5 of 12
(3,311 Views)

I cannot download your example...can you post a snippet for me to see please?

0 Kudos
Message 6 of 12
(3,295 Views)

@id wrote:

I cannot download your example...can you post a snippet for me to see please?


Whuch example are you referring to, and what kind of problems do you have with downloading?

0 Kudos
Message 7 of 12
(3,293 Views)

@elset191 wrote:

(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)


You are showing a chart, which does not have cursors. Substituting a graph shows the same problem when moving the cursor. The popup grabs the focus.

0 Kudos
Message 8 of 12
(3,291 Views)

@altenbach wrote:

@elset191 wrote:

(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)


You are showing a chart, which does not have cursors. Substituting a graph shows the same problem when moving the cursor. The popup grabs the focus.


Oh, that kind of cursor.  I was reading this thread thinking mouse cursor.

 

Changing the Window Appearance->Window Behavior to Floating seems to make it not steal focus.

 

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 12
(3,286 Views)

@elset191 wrote:
Changing the Window Appearance->Window Behavior to Floating seems to make it not steal focus.

 Are you sure? That is already his setting and it steals the focus.

0 Kudos
Message 10 of 12
(3,275 Views)