Table Of Contents

Device Debugging

Version:
    Last Modified: January 31, 2017

    You can monitor or control your device in the soft front panel (SFP) while the device is used by another application, such as LabVIEW, TestStand, or a C/C++/.NET application.

    If you receive unexpected results from your application, you can change device settings in the SFP to help troubleshoot the issue. For example, you can pause the application where you suspect an error, edit the device settings in the SFP, and resume your application with the new settings.

    spd-note-note
    Note  

    Debugging features are not supported when using single or multi-channel sweep modes in the SFP.

    Monitoring and Controlling Devices

    Complete the following steps to monitor and control the device in the SFP when the device is in use by other applications.

    1. Click the Monitor button to find open driver sessions to monitor. The SFP has ready-only access to the session, and the controls are disabled.
    2. Click the Control button to take control of the session when you run into a breakpoint in the code and if the instrument is not being accessed by your test sequence. If you click Control and no sessions are being monitored, the SFP takes ownership of the device.
    3. Edit the device settings.
      spd-note-note
      Note  

      If the host application makes any calls to the device driver while you are controlling the device with the SFP, the SFP will return to monitoring the session.

    4. Click the Monitor button to return to monitoring the session. The updated settings are applied to the session.

    Disabling Debugging

    1. Select Configure Debug Session from the menu in the instrument header to view debugging settings.
    2. Deselect Debug Enabled to disable debugging for a specific device.
    3. Click OK. Restart the application for changes to take effect.

    Debugging a C/C++/.NET Application

    Complete the following steps to debug a C/C++/.NET application using the soft front panel (SFP).
    1. Select Configure Debug Session from the menu in the instrument header to view debugging settings.
    2. Select Breakpoint Enabled to enable this debugging feature. Click OK.
    3. Debug your application. When you are done, deselect the Breakpoint Enabled option in the SFP and restart your application.
      spd-note-note
      Note  

      Supporting communication with your device in C/C++/.NET environments at breakpoints requires additional overhead that affects performance.


    Recently Viewed Topics