Hello,
I am attempting to implement control code for the NI 9512 motion module on my cRIO 9074 on board FPGA. I believe I have all the settings correct in order to operate in FPGA interface mode and I am able to read values from my module while in safe mode. The trouble is whenever I attempt to switch my module from configuration mode to active mode I receive module fault 32 which forces the module into safe mode and I it will not let me switch back to configuration mode without restarting my VI.
My FPGA VI simply controls the state of the 9512 in one loop and reacts to the current state in a second loop. I can not determine what might be causing this fault or why I can't change states once it is triggered.
Here are some snippets of my code:
Image may be NSFW.
Clik here to view.
This loop simply controls the 9512 module state. When the update state Boolean control is false it simply iterates through an empty case.
Image may be NSFW.
Clik here to view.This is the loop that actually writes information to the module. The inserted diagram shows the possible module state transitions for reference (I have also attached the image for easier viewing).
The image above is currently showing the configure state which simply controls module settings. The initialize state remains empty because no settings can be changed while the module is in initialization mode. I also combine the active and fault (safe mode) cases which simply write to the FPGA write buffer scan values to module and then read the updated values.
Any input would be greatly appreciated I've been hitting my head against a wall trying to get this thing to work.