LabVIEW Biomedical Toolkit API Reference

Simulate EEG Express VI

  • Updated2023-02-21
  • 4 minute(s) read

Owning Palette: Biosignal DAQ & Simulation Express VIs

Requires: Biomedical Toolkit

Simulates electroencephalogram (EEG) signals.

Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
Output OptionsSpecifies basic settings for simulating EEG signals. Contain the following options:
  • Output amplitude—Specifies the amplitude of the simulated EEG signal, in microvolts. The default is 100.
  • White noise amplitude—Specifies the amplitude of the white noise to add to the simulated EEG signal, in microvolts. White noise amplitude must be greater than or equal to 0. The default is 0.
  • Power noise—Specifies the amplitude and the frequency of the noise that this Express VI adds into the simulated EEG signal. This VI adds a 50 Hz noise or a 60 Hz noise to simulate the impact of alternating current.
    • Power frequency—Specifies the frequency, in hertz, of the noise that this Express VI adds into the simulated EEG signal. The default is 60.
    • Power noise amplitude—Specifies the amplitude, in microvolts, of the noise that this Express VI adds into the simulated EEG signal. Power noise amplitude must be greater than or equal to 0. The default is 0.
  • Sampling rate—Specifies the sampling rate of the simulated EEG signal, in hertz. Sampling rate must be greater than 0. The default is 256.
  • Block size—Specifies the time length of the simulated EEG signal each time this VI runs, in seconds. The default is 3.
  • Timing mode—Specifies the timing mode that this VI uses to generate simulated EMG signals. You can select Simulate acquisition timing or Run as fast as possible. The default is Run as fast as possible.
Spectrum SettingsSpecifies the configuration for the spectrum of the simulated EEG signal. Contains the following options:
  • PF and BW Settings—Specifies the peak frequency (PF) and bandwidth (BW) settings. Contains the following options:
    • Delta PF—Specifies the peak frequency of the peak power in the delta component power spectrum, in hertz. The default is 0. You cannot change the value of Delta PF.
    • Delta BW—Specifies the peak power bandwidth in the delta component power spectrum, in hertz. Delta BW ranges from 0.1 Hz to 10 Hz. The default is 1.7.
    • Theta PF—Specifies the peak frequency of the peak power in the theta component power spectrum, in hertz. Theta PF ranges from 2 Hz to 7 Hz. The default is 5.5.
    • Theta BW—Specifies the peak power bandwidth in the theta component power spectrum, in hertz. Theta BW ranges from 0.1 Hz to 5 Hz. The default is 0.5.
    • Alpha PF—Specifies the peak frequency of the peak power in the alpha component power spectrum, in hertz. Alpha PF ranges from 4 Hz to 14 Hz. The default is 9.4.
    • Alpha BW—Specifies the peak power bandwidth in the alpha component power spectrum, in hertz. Alpha BW ranges from 0.1 Hz to 10 Hz. The default is 1.5.
    • Beta PF—Specifies the peak frequency of the peak power in the beta component power spectrum, in hertz. Beta PF ranges from 8 Hz to 28 Hz. The default is 21.
    • Beta BW—Specifies the peak power bandwidth in the beta component power spectrum, in hertz. Beta BW ranges from 0.1 Hz to 20 Hz. The default is 2.4.
  • Power Distribution Settings—Specifies the settings for relative power distribution. Contains the following options:
    • Delta—Specifies the relative power of the delta component, which corresponds to the area under the Delta line in Spectrum Preview. Delta must be in the range [0,1].
    • Theta—Specifies the relative power of the theta component, which corresponds to the area under the Theta line in Spectrum Preview. Theta must be in the range [0,1].
    • Alpha—Specifies the relative power of the alpha component, which corresponds to the area under the Alpha line in Spectrum Preview. Alpha must be in the range [0,1].
    • Beta—Specifies the relative power of the beta component, which corresponds to the area under the Beta line in Spectrum Preview. Beta must be in the range [0,1].
EEG PreviewDisplays a block of the simulated EEG signal.
Spectrum PreviewDisplays the ideal spectrum of the simulated EEG signal.

Block Diagram Inputs

ParameterDescription
alphaSpecifies the relative power of the alpha component. alpha must be in the range [0,1].
betaSpecifies the relative power of the beta component. beta must be in the range [0,1].
block sizeSpecifies the signal length(s) to simulate each time this VI runs.
deltaSpecifies the relative power of the delta component. delta must be in the range [0,1].
error in (no error)Describes error conditions that occur before this node runs.
initialize?Specifies whether to initialize the EEG signal. The default is FALSE.
sampling rateSpecifies the sampling rate of the EEG signal.
thetaSpecifies the relative power of the theta component. theta must be in the range [0,1].

Block Diagram Outputs

ParameterDescription
EEGReturns the simulated EEG signal.
error outContains error information. This output provides standard error out functionality.

Example

Refer to the Biosignal Simulator and Generator VI in the labview\examples\Biomedical\Biosignal directory for an example of using the Simulate EEG VI.

Log in to get a better experience