Wait until specified event ID is obtained or time-out occurs
output = waitForHdlClient(TimeOut,EventID)
for the expected HDL simulator event ID to arrive at the MATLAB® server
hdldaemon) before processing continues. If the
expected event ID arrives before the number of seconds specified by
TimeOut parameter, the value returned by
the HDL simulator is the HDL simulator process identification (PID).
Otherwise, the returned value is –1.
EventID = 1 for
waitForHdlClient waits for
= 1 for 60 seconds.
the process identification (PID) in
output = waitForHdlClient(
you are not required to provide an output variable, MATLAB returns
an error if a time-out occurs and the output argument is not specified.
Number of seconds to wait for a response from the HDL simulator
The HDL simulator event ID.
Output variable for holding returned value from call to
Wait for event ID 2 for 120 seconds.
>> hdlpid = waitForHdlClient(120, 2);