:CONFigure:MODule:ALL?
Query Syntax
:CONFigure:MODule:ALL?
Query Response
"<model number-serial number>","<model number-serial number>",...
Description
Returns a string of all DCA-M modules that have been recognized by FlexOTO. The string includes all DCA-M modules shown on the Detected DCA-M Modules palette and includes DCA-Ms placed on the Hardware Diagram. Each name is enclosed in double-quote characters and comma-separated. For example:
"N1078A-US78000001","N1092D-US92000001","N1078A-US78000001","N1092D-US92000001","N1092B-US92000001","N1092B-US92000001",...
The following table lists the supported DCA-M modules.
Supports automatic detection via USB by FlexOTO.
Options CDR and 40A required.
An N1077A-SXT, N1077B-SXT, or N1078A-SXT requires an external optical splitter to provide an optical data to an input channel of the N109x-series DCA-M oscilloscope.
Python Example
This simple example, returns from FlexOTO the name of every valid DCA-M module that is recognized. The output also indicates if the module is installed on the Hardware Diagram.
import pyvisa as visa
rm = visa.ResourceManager(r'C:\WINDOWS\system32\visa64.dll')
FlexOTO = rm.open_resource('TCPIP0::localhost::hislip0,4880::INSTR')
FlexOTO.timeout = 5000 # Set connection timeout to 5s
FlexOTO.read_termination = '\n'
FlexOTO.write_termination = '\n'
modules = FlexOTO.query(':CONFigure:MODule:ALL?')
modules = modules.split(',')
print(str(len(modules)) + ' Modules Detected by FlexOTO:')
for module in modules:
if int(FlexOTO.query(':CONFigure:MODule:ACTive? ' + module)):
print('\t' + module + ' is installed on Hardware Diagram.')
else:
print('\t' + module + ' detected but not placed on Hardware Diagram.')
FlexOTO.write(':SYSTem:GTLocal')
FlexOTO.close()
The output from this script would look similar to this:
6 Modules Detected by FlexOTO: N1078A-US78000001 is installed on Hardware Diagram. N1078A-US78000002 detected but not placed on Hardware Diagram. N1092B-US92000003 detected but not placed on Hardware Diagram. N1092B-US92000004 detected but not placed on Hardware Diagram. N1092D-US92000001 is installed on Hardware Diagram. N1092D-US92000002 detected but not placed on Hardware Diagram.