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 Modules fails when used with VeriStand 2023 Q1 #227

Closed Karl-G1 closed 1 year ago

Karl-G1 commented 1 year ago

Describe the bug When using the 23.0 release of this Custom Device with VeriStand 2023 Q1, the Auto-Detect button launches a VI that shows as broken. When clicking the broken run arrow, the indication is that nNIBlueBus_nCrioFixed_nRefnum.dll cannot be loaded.

To Reproduce

  1. Create an instance of the Custom Device using VS 2023 Q1
  2. Click Auto-Detect Modules from the main page

Workaround This workaround is admittedly messy and requires users to modify several files on disk. However, it should unblock the ability to auto-detect hardware using VS 2023 Q1.

  1. Delete the "data" folder in the installed directory of the custom device: C:\Users\Public\Documents\National Instruments\NI VeriStand 2023\Custom Devices\Scan Engine\Applications\data
  2. Add the following line to the configuration file C:\Users\Public\Documents\National Instruments\NI VeriStand 2023\Custom Devices\Scan Engine\Applications\Get HW Config.ini
viSearchPath=C:\Program Files\NI\LVAddons\crio32\1\resource
  1. Copy C:\Program Files\NI\LVAddons\crio32\1\resource\Framework\Providers\nNIBlueBus_nCrioFixed.dll to the C:\Program Files\NI\LVAddons\crio32\1\resource\ directory

Screenshots image

Additional context The R&D team is aware of this issue and are working on other workarounds or permanent fixes to be released via a patch for the custom device.