Solution
This error occurs because the custom device has been compiled in the wrong bitness for your version of VeriStand.
VeriStand 2020 R6 and previous use a 32-bit engine and therefore requires any custom devices to be created/compiled in LabVIEW 32-bit.
VeriStand 2021 and later use a 64-bit engine and therefore requires any custom device to be created/compiled in LabVIEW 64-bit.
VeriStand 2021 and Later
This error occurs if you have
built the custom device using a 32-bit LabVIEW.
Open the source code (preferable on the PC where VeriStand will be running, but a computer of the same OS and bitness will usually be okay) in 64-bit LabVIEW and
rebuild the custom device from 64-bit LabVIEW.
If VeriStand is open, you must close and reopen it for any changes to the custom devices folder to be updated. Now you can add the custom device to the VeriStand project.
When moving from a 32-bit to a 64-bit version of VeriStand for the first time, if there is not already a Linux PXI target added to the project then there will be some edits you need to make to the custom device in order to build it successfully.
Follow the steps in
Creating a LabVIEW 2021 64-Bit VeriStand Custom Device LabVIEW Project to edit the XML of your existing custom device LabVIEW source project, allowing you to now build
VeriStand 2020 R6 and Previous
This error occurs if you have
built the custom device using 64-bit LabVIEW.
Open the source code (preferable on the PC where VeriStand will be running, but a computer of the same OS and bitness will usually be okay) in 32-bit LabVIEW and
rebuild the custom device from 32-bit LabVIEW.
If VeriStand is open, you must close and reopen it for any changes to the custom devices folder to be updated. Now you can add the custom device to the VeriStand project.