ni / niveristand-scan-engine-ethercat-custom-device

Provides NI Scan Engine, EtherCAT and Remote IO support for NI VeriStand
MIT License
16 stars 22 forks source link

Deploying different FPGA bitfiles and Scan modes requires a target reboot #211

Open Karl-G1 opened 2 years ago

Karl-G1 commented 2 years ago

Describe the bug While developing tests to exercise the custom device when using different FPGA and Hybrid mode configurations, we found that changing the bitfile / scan engine mode between VeriStand deployments results in errors. These errors imply that LabVIEW RT is crashing, but regardless of the different errors returned, the target must be rebooted for subsequent deployments to succeed.

To Reproduce The easiest way to reproduce this is to run the three system tests for a cRIO 9045 and 3x 9401s added in #207:

image

Alternatively, manually deploy 2 of the system definition files contained in the test assets.

Workaround Before changing the new configuration, reboot the cRIO. This appears to work every time, regardless whether all of LabVIEW RT crashes.

Expected behavior Ideally the custom device could deploy any Scan Engine mode, FPGA bitfile, or combination thereof without a need to reboot the target.