11-30-2009 01:29 PM
11-30-2009 01:38 PM
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.... 😉
11-30-2009 10:24 PM
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
11-30-2009 11:09 PM
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. 😄