I am currently developing a new software for a new machine. I need to interface my .NET program to COM DLL to control the hardware. I was writing one DLL for common methods which I can reuse in future applications. I was also writing Windows Application for the methods specific to that machine.
The COM DLL that I am calling from my DLL is written by "ADLink" technology which interfaced to Motion Control module and I/O modules. I was trying to drive servo motors from that DLL. I could successfully drive the servo but it took 10 seconds for my Windows application to receive motion complete event from Servo. I was trying to troubleshoot servo and motion control card but I have no clue what was actually happening.
Finally, I found the problem when I carefully log every line of code in my program. It took 10 seconds to receive the event from DLL to my Windows Application. I tried to move the event raising to Windows application and the problem was solved.
No comments:
Post a Comment