Welcome Guest, you are in: Login

EventIDE Wiki

RSSRSS

Navigation




Search the wiki


PoweredBy
Element Icon NI Signal Provider Element
Info
Category: Signal Acquisition AddIn: National Instruments
Creator: OkazoLab Team Scope: Global
Owns Snippets: no Usage:

Element's actions aligned with epochs of the experiment

EpochActions
Experiment OnsetThe element starts data acquisition and buffering.
Control Loop stepThe element buffers newly received samples
Experiment OffsetThe element stops data acquisition and buffering.

Properties

Generic Properties

NameDescriptionConstraintsValue TypeUpon Runtime Change
NI Settings
Analog ChannelDefines a analog port selected for data acquisitionString
Sampling RateDefines the sampling rate (samples per second) of data acquisition. The value must be supported by the NI card.Int32
Voltage RangeDefines the expected voltage range of the analog signal. The voltage range must be supported by the NI card.Double
Buffer SizeDefines the size of a circular buffer (in samples) for storing the incoming signal data.Int32

+=== Properties inherited from the base signal provider element === Inherited properties of the Signal Provider Element
Channel Configuration
Selected ChannelsDefines what signal channels are selected for acquisition within EventIDE. Selected channels are registered in the EventIDE signal pool at runtime and become available for the signal analysis elements.IList
Selected Channel CountIndicates how many signal channels are currently selected for acquisition.Int32
Total Channel CountIndicates how many signal channels are available for acquisition in the total.Int32
Buffer SizeDefines the size (in samples) of a circular buffer that stores incoming signal data.Int32
Signal Generator
Signal SourceDefines a source for the signal. The emulated rhythmes can be used for offline validation of the chosen analysis settingsenum
Emulated Sampling RateDefines the emulation sampling rate (samples per second), when data is generated or streamed from a file.Int32
Primary FrequencyDefines the frequency of the primary rhythm in the generated signal, in Hz. Assign the zero to exclude the primary frequency from the generated signal.Double
Secondary FrequencyDefines the frequency of the secondary rhythm in the generated signal, in Hz. The secondary frequency magnitude is a half of the primary frequency magnitude. Assign the zero to exclude the secondary frequency from the generated signal.Double
Noise LevelDefines the noise level (in % to the norm magnitude of the primary frequency). The noise is added to the generated signal. Assign the zero the exclude the noise from the generated signal.Double
External DatafileOpens the dialog for selecting a data file containing a stream of double numbers representing a signal. If a file name without a path is defined, the data file will be picked up in the location of the experiment file.String

+=== Properties inherited from clElement === Inherited properties of clElement
NameDescriptionConstraintsValue TypeUpon Change
Control
Is EnabledIf set to false the element is completely omitted when the experiment is run.Boolean
TitleTitle of the element.String



The element allows signal acquisition with the National Instruments DAQ cards.


Description

The NI Signal element is capable of reading an arbitrary signal conveyed through the selected analog port on a NI DAQ card. As an experiment starts, the element begins receiving data and buffering samples into circular buffers, maintained by EventIDE (the buffers can collect data from multiple signal acquisition elements). The signal processing elements, e.g. Signal Analyzer element can be then used to monitor and analyze the buffered signals at runtime. Fast buffering and processing time in EventIDE (down to 1ms) allows instant detection of signal characteristics and, subsequently, various forms of signal-based feedback control in experiment.

Snapshots

Using the NI Max utility for emulation an analog signal

Using the NI Max utility for emulation an analog signal


Practical Use

  1. Add a new NI Signal element to any event in your experiment (the element is global and works from the start to the end of experiment).
  2. Select the added element to browse its properties in the Property panel.
  3. Select the NI analog port via the 'Analog Channel' property.
  4. Set the sampling rate of acquisition via the corresponding property. Refer to the NI documentation to chose the value supported by your card.
  5. If you have no NI card installed, you can still test the element using the NI Max utility (included in NIDAQ-mx), which can emulate a presence of the NI card in the system and a test signal (see the snapshot above).
  6. Use the signal processing elements to access the buffered data.



Notes

  • EventIDE requires the extended NI drivers (NIDAQ-mx) installed instead of the standard version, which is usually supplied with the card. You can download the NIDAQ-mx drivers here

  Name Size
- NISignal.png 4.26 KB
- NITest-sm.png 25.67 KB
- NITest.png 17.61 KB

ScrewTurn Wiki version 5.2.0.8. Some of the icons created by FamFamFam.