From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Using Multi-Device Sessions With NI-SCOPE

Code and Documents

Attachment

Description

Overview

This example shows how Multi-Device Sessions work in NI-SCOPE.

 

Description

NI-SCOPE 19.1 and later have the ability to specify multiple devices inside a single session. This allows the user to give configure multiple channels across multiple devices, all with the same configuration, channel characteristics, etc. This example introduces the two channel naming conventions: unqualified names (0, 1, etc) and fully qualified names (Dev1/0, Dev2/1, etc). While either name is appropriate with single-device sessions, multi-device sessions require the use of fully qualified names. If the user wants to use unqualified names instead, the Get Channel Name From String vi can be used to convert an unqualified name to the corresponding fully qualified name.

 

Hardware and Software Requirements

Hardware: Multiple PXI oscilloscopes of the same model in the same PXI chassis

Software: NI-SCOPE 19.1 or later

 

Steps to Implement or Execute Code

1. Specify each oscilloscope, separating each device name with a comma.
2. Configure desired acquisition settings, including the "Inputting Fully Qualified Names?" boolean.Set this to true if your
3. If your channel names are fully qualified (such as "Dev1/0"), set "Inputting Fully Qualified Names?" to true. If not, set it to false.
4. Run the VI.
5. Click Stop to stop the VI.
5. Notice that the List of Channel Names array populates with a list of valid names for Channel Name.

 

Additional Information or References

niScope Initialize With Options

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.