From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I want to limit the pan area in a waveform graph such that the pan remains in the rectangle (x,y,width,height). How can I do that? Currently I'm using the pan event to check the boundaries after the pan. If these are exceeded, I automatically pan to the boundaries. But is there a better method?
I think this is actually the best option you have to do it. It is the most effective one when it comes to performance due to the event handling you are using (no polling).
Regards,
RikP - National Instruments Applications Engineering
Rik Prins, CLA, CLED Software Development Engineer