DCode
Covers Engine 2.0.0
promptNumerical
Display a numerical ARGUS prompt and return its response. In a timeline bucket, suspends only that bucket until the response arrives; the mission clock and other due buckets continue. Other execution contexts wait on their invoking thread.
Syntax
promptNumerical(title, description, channels?, resolution?, auto_acknowledge?, system?, subsystem?)Available in
- File scope
- Executable DCode bodies
Native C++
Native C++ calls this function through the engine host. It can allocate or block; review use in a control callback.
Rules
- Arguments are positional. Firing has no automatic timeout; answering the prompt or releasing the hold ends its firing and wait.
Example
promptNumerical("title", "description", [], "", 0)Inputs
title(string): ARGUS titledescription(string): ARGUS body textchannels(array<string|array>): ARGUS graph specification. One graph: [“|temperature|@1”, “>100@1”]. Multiple stacked graphs: [[“|temperature|@1”], [“|pressure|@1”, “=50@2”]]. Commas add series, nested arrays add graphs, and @1 through @5 selects a series or overlay Y axis. Series may be |channel|, >value, >=value, <value, <=value, or =value. resolution(string): Recommended operator actionauto_acknowledge(integer seconds): Seconds before visual acknowledgement; zero disables itsystem(string): ARGUS system groupingsubsystem(string): ARGUS subsystem grouping
Outputs
response(number): Numeric operator response