Error -63195 While Running FPGA VI using Interactive Mode

Updated Sep 30, 2021

Reported In

Software

  • LabVIEW FPGA Module
  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW Real-Time Module

Driver

  • NI-RIO

Issue Details

I am attempting to run an FPGA VI in interactive mode on a RIO device. The VI compiles and downloads successfully, but when it starts I see the following message and dialog box below. How can I resolve this error?

Target Specific Error Encountered 
A driver for the target returned the following error. Consult the LabVIEW Help database or the target documentation for help in resolving the issue. 
Error Code: -63195 
NI-RIO FPGA Communications Framework: (Hex 0xFFF0925) The handle for device communication is invalid.
 
63195.png
Figure 1: Error Message Using FPGA on CompactRIO

 

Solution

To prevent this error, try the following steps:
  • If your code has multiple loops using the FPGA reference, make sure they have finished executing before closing the reference.
  • Open the Tools » Options dialog, select the Environment category, and uncheck the Automatically Close VISA Sessions checkbox.
  • If the above step does not fix the problem, open the LabVIEW.ini file located in your LabVIEW directory with a text editor (e.g. Notepad). If you have a token that reads cleanupVisa=True, change it to cleanupVisa=False. If this token does not already exist, add cleanupVisa=False to the bottom of the INI file, save it, and restart LabVIEW.
  • Reinstall your NI-RIO/CompactRIO driver
  • Rebuild your Bitfile and make sure it's correctly linked. 

Additional Information

This error can occur if LabVIEW automatically closes the VISA session created for communicating with the FPGA backplane of the CompactRIO system.