Search found 30 matches

by sgraves
Wed Jul 06, 2016 10:46 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

Re: PictureBox Crashes

Juha, I have found your code using _locker. I think there is a problem with it. The example you reference shows two tasks running and the processing is done inside locked regions using the _locker lock. The problem with this is that we don't have access to the second task. The paint operation is don...
by sgraves
Wed Jul 06, 2016 9:32 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

Re: PictureBox Crashes

Juha, This URL has some discussion about the invalid operation with paint. http://stackoverflow.com/questions/1060280/invalidoperationexception-object-is-currently-in-use-elsewhere-red-cross Perhaps the camera functions like DrawCrossFunct need to be made thread safe? Steve This post has been made o...
by sgraves
Wed Jul 06, 2016 8:55 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

Re: PictureBox Crashes

Juha, Below is a dump of the exception report for the crash. As you can see the paint operation is having the issue. Steve See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperation...
by sgraves
Tue Jul 05, 2016 2:31 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

Re: PictureBox Crashes

BTW In my opinion it is not bad coding practice to write the reference that way. Any decent programmer should know that is a reference.
by sgraves
Tue Jul 05, 2016 2:25 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

Re: PictureBox Crashes

So on a mouse move event in the Placement_pictureBox one should be passing the Tapes_pictureBox object to the General_pictureBox_MouseMove function? Why not pass the Placement_pictureBox object? I am not familiar with these Windows objects, so I don't really understand what is happening. It just see...
by sgraves
Mon Jul 04, 2016 9:42 pm
Forum: LitePlacer Software
Topic: A new algorithm for needle pressure
Replies: 3
Views: 3143

Re: A new algorithm for needle pressure

I was going to wait until we were successful to respond. We are closer but not completely successful. Thank you for the tips. The manual configuration is helpful. We couldn't get the green needle to work, but we have had some success with the red needle. We are still not accurate enough. If we hit t...
by sgraves
Mon Jul 04, 2016 9:03 pm
Forum: LitePlacer Software
Topic: PictureBox Crashes
Replies: 23
Views: 14898

PictureBox Crashes

We have been getting crashes which say "InvalidOperationException - object is currently in use elsewhere" for mainly the Placement_PictureBox and it goes to a box with red diagonal lines. We must restart the program to get the image back. At line 6077 in MainForm.cs we have the following p...
by sgraves
Mon Jul 04, 2016 5:26 pm
Forum: LitePlacer Software
Topic: Are we doing needle calibration right?
Replies: 38
Views: 22205

Re: Are we doing needle calibration right?

Ok, the wobble algorithm is not that simple :( . But assuming the ellipse shape is repeatable (i.e. the A axis is not precisely vertical so we are looking at a circle at an angle), our wobble compensation should be to the center of the ellipse and the cam to needle offset to that center. It takes mu...
by sgraves
Mon Jul 04, 2016 5:36 am
Forum: LitePlacer Software
Topic: A new algorithm for needle pressure
Replies: 3
Views: 3143

A new algorithm for needle pressure

I have a new machine. Foolishly I created a board with 0402s, so they are the first parts I am trying to place. I am having a problem with the needle pressure algorithm. If I try to free place a part, the needle goes to maximum pressure (limit switch) and backs off to the desired pressure. The maxim...
by sgraves
Mon Jul 04, 2016 5:01 am
Forum: LitePlacer Software
Topic: Are we doing needle calibration right?
Replies: 38
Views: 22205

Re: Are we doing needle calibration right?

I just joined the forum, I have a new machine. I agree that the compensation should be relative to the A axis. Ironically, the algorithm to do this is quite simple. First one must realize that the needle point is at some distance from the A axis. If we rotate the needle 180 degrees the distance betw...