Solution
TestStand and other external applications cannot handle FPGA Refnums when interfacing with LabVIEW .NET Interop DLLs. To resolve this issue, perform the type casting within the DLL itself. Follow these steps:
-
Convert the FPGA Refnum to a U64 Numeric Value: Within the DLL, cast the FPGA Refnum to a U64 numeric value before passing it to TestStand or the C# API using the Type Cast function. This ensures compatibility with the external application's data handling.

-
Pass the U64 Numeric Value to the External Application: Use the U64 numeric value in your TestStand sequences or C# API calls as needed.
-
Convert Back to FPGA Refnum in LabVIEW: When the value is returned to LabVIEW, use the same Type Cast function to cast the U64 numeric value back to an FPGA Refnum to restore its original type and functionality.

By implementing these steps, you can ensure smooth communication between external applications and LabVIEW through the .NET Interop DLLs.