WaitForNextOutput
- Updated2026-03-24
- 1 minute(s) read
Waits until the next output request is ready or simulation ends.
Syntax
Function WaitForNextOutput ( _
ByRef bTimedOut As Boolean, _
ByVal nWaitTime As int32) As Variant)
Parameters
nWaitTime—Specifies the number of milliseconds to wait before timing out when waiting for an output.
bTimeOut—Indicates whether or not a time out occurred while waiting for an output.
Remarks
Returns when the next output request is available for collection, the simulation time has completed, or a timeout has occured.
The return value outputNames contains a list of output requests (an array of strings) that are complete and ready to be collected. If no outputs are ready, the array is empty.
If no output requests have been set, or if there is an output already waiting, then it returns immediately.
Example
See example for OutputReady.