Solution
To report errors to VeriStand that happen during the runtime of the custom device, use the NI VeriStand - Add Error Code Channel.vi inside of the System Explorer.lvlib:Initialization VI.vi to add an error code output channel to the custom device. Then in the Engine:RT Driver.vi, write the current error code to the RT FIFO at the appropriate index.
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a
snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a
snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
This reports the error to the VeriStand engine and it will automatically undeploy the current System Definition if an error code is reported.