I have a modal error curring during the calling of the flex_find_home function. The error code is -70125 "The function was not executed because it was attempted at an illegal time." I have enabled home and limit switches, and at the time of the function call no axis are moving. The axis that is called by the flex_find_home function is enabled. Funny thing is this error is only triggers on one of the axis, the others axies are completely fine and will home correctly. Any leads to what might the error be?
I am using ni-motion5.1.1 with Visual studio 2010 and the FlexMS32.lib. The motion controller in use is PCI 7344.