notifyMatlabServer
Send HDL simulator event ID and process ID to MATLAB server
Description
Note
Issue this command in the HDL simulator, not in MATLAB®. It is only available after the HDL simulator loads the MATLAB library.
notifyMatlabServer
sends the HDL simulator event ID and process identification (PID) to the MATLAB server (eventID
-socket tcp_spec
hdldaemon
) using the specified connection methods
(socket or shared memory). For MATLAB to receive these IDs, hdldaemon
must be running with the same communication mode specified by the
notifyMatlabServer
function. The event ID and the PID queue in
hdldaemon
. notifyMatlabServer
is often used with
waitForHdlClient
to make sure that the HDL
simulator is ready to begin or continue processing.
Examples
Send HDL Simulator Event and Process IDs to MATLAB Server
If EventID = 5
is received within 100 seconds, the
function returns the HDL simulator PID. If a time-out occurs, the function returns
–1.
>> hdldaemon('socket',5002); ... >> hdlpid = waitForHdlClient(100,5);
In the HDL simulator, use the notifyMatlabServer
command to send
event ID 5
to hdldaemon
running on the same
machine using TCP/IP socket port 5002
.
>> notifyMatlabServer 5 -socket 5002
Input Arguments
Version History
Introduced in R2012b