Skip to content

This should be initialized as gitmodule with name `+msg` to use as a MATLAB package.

Notifications You must be signed in to change notification settings

Neuro-Mechatronics-Interfaces/matlab_package__msg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

+msg

MATLAB git submodule package with common TCP/IP or UDP message structure handling for different experiments requiring networking.

Contents

Currently this only contains a few different types of message structures, mostly used with the jsonencode and jsondecode MATLAB built-ins.

JSON

Any function starting with json_ should return a data struct that can be used with jsonencode to generate a serialized message string.
If no input arguments are supplied to any of these functions, the default behavior should be to return an example of what a struct of this type could look like.
Required struct field:

  • type - This can be used by any listening port to manage handling of the message contents. It allows a single port to accept multiple types of messages.

  • msg.json_stim_pattern - Returns struct to be used to pass a stimulation pattern filename and amplitude scalar.

  • type: 'stim.pattern'
  • msg.json_stim_response - Returns struct to be used to pass response to query about next stim (json_stim_pattern message).
  • type: 'stim.response'
  • msg.json_stim_data - Returns struct to be used to pass a consolidated multi-channel data metric from an arbitrary number of responses and channels.
  • type: 'stim.data'
  • type: 'par.tagged'
  • type: 'par.base'
  • type: 'name.tmsi'
  • type: 'name.task'
  • type: 'request.tmsi'
  • type: 'stream.tmsi'
  • type: 'sta.config'
  • type: 'sta.data'
  • type: 'snippets.config'
  • type: 'state.tmsi'
  • type: 'mep.request'
  • type: 'mep.response'

About

This should be initialized as gitmodule with name `+msg` to use as a MATLAB package.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages