Giseli Ramos Posted November 28, 2007 Report Posted November 28, 2007 Hi people, I've made a VI that, in theory, would select an area of an intensity graphic, but it is not working. To catch the area, I created two mouse events, one event with the mouse down on the panel of the intensity graph, and a drop event, when the user finishes the drag and drop. In the event "mouse down" I catch the coordinates, and put in a cluster of the drag data. In the "drop" event I catch the final coordinates (and convert these coordinates to XY coordinates, same thing to the previous coordinates) and send it to the draw rectangle function. The VI sounds correct to me, but obviously I'm missing something. Anyone can take a look on my VI and help me? Thanks! Quote
Ton Plomp Posted November 30, 2007 Report Posted November 30, 2007 QUOTE(Giseli Ramos @ Nov 27 2007, 12:02 PM) Hi people,I've made a VI that, in theory, would select an area of an intensity graphic, but it is not working. To catch the area, I created two mouse events, one event with the mouse down on the panel of the intensity graph, and a drop event, when the user finishes the drag and drop. In the event "mouse down" I catch the coordinates, and put in a cluster of the drag data. In the "drop" event I catch the final coordinates (and convert these coordinates to XY coordinates, same thing to the previous coordinates) and send it to the draw rectangle function. The VI sounds correct to me, but obviously I'm missing something. Anyone can take a look on my VI and help me? Thanks! What you forget is that the image you overlay need absolute coordinates (in pixels), I modified the code to do the following: http://lavag.org/old_files/monthly_11_2007/post-2399-1196320734.png' target="_blank"> Good luck, Ton Quote
Giseli Ramos Posted December 4, 2007 Author Report Posted December 4, 2007 QUOTE(tcplomp @ Nov 29 2007, 05:19 AM) What you forget is that the image you overlay need absolute coordinates (in pixels), I modified the code to do the following: http://lavag.org/old_files/monthly_11_2007/post-2399-1196320734.png' target="_blank"> Good luck, Ton Ton, Really, I forgot it. I will do it so. Many thanks for the reply! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.