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

Auto-Detect and other actions error if EtherCAT is not installed #243

Closed Karl-G1 closed 1 year ago

Karl-G1 commented 1 year ago

Describe the bug A few action buttons in System Explorer fail with different errors if the EtherCAT driver is not installed on the host PC:

Auto-Detect Modules is the biggest problem, as it's likely the most-used action VI in the application. In the 21.0 and later releases, you will see a search dialog looking for the ECAT DLL before seeing a broken VI: image

This is not 'new' behavior, it's just an even uglier error displayed than older versions. In 20.4 and earlier, you will see a broken VI call into the LLB: image

To Reproduce Steps to reproduce the behavior:

  1. Install VeriStand 2020 or later without EtherCAT
  2. Install the latest release of the custom device
  3. Add an instance of the CD to the System Definition
  4. Click Auto-Detect Modules

Expected behavior Direct the user to the missing software instead of vague errors or searches for missing DLLs