| Contents | Index |
hdldaemon
s=hdldaemon
hdldaemon('ParameterName',ParameterValue)
s=hdldaemon('ParameterName',ParameterValue)
hdldaemon('Option')
hdldaemon starts the HDL Link MATLAB server using shared memory interprocess communication. Only one hdldaemon per MATLAB session can be running at any given time.
s=hdldaemon starts the MATLAB server using shared memory and returns the server status connection in structure s.
hdldaemon('ParameterName',ParameterValue) starts the MATLAB server using shared memory and accepts optional inputs as one or more comma-separated parameter-value pairs. ParameterName is the name of the parameter inside single quotes. ParameterValue is the value corresponding to ParameterName. To start the server in socket mode, use the 'socket' parameter.
Note If server is already running, issuing hdldaemon with these arguments will shut down the current server and start the server up again using shared memory (unless socket is specified). The exception is issuing hdldaemon |
s=hdldaemon('ParameterName',ParameterValue) works the same as hdldaemon('ParameterName',ParameterValue) and returns the server status connection in structure s.
hdldaemon('Option') accepts a single optional input. Only one option may be specified in a single call. You must establish the server connection before calling hdldaemon with one of these options.
Start the MATLAB server using shared memory communication and use an integer representation of time:
hdldaemon('time', 'int64')
Start MATLAB server and specify socket communication on port 4449:
hdldaemon('socket', 4449)
Start MATLAB server with socket communication and use a 64-bit representation of time:
hdldaemon('socket', 4449, 'time', 'int64')
Check hdldaemon server status:
hdldaemon('status')Returns, for example,
HDLDaemon socket server is running on port 4449 with 1 connections
Or
HDLDaemon shared memory server is running with 0 connections
Or
HDLDaemon is NOT running
Check connection information for communication mode, number of existing connections, and the interprocess communication identifier (ipc_id) the MATLAB server is using for a link:
x=hdldaemon('status')For a socket connection, returns:
x =
comm: 'sockets'
connections: 0
ipc_id: '4449'
For shared memory, returns:
x =
comm: 'shared memory'
connections: 0
ipc_id: [1x45 char]
You can examine ipc_id by entering it at the MATLAB command prompt:
>>x.ipc_id
Shut down server without shutting down MATLAB:
hdldaemon('kill')Issue simple Tcl commands:
hdldaemon('tclcmd','puts "This is a test"')Issue complex Tcl commands:
See the demo for Implementing the Filter Component of an Oscillator in MATLAB for an extensive example of a compound Tcl command.

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 |