Enabling Simulation after Initializing

National Instruments IVI Driver

Enabling Simulation after Initializing

If you have disabled simulation when you initialize the instrument driver, some instrument drivers allow you to enable simulation at a later time. When you disable simulation at the time of initialization, the IVI Engine sets the driver to perform instrument I/O; therefore, the instrument must be present in your system. You can then enable or disable simulation at any time by setting the PREFIX_ATTR_SIMULATE attribute. If you configure the simulation driver for interactive simulation, the simulation driver displays the Simulator Setup dialog box the first time you enable simulation. When you enable simulation, the simulation driver behaves as this topic describes. This approach is useful if you want to simulate the instrument only during specific times that you run your application.