Error -307661 NI VeriStand Failed to Deploy the System Definition File

Updated Apr 26, 2021

Reported In

Software

  • VeriStand

Issue Details

 
  • After upgrading NI VeriStand, I cannot deploy my VeriStand project. 
  • I added files from a previous VeriStand project to my current project and now it failed to deploy.
  • After inserting the correct WebDAV password to deploy my VeriStand project, I receive the following message:
    Project Window.lvlib:Project Window.vi > > Project Window.lvlib:Command Loop.vi >> Project Window.lvlib:Connect to System.vi <append> ========================= NI VeriStand: NI VeriStand Gateway.lvlib:VeriStand Server Wrapper.vi >> NI VeriStand Server.lvlib:NI VeriStand Server.vi >> System Definition Deployment.lvlib:Deployment Dialog.vi >> System Definition Deployment.lvlib:Deploy Target Files.vi >> WebDAV.lvlib:WebDAV Open Session.vi 
    
    Error -307661 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Command Loop.vi >> Project Window.lvlib:Connect to
    System.vi
    
    Possible Reason(s): NI VeriStand failed to deploy the system definition file.

    deployment error.png
    NI VeriStand Gateway.lvlib:VeriStand Server Wrapper.vi >> NI VeriStand Server.lvlib:NI VeriStand Server.vi >> Waveform Services.lvlib:Clear Active Streams.vi >> Server TCP Interface.lvlib:TCP Send Target System Command.vi: 5680001 >> Server TCP Interface.lvlib:TCP Send Target 
    Message.vi:890001 <append>========================= NI VeriStand: Controller
    
    Target error.png
  • I am using VeriStand 2020 with a model created in LabVIEW 2019. The deployment prints this error on the console: 
    Can't find liblvrt 19.0 

Solution

This error occurs when the LabVIEW version in which the model has been created is different from the VeriStand version in which the VeriStand project has been developed. For example, VeriStand 2019 uses LabVIEW Run-Time Engine 2019, so LabVIEW models must be compiled in LabVIEW 2019. Check the readme for the version of VeriStand being used for further information on this. To fix the error: 
  1. Ensure the correct software has been installed on the host PC and target by checking if they match each other and are the ones recommended in the current VeriStand version's readme. 
    1. Installing Software on Phar Lap Real-Time (RT) PXI Controller
    2. Installing Software to Offline NI Linux Real-Time Targets
  2. To verify VeriStand is installed correctly on the target plug a monitor into the target if there is a display port out. Restart your target and after a minute you should see the monitor/console out say "NI VeriStand engine idle. Awaiting command"
  3. Once error -307661 occurs, VeriStand will not successfully deploy even an empty project until the target is restarted. Open up NI Measurement & Automation Explorer (MAX) and select the target (e.g PXI, cRIO) the project is being deployed to and click Restart
  4. Wait for the target to restart and give it a minute to start the VeriStand Engine and connect with the host PC.
  5. Either rebuild all LabVIEW models in the required version of LabVIEW or identify the specific models to be rebuilt in case there are many LabVIEW models saved on the PC and most of them are not required to the project.
    1. To identify specific models that need rebuilding, please create an empty project and add the LabVIEW models 1 by 1 to identify the model(s) causing the issue. Follow steps 3 and 4 to restart the target once the error occurs again, or it will not be possible to deploy any VeriStand project. 
  6. Check the readme for the version of VeriStand being used to find the version of LabVIEW the models need to be built-in.
  7. Use the LabVIEW VI source for the LabVIEW model to build the model for use in NI VeriStand
  8. After ensuring the RT target has been restarted since the error was last received, add the model to a VeriStand project and try to deploy the project. 
This error can also occur if CPU cores of the RT target have been disabled. For guidance on re-enabling them, refer to the CPU Configuration Submenu section of the RT target's user manual. 

Additional Information