Error -66208 When Redeploying a VeriStand Project Using the Scan Engine & EtherCAT Custom Device

Updated Oct 30, 2023

Reported In

Software

  • VeriStand

Driver

  • NI-Industrial Communications for EtherCAT

Issue Details

I am using the VeriStand Scan Engine and EtherCAT Custom Device with a large amount of EtherCAT I/O variables.

I can deploy my VeriStand System Definition successfully on the first attempt, but if I undeploy and attempt to redeploy the same System Definition, I receive the following error:
SEECD Error Full.png

NI VeriStand:  Error occurred at the following location:

"Targets/Controller/Custom Devices/Scan Engine and EtherCAT"
Error -66208 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Command Loop.vi >> Project Window.lvlib:Connect to System.vi

Possible reason(s):

LabVIEW: (Hex 0xFFFEFD60) Invalid variable refnum.  Either the variable was deleted after the reference was opened or a valid reference was never opened.

How do I resolve this so that I can redeploy my system definition?

Solution

This issue occurs because of a known issue where the URL for an I/O variable returns as "localhost" rather than the IP address of the variable when a CompactRIO target is hosting more than 255 I/O variables.

Restarting the CompactRIO target will resolve this issue.

Alternatively, Pull Request #199 on the Scan Engine and EtherCAT Custom Device Github page addresses this issue by overwriting the 'localhost' address with the correct IP address. This can be used and the custom device can be rebuilt with this change, which will resolve the issue. This fix will be included in all releases of the custom device after 21.0.0.