Solution
You will need to reinitialize the SoftMotion Engine. Two reinitialization sequences and their corresponding pieces of example code are described below to ensure that your code runs in the appropriate Scan Engine mode.
Make sure you run one of the two examples below as part of your initialization code in RT main to ensure that the scan engine and/or FPGA is initialized in the proper order.
Reinitialize the Scan Engine, when not in hybrid mode:
- Transition the Scan Engine to Configuration Mode
- Clear any Scan Engine faults
- Reset the SoftMotion Engine
- Transition the Scan Engine to Active Mode
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
Using the NI 951x drive interface modules in hybrid mode or using a Real-Time target running user-programmed FPGA code:
- Transition the Scan Engine to Configuration Mode
- Load, reset, and run the FPGA bitfile
- Clear any Scan Engine faults
- Reset the SoftMotion Engine
- Transition the Scan Engine to Active Mode
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
Reinitialize software and hardware:
- Close LabVIEW.
- Disconnect your Drive from the EtherCAT master and the EtherCAT master from the host PC.
- Reboot your Drive, EtherCAT master, and your host PC.
- Reconnect all the hardware.
- Open LabVIEW, connect your EtherCAT master, and deploy all.