![]() |
GetParticleAnalysisReport causes crash
Whenever I try to use the command GetParticleAnalysisReport, the robot stops working and I have to reboot it. Not sure why this is happening. Here is the code:
Code:
ColorImage* camerain = camera->GetImage();Any help would be greatly appreciated. |
Re: GetParticleAnalysisReport causes crash
I'm not sure if this would actually cause a crash, but the function you're using ends up calling imaqMeasureParticle which likely takes a zero-indexed particle number. You're starting at 1.
|
Re: GetParticleAnalysisReport causes crash
If you take a look at the source code of GetParticleAnalysisReport:
Code:
/** |
Re: GetParticleAnalysisReport causes crash
Quote:
Code:
ColorImage* camerain = camera->GetImage(); |
Re: GetParticleAnalysisReport causes crash
The prior post is fine as well, but if you're still wondering the subtlety of why yours didn't work originally, see the // **CHANGE** line here...
Code:
ColorImage* camerain = camera->GetImage();bob |
Re: GetParticleAnalysisReport causes crash
Thank you all very much. It's working now.
|
Re: GetParticleAnalysisReport causes crash
Would you share how you solved your problem so other people can learn from it?
|
| All times are GMT -5. The time now is 13:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi