I am working a motor control project which requires at least four PWM signals to control 4 motor based on some control logic. To make the PWM generation easier, 4 PWM express VI on RT target are used to create the desired PWM signals. Also, a customlised FPGA VI is needed to operate continously while the 4 PWM express VI works. when I combine the PWM express VI and the customlised FPGA VI together, I found that always one VI cannot work correctly.
In order to illustrate this problem clear, I upload the error_demonstration.rar to help me explan this. If I open the customlised FPGA VI reference and then execute a PWM express VI continously without closing the FPGA VI reference, like what you see in RT_VI_with_FPGA.vi, the logic of FPGA VI is working as I expected but no PWM signal being generated by the PWM express VI. Also, a error code -61202 is received.
If I close the FPGA VI reference before making PWM express VI working, like what you see in RT_VI.vi, I will loss the FPGA logic but PWM signal can be detected at the desired pins, which indicates the PWM epress VI works correctly.
So my questions is how to keep PWM express VI working correctly while a customlised FPGA VI is operating? In other words, what can I do to ensure both express vi and the customlised vi can work together without affecting each other?