Wait until specified event ID is obtained or time-out occurs
waits for the expected HDL simulator
pID = waitForHdlClient(
eventID to arrive at the MATLAB® server before processing continues. If the expected
arrives before the number of seconds specified by
timeOut the value
returned by the HDL simulator is the HDL simulator process ID (PID).
pID = waitForHdlClient
eventID = 1 for
Wait for event ID 2 for 120 seconds.
>> ID = waitForHdlClient(120,2);
timeout— Number of seconds to wait for response
Number of seconds to wait for a response from the HDL simulator, specified as a positive scalar.
eventID— Event ID expected at MATLAB server
Event ID expected at the MATLAB server, specified as a scalar or vector.
be a positive number less than the maximum value of a 32-bit signed integer. The value
must match the event ID sent by the
notifyMatlabServer command in the HDL simulator.
When specified as a vector the function returns a value when all the elements of the
vector have been collected or a time-out occurs. The returned output value is the same
eventID, and each element of the output variable is the
pID of the HDL simulator that corresponds to the event
pID— Process ID of HDL simulator
Process ID of the HDL simulator, returned as a scalar or a vector. If a time-out
pID is returned as
-1. The output
value depends on the value of
The function returns a scalar representing the detected PID of the HDL simulator.
The function returns a vector the same size as