Sign Change Detector

Summary

Doc_BoxAlgorithm_SignChangeDetector.png
  • Plugin name : Sign Change Detector
  • Version : 1.2
  • Author : Joan Fruitet and Jozef Legeny
  • Company : Inria Sophia
  • Short description : Detects the change of input's sign
  • Documentation template generation date : Nov 2 2017

Description

Triggers a stimulation when one of the input's sign changes (input gets positive or negative

This box detects the changes of the sign of the input. It will work on any matrix of exactly two dimensions, signal in particular. This box operates only on one channel. When the input values change sign a stimulation is sent. You can choose the stimulation to send when the value becomes positive or negative.

Inputs

1. Signal

Input values. Must be a streamed matrix of exactly two dimensions. This box works well with signal.

  • Type identifier : Streamed matrix (0x544a003e, 0x6dcba5f6)

Outputs

1. Generated stimulations

Output stimulations.

  • Type identifier : Stimulations (0x6f752dd0, 0x082a321e)

Settings

1. Sign switch to positive stimulation

Stimulation to send when the value becomes positive.

  • Type identifier : Stimulation (0x2c132d6e, 0x44ab0d97)
  • Default value : [ OVTK_StimulationId_Label_01 ]

2. Sign switch to negative stimulation

Stimulation to send when the value becomes negative.

  • Type identifier : Stimulation (0x2c132d6e, 0x44ab0d97)
  • Default value : [ OVTK_StimulationId_Label_00 ]

3. Channel Index

Index of the channel to operate on.

  • Type identifier : Integer (0x007deef9, 0x2f3e95c6)
  • Default value : [ 1 ]

Examples

Miscellaneous