App Entity

API Documentation: [cpp] [python] [.NET] [LabVIEW]

BrainStem modules have a unique mechanism and communication method to send host-to-stem or stem-to-stem messages that can initiate a Reflex origin to trigger if one is defined on the target module. BrainStem modules may have up to 4 different (0-3) entity app instances.

../../_images/cmdapp-stemnetwork.png

Please be aware that a Reflex file must be enabled on the target module for a call to an App entity to be successful.

Execute (non-blocking)

app[0] . execute => (unsigned int) appParam

This entities will pass the data specified in appParam to be passed into the Reflex handle. The 4 bytes are up to the implementor to mean what ever one wants them to be.

Code Examples

C++

// All commands return aErr values when errors are encountered and aErrNone on
// success.

stem.app[0].execute(3131948783); // triggers the App reflex handle and passes 4 bytes to it

Reflex

// Somewhere in a Reflex file
reflex app[0](int appParam) {
   // do interesting things
}

stem.app[0].execute(3131948783); // triggers the App reflex handle and passes 4 bytes to it

Python

Implementation comming in future release.