:REPository:MEASure:OSCilloscope:SELection
Command Syntax
:REPository:MEASure:OSCilloscope:SELection <measurements>
Where <measurements> is a comma-separated string that selects one or more measurements. For example, "1,3,5".
Query Syntax
:REPository:MEASure:OSCilloscope:SELection?
Description
For the Selected publishing mode, selects to publish one or more Oscilloscope Mode's measurements that are listed in the Results panel. Measurements are identified using an index that represents the measurement's location in the panel. In this picture, the index for Rise Time is 1, Frequency is 2, and Period is 3. Programmatically, the you can return the index using the measurement's child :LOCation?
query.
Example Command Sequence
To return the location of the Frequency measurement, you would use these commands.
FlexDCA.write(':REPository:MEASure:PMODe SELected') index = FlexDCA.query(':MEASure:OSCilloscope:FREQuency:LOCation?') FlexDCA.write(':REPository:MEASure:OSCilloscope: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.