LabVIEW Biomedical Toolkit API Reference

Simulate EMG Express VI

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

Owning Palette: Biosignal DAQ & Simulation Express VIs

Requires: Biomedical Toolkit

Simulates electromyography (EMG) signals.

Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
Output OptionsSpecifies basic settings for simulating EMG signals. Contain the following options:
  • Output amplitude—Specifies the amplitude of the simulated EMG signal, in millivolts. The default is 4.
  • White noise amplitude—Specifies the amplitude of the white noise to add to the simulated EMG signal, in millivolts. 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 EMG signal. This VI adds a 50 Hz noise or a 60 Hz noise to simulate the impact of alternating current.
    • Power noise amplitude—Specifies the amplitude, in millivolts, of the noise that this Express VI adds into the simulated EMG signal. Power noise amplitude must be greater than or equal to 0. The default is 0.
    • Power frequency—Specifies the frequency, in hertz, of the noise that this VI adds into the simulated EMG signal. The default is 60 Hz.
  • Sampling rate—Specifies the sampling rate of the simulated EMG signal, in hertz. Sampling rate must be between 2*High frequency to 10,000. The default is 1000.
  • Block size—Specifies the time length of the simulated EMG signal each time this VI runs, in seconds. Block size must be greater than 0. 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.
Waveform MorphologyContains the following options:
  • Contraction time—Specifies the time length of each muscle contraction in the simulated EMG signal, in seconds. Contraction time must be greater than 0. The default is 1.
  • Contraction type—Specifies the waveform morphology of the simulated EMG signal.
Spectrum SettingsSpecifies the configuration for the spectrum of the simulated EMG signal. Contains the following options:
  • Low frequency—Specifies the low frequency value in the model of EMG spectrum, in hertz. Low frequency must be greater than 0 and less than High frequency. The default is 20.
  • High frequency—Specifies the high frequency value in the model of EMG spectrum, in hertz. High frequency must be greater than Low frequency and less than Sampling rate/2. The default is 300.
EMG PreviewDisplays a block of the simulated EMG signal.
Spectrum PreviewDisplays the ideal spectrum of the simulated EMG signal. The green and red cursors indicate the position of Low frequency and High frequency respectively.

Block Diagram Inputs

ParameterDescription
block sizeSpecifies the signal length(s) to simulate each time this VI runs.
error in (no error)Describes error conditions that occur before this node runs.
initialize?Specifies whether to initialize the EMG signal. The default is FALSE.
sampling rateSpecifies the sampling rate of the EMG signal.
stop?Specifies whether to stop simulating the EMG signal. The default is FALSE.

Block Diagram Outputs

ParameterDescription
EMGReturns the simulated EMG 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 EMG VI.