:REPository:MEASure:AMPLitude:SELection
Command Syntax
:REPository:MEASure:AMPLitude:SELection <measurements>
Where <measurements> is a comma-separated string of indexes that selects one or more measurements. For example, "1,3,5".
Query Syntax
:REPository:MEASure:AMPLitude:SELection?
Description
For the Selected publishing mode, selects to publish one or more Jitter Mode interference measurements that are listed in the Amplitude panel. Measurements are identified using an index that represents the measurement's location in the panel. In this picture, the indexes are 1 for TI (Ones), 4 for RN (Zeros), and 5 for DI (σ-σ). Programmatically, the you can return the index using the measurement's child :LOCation?
query.
Example Command Sequence
To return the location of the RN (Zeros) measurement, you would use these commands.
FlexDCA.write(':REPository:MEASure:PMODe SELected') FlexDCA.write(':MEASure:AMPLitude:LEVel:LEVel 0') index = FlexDCA.query(':MEASure:AMPLitude:RN:LOCation?') FlexDCA.write(':REPository:MEASure:AMPLitude:SELection ' + index)
Indexes
- To find a measurement's index by query
- To find a measurement's index from FlexDCA's GUI
- More information on measurement indexes
Example Program
The following Python code shows how you can programatically gather measurement indexes using the measurement's :LOCation?
child query. The indexes are then used to select the measurements for publishing. The program assumes that FlexDCA is in oscilloscope mode and that a single-valued waveform is displayed.
import visa # import VISA library import time rm = visa.ResourceManager() # Create an instance of PyVISA's ResourceManager FlexDCA=rm.open_resource('TCPIP0::localhost::hislip0,4880::INSTR') FlexDCA.read_termination = '\n' FlexDCA.write(':MEASure:OSCilloscope:FALLtime') FlexDCA.write(':MEASure:OSCilloscope:PERiod') FlexDCA.write(':MEASure:OSCilloscope:RISetime') indexes = [] indexes.append(FlexDCA.query(':MEASure:OSCilloscope:RISetime:LOCation?')) indexes.append(FlexDCA.query(':MEASure:OSCilloscope:FALLtime:LOCation?')) s = ','.join(indexes) print('Index string: ', s) FlexDCA.write(':REPository:MEASure:OSCilloscope:SELection ' + s) time.sleep(0.5) FlexDCA.write(':SYSTem:GTLocal') FlexDCA.close()
Requires FlexDCA revision A.05.70 and above.
Starting with FlexDCA revision A.06.02, a FlexDCA license is no longer required to use FlexDCA with the N8844A Data Analytics Web Service Software.