You need to make sure that NhaspX is set correctly for MasterCAM X7. As described on the official website where his issue has been discussed.
Here is the image with the first fix:

Additionally, move the HASP to another port because it's common for ports to become stuck.