Initialization of STIM.

Namespace: ExpSuite
Assembly: FrameWork (in FrameWork.exe) Version:


Visual Basic
Public Shared Function Init ( _
	lSamplingRate As Integer, _
	lResolution As Integer _
) As String


Type: System..::..Int32
Sampling Rate of the audio signal.
Type: System..::..Int32
Resolution of the audio signal.

Return Value

Zero-length if no error occured.


Init is called on connect from framework. Don't call it again. Activities:
  • Create a MATLAB object
  • create the directory structure
  • logging of some parameters, depending on the LoggingMode property.
  • Set before calling:
  • SourceDir to the directory of fitting files
  • DestinationDir: to the directory where STIM will write
  • ID: to the ID of your experiment
  • GenerationMode: to the mode you want to create all stimuli
  • LoggingMode: to the level of logging (only logEverything support now)
  • Description: to the description of your experiment, this string will be logged
  • UseMatlab: If UseMATLAB property is TRUE, MATLAB object will be created.
  • CreateWorkDir: If TRUE, working directory will be creating according to the directory structure.
  • Usage:
  • Call it just once. If you want to call it repetitive you must execute Finish() inbetween, STIM will stuck otherwise.
  • Init allows two optional parameters: Sampling rate and Resolution. If given, stimPar is created in Matlab immediatly after the start of Matlab
  • See Also