11. Measurement Results and Job IDs
From FlexOTO's GUI, it is easy to see when the measurement results are ready for a Station A FlexOTO child process for making independent measurements for a Test Station.. In the Test Executive A module of manufacturing code used to control a single Test Station. The Test Station includes one or more DUT Fixtures. program over remote control one must use the commands shown below. Job IDs An index number that identifies either running or completed measurement line in FlexOTO's Session panel. A Job ID represents measurements from a specific DUT Fixture lane. Over SCPI, use Job IDs to select and return measurement results. are integers that identify results for a specific lane of a DUT Fixture. Each lane has its own Job ID.
In the following example code,
Line 1. The :TPRogram:RUN?
query runs a Station's Test Program A FlexOTO Session's test plan for a Test Station. A Test Program specifies measurement configuration, measurement settings, and saved results. but also returns a comma separated string of all Job IDs in the Station. The returned Job IDs are converted from a string to a list.
Line 2. The :ACQuire:COMPlete?
query pauses script execution until the following *OPC?
query returns.
Lines 4, 5, and 6. For the first Job ID in the list, these lines return the name of the associated DUT Fixture, the Lane measured, and the value of the OMA measurement result.
jobids = session.query(':TPRogram:RUN?').split(',') # Returns list of Job IDs
session.query(':ACQuire:COMPlete?')
session.query('*OPC?')
dut = session.write(':JOBS:RESults:FIXTure? jobids[0]') # Fixture name
lane = session.write(':JOBS:RESults:LANE? jobids[0]') # Lane number
ooma = session.write(':JOBS:RESults:MEASure:OOMA? jobids[0]') # outer OMA measurement