:TPRogram:RUN?

Flex Apps:
FlexOTO
FlexOTO Instance:
Stations

Query Syntax

:TPRogram:RUN?

Query Response

<job-ids>

A comma delimited string of integers representing job IDs. For example, 12,13,14,15.

Description

Starts a Station's Test Program and returns a comma delimited string of Job ID numbers. Job IDs identify the measurement results for a specific fixture's Lane. Pass a Job ID to :JOBS subsystem commands in order to select a Fixture/Lane combination for returning various measurement results and to perform tasks such as:

  • Cancel a currently running job.
  • Return a completed job's measurement results.
  • Return configuration settings for a completed job.
  • Select a job in FlexOTO's Job Results panel.

The command is equivalent to clicking the Test Program panel's Run button.

In the following code snippet, if :TPRogram:RUN returned "4,5,6,7", you could pass the first Job ID (jobids[0]) which in this example is 4, to the following commands to return panel results for the Lane including fixture name, Lane number, and the Outer OMA measurement.

...
jobids[0] = station.query(':TPRogram:RUN?').split(',')
station.query(':ACQuire:COMPlete?')
station.query('*OPC?')
dut = station.write(':JOBS:RESults:FIXTure? jobids[0]')  # Fixture name
lane = station.write(':JOBS:RESults:LANE? jobids[0]')  # Lane number
ooma = station.write(':JOBS:RESults:MEASure:OOMA? jobids[0]')  # outer OMA measurement
...

The above commands run on the Job Results panel shown in the following picture would result in "FIXTure1" assigned to dut, "LAN1" assigned to lane, and "4.996E-4" assigned to ooma.