LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursors are not getting set at right place

Solved!
Go to solution

Hi Guys

 

Did you notice the ignore Time stamp checkbox in the graph, I saw it was still checked and  that means that t0 is not used in the drawing.

It has bitten me also some time ago.

greetings from the Netherlands
Message 11 of 14
(739 Views)

This tells you I never use waveform or dynamic data. I've never even seen that checkbox. 🙂

 

I am curious why this is enabled by default.... 😉

0 Kudos
Message 12 of 14
(738 Views)

Hey Alten,

 

Thanks for the modified vi. I would like to know if my logic was wrong in the VI i had attached. Why is that the cursor goes out of the graph even though there is nothing visible to the human eye on the plot.

 

Cheers,

Sailesh 

0 Kudos
Message 13 of 14
(721 Views)

The algorithm is not wrong, just terribly inefficient. 😉

 

The solution was provided by Albert. The problem is that you graphs were set to ignore the timestamp (to fix: right-click graph...uncheck ignore timestamp").

 

I wasn't aware of this option, so my solution was to explicitely set x0 with the sam effect.

 

Basically, what happens is that the graph starts at zero instead of your actual negative value (keeping the same increment). However, you are calculating the cursor position based on the actual x0, leading the the discrepancy.

 

The quickest fit would be to uncheck that option as descibed. As a bonus, you also have a chance to clean up the code. Study my version for some ideas. 😄

Message 14 of 14
(714 Views)