Error -61202 When Calling LabVIEW FPGA VI from Vision Builder

Updated Feb 13, 2019

Reported In

Hardware

  • Industrial Controller
  • CVS-1458
  • CVS-1459

Software

  • Vision Builder for Automated Inspection

Issue Details

I need to call a LabVIEW VI from Vision Builder for Automated Inspection (VBAI) using a Run LabVIEW VI step. The VI that I am calling opens a reference to an FPGA VI and runs it. When I call the VI using the Run LabVIEW VI step in my inspection, I get the following error:

Error -61202 occurred at niLvFpga_Open_IC-3172.vi:6000001

Possible reason(s):

LabVIEW FPGA: LabVIEW could not perform the operation because an FPGA VI reference to another VI is currently open You must close the currently open FPGA VI reference before attempting to perform this operation.

Solution

By default, when running VBAI on a Real-Time target, such as an NI Industrial Controller or Compact Vision System, VBAI uses a default FPGA profile to give the user access to the I/O pins on their device using the Vision RIO steps. In order to do this, VBAI opens a reference to the FPGA. In order to run a custom FPGA VI, you must configure VBAI to allow other functions to access the FPGA:
  1. Open a VBAI inspection in configuration mode on your Real-Time target.
  2. Go to the Communicate tab in the functions palette.
  3. Click on Read/Write I/O (Vision RIO) to configure a new Vision RIO step.
  4. In the step configuration, click Configure.
  5. In the Vision RIO Device Configuration window, choose the option Available for other functionality and click OK.
  1. Once you have configured this, you can cancel the Read/Write I/O (Vision RIO) step.
  2. In order for this change to go into effect, restart your Real-Time controller. 
You should now be able to add a Run LabVIEW VI step that calls a VI that opens an FPGA reference.

Additional Information

Either Vision RIO or a custom FPGA VI can use the FPGA, but not both at the same time. By configuring the Real-Time controller's FPGA to be available to other functionality, it is no longer available for use in Vision RIO steps. If you need to interact with the device's I/O channels, you can continue to do so inside of your custom FPGA VI. Otherwise, you can revert back to using the FPGA for Vision RIO steps by choosing the Reserved for Vision RIO steps option in the window shown above.