| Contents | Index |
waitForHdlClient(TimeOut,EventID)
waitForHdlClient(TimeOut)
waitForHdlClient
output = waitForHdlClient(TimeOut,EventID)
waitForHdlClient(TimeOut,EventID) waits 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 the TimeOut parameter, the value returned by the HDL simulator is the HDL simulator process identification (PID). Otherwise, the returned value is –1.
waitForHdlClient(TimeOut) waits for EventID = 1 for TimeOut seconds.
waitForHdlClient waits for EventID = 1 for 60 seconds.
output = waitForHdlClient(TimeOut,EventID) returns the process identification (PID) in output. Although 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.
output |
Output variable for holding returned value from call to waitForHdlClient. Contains either the HDL simulator process identification (PID) or –1 if an error occurs. |
Wait for event ID 2 for 120 seconds.
>> hdlpid = waitForHdlClient(120, 2);

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |