Rimmergogo Posted March 2, 2007 Report Share Posted March 2, 2007 Hallo, I want to make a labview program that can store the coordinations / route of the mouse, but only went the mouse is in a xy-plot area. But now I have run into a strange error. (I have attached my labview program so that you can see for your self). When the horizantal coordination are lower then the coordinations of the the xy graph the calculated new mouse horizontal coordination is rised by 4294967296. There are two funny things: this number is 2 times the max of an I32 and if I replace the xy-graph coordinations by an constant there is no error. Does anybody know what this error is about. thanks, Andries Quote Link to comment
Rimmergogo Posted March 2, 2007 Author Report Share Posted March 2, 2007 QUOTE(Rimmergogo @ Mar 1 2007, 01:27 PM) Hallo, I want to make a labview program that can store the coordinations / route of the mouse, but only went the mouse is in a xy-plot area. But now I have run into a strange error. (I have attached my labview program so that you can see for your self). When the horizantal coordination are lower then the coordinations of the the xy graph the calculated new mouse horizontal coordination is rised by 4294967296. There are two funny things: this number is 2 times the max of an I32 and if I replace the xy-graph coordinations by an constant there is no error.Does anybody know what this error is about. thanks, Andries I fixed the problem already by substracting 4294967296 from the horizontal value wen it is above 2000. but still the bug remains unclarified. Quote Link to comment
Mikkel Posted March 2, 2007 Report Share Posted March 2, 2007 QUOTE(Rimmergogo @ Mar 1 2007, 01:44 PM) I fixed the problem already by substracting 4294967296 from the horizontal value wen it is above 2000. but still the bug remains unclarified. Since the value you get from 'Y Scale.Bounds:Width' is unsigned, the output type of following addition and the top subtract operation (Horizontal) will be unsigned. Changing the output type from the addition to signed long (with a 'To Long Integer' conversion) solves the problem. -Mikkel Quote Link to comment
Rimmergogo Posted March 3, 2007 Author Report Share Posted March 3, 2007 QUOTE(Mikkel @ Mar 1 2007, 03:02 PM) Since the value you get from 'Y Scale.Bounds:Width' is unsigned, the output type of following addition and the top subtract operation (Horizontal) will be unsigned.Changing the output type from the addition to signed long (with a 'To Long Integer' conversion) solves the problem. -Mikkel Now I see the problem.... thanks a lot. This part works fine now and now I can continue :arrow: . Andries Quote Link to comment
Rimmergogo Posted March 6, 2007 Author Report Share Posted March 6, 2007 QUOTE(Rimmergogo @ Mar 2 2007, 09:10 AM) Now I see the problem.... thanks a lot. This part works fine now and now I can continue :arrow: .Andries I want a LabVIEW icon under my name! QUOTE(Rimmergogo @ Mar 5 2007, 10:47 AM) I want a LabVIEW icon under my name! Shit not yet. heheheh Quote Link to comment
Mikkel Posted March 6, 2007 Report Share Posted March 6, 2007 QUOTE(Rimmergogo @ Mar 5 2007, 09:48 AM) I want a LabVIEW icon under my name!Shit not yet. heheheh May I suggest, that you try participate in a constructive manner in stead of replying to your own posts? :thumbdown: This is - by far - the easiest way to get an icon under your name. -Mikkel Quote Link to comment
Joost van Hamond Posted March 9, 2007 Report Share Posted March 9, 2007 I agree.... Quote Link to comment
Tomi Maila Posted March 9, 2007 Report Share Posted March 9, 2007 I noticed that you've moved from Netherlands to Finland. Welcome! I hope you enjoy your stay. Tomi Quote Link to comment
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.