Sharing Control of a Device

NI High-Speed Digitizers Help (NI-SCOPE)

Edition Date: January 2017

Part Number: 370592AB-01

View Product Info

DOWNLOAD (Windows Only)


NI-SCOPE (English | Japanese)

You can debug your device by sharing a device between the SFP and another application.

Controlling a Device in Use by LabVIEW

Complete the following steps to share control between the SFP and LabVIEW:

  1. Transfer control of the device from LabVIEW to the SFP.
    1. Create a probe on a niScope session wire at a point where you suspect device setting errors. For more information about probes, refer to LabVIEW documentation.
    2. Select Debug in Soft Front Panel from the Probe Watch Window.
    3. Leave the Probe Watch Window open, and run your code. Code execution pauses at the probe, and the SFP opens with Debug Driver Session (Control) selected.
  2. Change the device settings in the SFP manually.
  3. Select Debug Driver Session (Monitor) from the pull-down menu, or close the SFP. Control of the device is given back to LabVIEW.
  4. Apply your changed device settings to your LabVIEW application, or revert your changes in the Scope Session Changes dialog box before closing the SFP.
    Tip Select Show Changes in the Debug Session Changes dialog box to display a log of device setting changes made during the Debug Driver session. Select Generate VI in the dialog box to create a VI of the device setting changes you made during the session.
  5. (Optional) Continue using your device in your LabVIEW application, with your new device settings.

Controlling a Device in Use by CVI, TestStand, or Another Application

Complete the following steps to share control between the SFP and CVI, TestStand, or another application:

  1. Pause the external application that is using your device.
  2. Launch the SFP.
  3. Select Debug Driver Session (Control) from the pull-down menu in the SFP.
  4. Change the device settings in the SFP manually.
  5. Select Debug Driver Session (Monitor) from the pull-down menu, or close the SFP. Control of the device is given back to your application.
  6. Apply your changed device settings to your application, or revert your changes in the Scope Session Changes dialog box before closing the SFP.
    Tip Select Show Changes in the Debug Session Changes dialog box to display a log of device setting changes made during the Debug Driver session. Select Export as Text to document the changes.
  7. (Optional) Continue using your device in the other application, with your new device settings.

WAS THIS ARTICLE HELPFUL?

Not Helpful