hexagon logo

PC-DMIS 2017 (interop.pcdlrn.dll) issue on profile of a surface measurements

Hi,

i am software programer so i dont really know about inspection and CMM.

i am having issue using the library interop.pcdlrn.dll for the command "perimeter scan" for a "profile of surface".


when i'm using the librairy it shows a measurement value of 0 like if the machine is offline. but when i use the software PC-DMIS, i have the good results.


but when i do a "constructed set" for a "profile of surface" i have good results either if im using the library or the software.

i dont't understand how the library can act differently from the software. this strange behavior prevents us to use the custom software on the prod environnment.

because im a software programmer i dont really know how to express myself in this forum so i'm sorry if i dont give enough details

Parents
  • Anders, I too was confused by some of the details, and lack thereof. r.nitubu, let me ask this a different way. Do you see the machine moving when you run it from the script. I suspect you are getting frustrated with these questions, but when we assume, well. . . . .

    Aside from that, we wrote a simple VBA automation project to execute a similar program using a perimeter scan and then a surface profile, executing online there was no problem.

    Can you attach ALL the files involved please? The PRG, the c# project with all subs and functions, and whatever else might be included and we will try it again here in a different way.

    and. . . let me ask you for one more file. In PC-DMIS, make sure debug is enabled. You'll find this under Edit - Preferences - Machine Interface Setup and then the Debug tab. Enable the debug log, then exit PC-DMIS. Now start PC-DMIS (without automation) and execute that same routine. Then exit PC-DMIS and send the debug file. It is usually called debug.text and found in the folder named C:\ProgramData\Hexagon\PC-DMIS\2017 R2 with that last folder based on whatever version you are using. Please send that file also


    Sorry Don if i'm not clear. and no i'm not frustrated, you can ask me anything that can help you.

    Yes, i see the machine moving when I set my C# app to "CMM1". that's my probleme, When I execute my PP trough C#, even if the machine is moving, for a specific command, results are outputted like the machine was offline. but when I use directly PC-DMIS to run my PP, we don't have any problems.

    when I set my C# app to "offline". some values are outputted at the DEV and Measurment:
    https://www.pcdmisforum.com/filedata...3&d=1528143063
    i saw on this forum that it was an unusual behavior
    https://www.pcdmisforum.com/forum/pc...line-deviation

    I don't know if it can be a hint or not.


    Don, i'm preparing a package i can send you easily, can you send me an email ?

    Thanks for your time.
Reply
  • Anders, I too was confused by some of the details, and lack thereof. r.nitubu, let me ask this a different way. Do you see the machine moving when you run it from the script. I suspect you are getting frustrated with these questions, but when we assume, well. . . . .

    Aside from that, we wrote a simple VBA automation project to execute a similar program using a perimeter scan and then a surface profile, executing online there was no problem.

    Can you attach ALL the files involved please? The PRG, the c# project with all subs and functions, and whatever else might be included and we will try it again here in a different way.

    and. . . let me ask you for one more file. In PC-DMIS, make sure debug is enabled. You'll find this under Edit - Preferences - Machine Interface Setup and then the Debug tab. Enable the debug log, then exit PC-DMIS. Now start PC-DMIS (without automation) and execute that same routine. Then exit PC-DMIS and send the debug file. It is usually called debug.text and found in the folder named C:\ProgramData\Hexagon\PC-DMIS\2017 R2 with that last folder based on whatever version you are using. Please send that file also


    Sorry Don if i'm not clear. and no i'm not frustrated, you can ask me anything that can help you.

    Yes, i see the machine moving when I set my C# app to "CMM1". that's my probleme, When I execute my PP trough C#, even if the machine is moving, for a specific command, results are outputted like the machine was offline. but when I use directly PC-DMIS to run my PP, we don't have any problems.

    when I set my C# app to "offline". some values are outputted at the DEV and Measurment:
    https://www.pcdmisforum.com/filedata...3&d=1528143063
    i saw on this forum that it was an unusual behavior
    https://www.pcdmisforum.com/forum/pc...line-deviation

    I don't know if it can be a hint or not.


    Don, i'm preparing a package i can send you easily, can you send me an email ?

    Thanks for your time.
Children
No Data