request_flux
device, type, pol, dt
Request that a specified receiver integrate and send back a flux.
ReceiverName device
FluxType type
PolType type
Double dt
request_flux kuband, ant, total, 0:0:10 until $acquired(flux) | $elapsed > 0:0:20 if($acquired(flux)) { print "Received flux = ", $requested_flux.flux, " +/- ", $requested_flux.sdev } else { print "Timed out waiting for a flux from the receiver." }
tell
command, to configure
how such fluxes are obtained.
In keeping with all other commands in the scheduling language,
the request_flux
command does not wait for the flux
to be obtained before returning control to the scheduling
script. Rather it just sends the request to the receiver, and
leaves it to the schedule writer to decide when and for how long
to wait for the flux reply. As shown in the above example,
waiting for this reply can be done by using
an until
statement to wait for
the $acquired(flux)
function to become true. Once it becomes true, then the
$requested_flux()
function can be used to access the returned flux and its
uncertainty.