Problem

The LabVIEW 1172 error is a generic error code for any .NET exception. An example is pictured below:

Solution

Since this is a generic error message that can report all possible .NET exceptions, there are many reasons for its occurrence and many possible solutions depending on the specific exception.

The most common cause of this error for the A3200, Ensemble, and Soloist LabVIEW APIs is a result of referencing the incorrect .NET library from LabVIEW. When the A3200/Ensemble/Soloist software version is upgraded or downgraded, any existing LabVIEW projects that were built on the previous .NET library version are likely to throw a 1172 error in the new software version. The LabVIEW project must be updated to reference the .NET library and the LabVIEW VIs included with the new software version.

Referencing the .NET Library from LabVIEW

The A3200/Ensemble/Soloist LabVIEW VIs use objects in the respective .NET library. National Instruments strongly recommends that VIs that use .NET objects be contained in a LabVIEW project and not be used as stand-alone VIs (for more information, refer to the National Instruments LabVIEW help topic, Using .NET with LabVIEW).

LabVIEW searches for necessary .NET assemblies in subdirectories named Bin and Data of the project path. By default, the Bin directory is located in the A3200/Ensemble/Soloist installation directory, under \LabVIEW\20xx\Bin. You must copy the Bin folder to the project location so that LabVIEW can find the necessary assemblies. 

A3200/Ensemble/Soloist installation directory:

A3200EnsembleSoloist

C:\Program Files\Aerotech\A3200

C:\Program Files\Aerotech\Ensemble

C:\Program Files\Aerotech\Soloist

To copy the necessary assemblies to the correct path

  1. For existing LabVIEW projects the VIs must be updated to use the VIs located in the A3200/Ensemble/Soloist installation directory/LabVIEW/20xx. These VIs are the correct version for the currently installed software.
  2. In the installation directory, under \LabVIEW\20xxfind the Bin folder. Copy the Bin folder to the folder where the LabVIEW project is saved.
  3. Close LabVIEW. Then reopen LabVIEW and it will locate the copied assemblies.