:JOBS:RESults:MEASure:USER?

Flex Apps:
FlexOTO
FlexOTO Instance:
Stations

Query Syntax

:JOBS:RESults:MEASure:USER? <Job ID>,  "<measurement-name>"

Where <measurement-name> is an string that is the measurement name returned by the Instrument driver.

Where <Job ID> is an integer that represents the Job ID.

Description

Returns the measurement result for the specified user measurement name and Job ID. If the specified Job ID does not exist in the current Job Results, the query returns the value 9.91E+37 NaN (Not-a-Number). The returned measurement is a float that is not formatted. For example, 1.3000000000. To return a formatted version of the measurement result, use the :JOBS:RESults:MEASure:USER:FORMatted? query.

The <measurement-name> is returned to FlexOTO along with the measurement results in response to FlexOTO automatically sending the measure command to the instrument driver. FlexDCA also uses the name to label measurement in the column heading on the Job Results panel. The user measurement's name is defined in the Instrument driver and this exact name must be passed in this command argument.

Example

This example Python script returns the "User TDECQ" measurement that is performed by a measurement instrument. Job ID number 8, the associated Fixture name and Lane number is returned along with raw measurement results and formatted measurement results.

Copy
Returning a User Measurement
#******************************************************************************
#    MIT License
#    Copyright(c) 2023 Keysight Technologies
#    Permission is hereby granted, free of charge, to any person obtaining a copy
#    of this software and associated documentation files (the "Software"), to deal
#    in the Software without restriction, including without limitation the rights
#    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#    copies of the Software, and to permit persons to whom the Software is
#    furnished to do so, subject to the following conditions:
#    The above copyright notice and this permission notice shall be included in all
#    copies or substantial portions of the Software.
#    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#    SOFTWARE.
#******************************************************************************

import pyvisa as visa  # import VISA library
rm = visa.ResourceManager()
station1 = rm.open_resource('TCPIP0::localhost::hislip1,4880::INSTR')
station1.read_termination = '\n'
station1.write_termination = '\n'

fixture = station1.query(':JOBS:CONFig:FIXTure? 8')
print('Fixture: {}'.format(fixture))

lane = station1.query(':JOBS:CONFig:LANE? 8')
print('Lane: {}'.format(lane))

result = station1.query(':JOBS:RESults:MEASure:USER? 8, "User TDECQ"')
print('Results: {}'.format(result))

result_formatted = station1.query(':JOBS:RESults:MEASure:USER:FORMatted? 8, "User TDECQ")
print('Results (formatted): {}'.format(result_formatted))

station1.write(':SYSTem:GTLocal')
station1.close()

The output from this script would look similar to this:

Fixture: FIXT1
Lane: LAN4
Results: 1.10000000000000
Results (formatted): "1.10 dB"