LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event structure and graph update rate

Hi All

 

The attached vi has an event structure to allow sequential scrolling through pages using a mouse down on the pane and a graph

 

I have two questions that somebody may be able to help me with

 

1.After starting the vi, the event structure misses the first mouse down event.....why?

2. The timeout event is simply to reset the page displayed to page 1 after the timeout, but is also controlling the update rate of the graph....how can I seperate these so that the graph can update at a faster rate  (timeout to page 1 event 5 minutes and graph update rate 1 minute)

 

Any suggestions

 

Regards

Ray

0 Kudos
Message 1 of 4
(2,721 Views)

1.  You're not missing the mouse down event, you are getting it.  It is just setting the page to the same number that is already in the shift register 0.  Put the +1 increment function before the Quotient/Remainder and before the writing of the number to the Tab Control.

 

2.  Put the update of the data in the graph in it's own while loop parallel to the while loop with the event structure handling the user interface.

0 Kudos
Message 2 of 4
(2,717 Views)

Hello Ravens Fan

 

1. That worked very well. Thank you.

2 Not quite sure how to do this, but I'll do some research.....do you have an example I could look at (please don't modify my vi, I'd like to do this myself).

 

Just a nudge in the right direction.

 

Thank you again for your time

 

Ray

0 Kudos
Message 3 of 4
(2,710 Views)

Look at File / New ...  VI - Template - Frameworks - Design Patterns  then the example of Producer/Consumer (Events)

0 Kudos
Message 4 of 4
(2,708 Views)