FAQs from Rohde & Schwarz

Labview stops working as soon as the software is compiled

Question

I've been writing code for a Rohde & Schwarz instrument that we have on site and have run

into a problem. I've downloaded the LabVIEW driver software from the Rohde & Schwarz web site.

The basic problem is that the code seems to work fine in the normal developer mode, but stops

working as soon as the software is compiled. I am using LabVIEW 2011.

Answer

Let me direct your attention to the application note 1MA170

http://www2.rohde-schwarz.com/en/service_and_support/Downloads/Application_Notes/?type=20&downid=5727

Please see chapter 3.1.2:

3.1.2 How to Build Executables in LabVIEW

The driver core of the attribute-based instrument drivers is dynamically linked

to any executed VI during runtime. This cannot be recognized by the LabVIEW application

builder. The LabVIEW application builder follows all static dependencies and

includes them in the distributed package when building an executable.

To create an executable in LabVIEW, please manually add all VIs in the <inst

lib>\rsXYZ\_utility\rsXYZ_core\callbacks\ folder to the LabVIEW project. With

this manual reference, the driver core is included in the build and the driver core

is accessible during runtime as well.