I am using an 1 event stucture inside a while loop to capture mouse movments and related items. The first thing I do is load a picture and display it on the screen. Next I would like to be able to zoom to an area (using the zoom property node) and then also be able to pan the picture left/right, up/down (again using the horizontal/vertical display property nodes). This is what I had done to accomplish this task.
I used a sequence structure and placed the loading of the picture in the first frame. Following this I placed the zoom and scrolling functions in the second frame. These functions were inside a while loop with the condition terminal wired to a boolean control. The last sequence frame consisted of an event structure with the commands for the mouse.
Upon running the VI, the user would select the picture, and be able to zoom and pan to an area, and then select this area and have the subset of the original picture show up in a seperate display box. The problem I am having is that when I try to either zoom or pan it works fine, if I try to zoom and then pan (both functions) then the program locks up. I have tried using a small time delay inside the while loop (10-200 mS) without and success. Does anyone have an idea what could be going on here? I used the sequence structure because the event/state machine structure triggers on mouse movements so any time I move the mouse it will try to execute the event code. I placed the other features in a sequence to guarentee that they will execute first without fear of the event structure activating. Any help???
Kirk