Cortex API
  • Getting Started
  • Connecting to the Cortex API
  • Overview of API flow
  • Authentication
    • getCortexInfo
    • getUserLogin
    • requestAccess
    • hasAccessRight
    • authorize
    • generateNewToken
    • getUserInformation
    • getLicenseInfo
  • Headsets
    • controlDevice
    • queryHeadsets
    • updateHeadset
    • updateHeadsetCustomInfo
    • syncWithHeadsetClock
    • Headset object
  • Sessions
    • createSession
    • updateSession
    • querySessions
    • Session object
  • Data Subscription
    • subscribe
    • unsubscribe
    • Data sample object
  • Records
    • createRecord
    • stopRecord
    • updateRecord
    • deleteRecord
    • exportRecord
    • queryRecords
    • getRecordInfos
    • configOptOut
    • requestToDownloadRecordData
    • Record object
  • Markers
    • injectMarker
    • updateMarker
    • Marker object
  • Subjects
    • createSubject
    • updateSubject
    • deleteSubjects
    • querySubjects
    • getDemographicAttributes
    • Subject object
  • BCI
    • queryProfile
    • getCurrentProfile
    • setupProfile
    • loadGuestProfile
    • getDetectionInfo
    • training
    • Readonly profile
  • Advanced BCI
    • getTrainedSignatureActions
    • getTrainingTime
    • facialExpressionSignatureType
    • facialExpressionThreshold
    • mentalCommandActiveAction
    • mentalCommandBrainMap
    • mentalCommandGetSkillRating
    • mentalCommandTrainingThreshold
    • mentalCommandActionSensitivity
  • Warning Objects
  • Error Codes
  • Troubleshooting Guide
  • Release Notes
  • cortexaccess tool
Powered by GitBook
On this page
  • Parameters
  • Result
  • Examples
  1. Advanced BCI

getTrainingTime

PreviousgetTrainedSignatureActionsNextfacialExpressionSignatureType

Last updated 1 year ago

This method returns the duration of a training. It is the approximate time needed by Cortex to decide if a training is a success or a failure. See for details.

Parameters

Name

Type

Required

Description

cortexToken

string

yes

detection

string

yes

Must be "mentalCommand" or "facialExpression".

session

string

yes

Result

The result is an object containing these fields:

Name

Type

Description

time

number

The approximate duration of a training, in second.

detection

string

The detection you set in the request.

The time should be 8 seconds, for both mental command and facial expression.

Examples

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getTrainingTime",
    "params": {
        "cortexToken": "xxx",
        "detection": "mentalCommand",
        "session": "xxx"
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "time": 8,
        "detection": "mentalCommand"
    }
}

A token returned by .

A session id returned by .

BCI
authorize
createSession