ALPHA OMEGA Neuro Omega User manual

December, 2014
ALPHA OMEGA
U.S. Office:
Toll Free 1-877-919-6288
Fax 1-877-471-2055
Europe Office:
Toll Free: 00-800-2-574-2111
Tel +49-7-251-440-6620
Home Office:
Nazareth Industrial Park Building, Mount
Precipice
P.O. Box 2268 Nazareth 1612102, Israel.
Tel. 972-4-6563-327 Fax: 972-4-6574-075
Email: [email protected]
Website: www.alphaomega-eng.com
Neuro Omega™
Physiological Navigation System for
Neurosurgery
and Neurophysiological Clinical Applications
Neuro Omega SDK User Manual
Version 1.3
Refer to Neuro Omega User Manual

Neuro Omega SDK User Manual V1.3
Page 2
PROPRIETARY NOTICE
This publication, or parts thereof, contains information proprietary to Alpha Omega
Engineering and may not be reproduced, recorded or transmitted in any form, by any
method, for any purpose without written permission from Alpha Omega Engineering.
Alpha Omega Engineering Ltd. makes no warranty, expressed or implied, including but
not limited to any implied warranties of merchantability or fitness for a particular
purpose or use, regarding these materials and makes such materials available solely on
an “as-is” basis.
In no event shall Alpha Omega Engineering Ltd. be liable to anyone for specific,
collateral, incidental, or consequential damages in connections with or arising from
purchase or use of these materials. The sole and exclusive liability to Alpha Omega
Engineering Ltd., regardless of the form of actions, shall not exceed the purchase price of
the materials described herein.
The Neuro Omega and Alpha Omega are trademarks of Alpha Omega Engineering Ltd.
For additional information on the device, including questions on infection control
procedures, please contact:
Contact Information:
Name and Address of the European
Authorized Representative:
ALPHA OMEGA ENGINEERING
Nazareth Industrial Park Building
Mount Precipice
P.O. Box 2268
Nazareth 1612102
Israel
Tel: +972-4-656-3327
Fax: +972-4-657-4075
Email:
http://www.alphaomega-eng.com
Mr. Yousef Bsoul
Europe Sales Manager
Alpha Omega GmbH
Ubstadter Str. 28
Ubstadt-Weiher,76698
Germany
Tel: +49 (0) 7251-4406620
Fax: +49 (0) 7251-2391034
Toll free: 00-800-2574-2111
Email:
http://www.alphaomega-eng.com
U.S. Office: Toll Free: 1-877-919-6288, Fax: 1-877-471-2055
Europe Office: Toll Free: 00-800-2-574-2111, Tel +49-7-251-440-6620

Neuro Omega SDK User Manual V1.3
Page 3
Contents
1Overview...............................................................................................................4
1.1 Regulatory ..............................................................................................................4
1.1.1 Adverse Effects .....................................................................................4
1.1.2 FDA System Classification ..................................................................4
1.2 Intended Uses ........................................................................................................5
1.3 Conditions of Use ..................................................................................................5
1.4 Warnings ................................................................................................................6
1.5 Electromagnetic Conformance ............................................................................7
2Software Development Kit Research Capabilities .....................................11
2.1 Software Development Kit Research Overview..............................................11
2.2 Connecting External Systems ............................................................................11
2.3 Controlling Stimulation Paradigms through Coding.....................................13
2.3.1 Preparing the External Computer ....................................................13
2.3.2 MATLAB Functions and Usage........................................................15
2.3.3 C++ Functions and Usage .................................................................34
3Technical Specifications ..................................................................................53
4Use Case Code ...................................................................................................54
4.1 MATLAB Use Case #1 ........................................................................................54
4.2 MATLAB Use Case #2 ........................................................................................55
4.3 MATLAB Use Case #3 ........................................................................................56
5 Troubleshooting Guidline ..............................................................................57
5.1 MEX Compiler Error...........................................................................................57
5.2 Missing Runtime Libraries.................................................................................58
5.3 Supported and Compatible Compilers –Release 2010B................................59

Neuro Omega SDK User Manual V1.3
Page 4
1Overview
The Neuro Omega is a physiological navigation system intended for different
neurosurgery and neurophysiological clinical applications, including recording from and
stimulating brain motor and sensory neurons to accurately navigate for neurosurgery
target localization in treatment of movement disorders and to aid in the placement of
depth electrodes.
The system records and stimulates brain peripheral-nerve electrical activity from various
areas of the brain (deep structures and surface areas).
The device is also designed to measure bioelectric signals produced by muscles (EMG)
and stimulate peripheral nerves to aid in the diagnosis and prognosis of neuromuscular
disease for target localization surgeries for motor movement disorders or for intra-
operative skeletal muscles activity. This can be done with recording or stimulation.
The device may also be used to measure and record the electrical activity of the patient's
brain, obtained by placing two or more electrodes on the head (EEG). This is for cortical
and surface electrical activity levels of the brain.
The device is also designed for temporary monitoring of brain electrical activity from
deep or cortical brain during neurosurgery in the operating room or outside the clinical
environment.
1.1 Regulatory
1.1.1 Adverse Effects
The possible adverse effects relating to Sterotactic Neurosurgery are:
The possibility of intracranial hemorrhage associated with the introduction
of probes into the brain.
Visual field impairment with optic tract injuries.
Contra lateral motor deficit with corticospinal injury.
1.1.2 FDA System Classification
Product Code: GZL
Subsequent Product Code: GWF, IKN, GWQ
CFR Section: 21 CFR 882.1330
Regulation Name: Depth electrode
Subsequent Regulation Names:
Electroencephalograph
Stimulator
Electrical
Evoked response

Neuro Omega SDK User Manual V1.3
Page 5
Electromyograph
Diagnostic
Trade Name: Neuro Omega System
Common Name: lntraoperative neurophysiological recording and
stimulating device
Classification: Class II
1.2 Intended Uses
The Neuro Omega System is intended for the following:
Assisting neurosurgeons in the operating room during functional
neurosurgery
Recording from and stimulating brain motor and sensory neurons to aid in
the placement of depth electrodes
Monitoring, recording, and displaying the bioelectric signals produced by
muscles
Stimulating peripheral nerves
Monitoring, recording, and displaying the electrical activity produced by
nerves (EMG) for aiding the clinician in the diagnosis and prognosis of
neuromuscular disease.
Measuring and recording the electrical activity of the patient's brain obtained
by placing two or more electrodes on the head (EEG).
1.3 Conditions of Use
The device may be used by medical personnel within a hospital, laboratory, clinic, or
nursing home setting, or outside of a medical facility under direct supervision of a
medical professional. The device may also be placed in the intensive care unit or
operating room for continuous recording.
The following are the Neuro Omega system use conditions:
Environment:
Conditions of visibility:
Ambient luminance range: Normal
Viewing distance: N/A
Viewing angle: N/A
Physical:
Temperature range: 0°C to +40°C
Relative humidity range: 10% - 80%, non-condensing
Ambient pressure range: 500 hPa to 1060 hPa

Neuro Omega SDK User Manual V1.3
Page 6
Background sound pressure level: Normal
Frequency of Use: As per specific case
Mobility: Mobile
1.4 Warnings
Warnings:
This is a Class A product. In a medical environment this product may cause
radio interference in which case the user will be required to take
adequate measures.
Only qualified personnel, who have been trained by Alpha Omega Ltd.,
should be allowed to operate this equipment.
Any modifications made to the equipment without explicit approval from
Alpha Omega Ltd., voids warranty and service contract obligations, and
poses a potential safety threat to both operators and patients.
Do not install any software packages (Matlab, C++, SDK software or other)
on the system unless provided by Alpha Omega Ltd. for the explicit use on
the Neuro Omega.
Neuro Omega system and Neuro Omega drive should be connected to Alpha
Omega NeuroProbes for recording and stimulation
External systems connected to the Neuro Omega must be independently
isolated, or powered through the trolley, as this has its own isolation
transformer.
The Neuro Omega system should be placed outside of the patient
environment or any area that can, intentionally or unintentionally, come
in contact with the patient.
A thorough understanding of the technical principles, clinical applications,
and risks associated with this treatment is necessary before using this
system. Please read this entire manual before attempting to activate the
system. Completion of the training program is required prior to use of the
Neuro Omega system.
The analog and digital input output panel (ADIO) is not an applied part,
and therefore should not be connected to the patient without proper
electrical isolation.
Cautions:
US federal law restricts the sale of this device to or on the order of a
physician.
Discard according to the local regulations and law.
Notes:
The Neuro Omega system is provided non-sterile or sterile. Please refer to
the Neuro Omega Manual for detailed sterilization instructions of system
and accessories.
It is the user’s responsibility to qualify any deviations from the
recommended method of processing.

Neuro Omega SDK User Manual V1.3
Page 7
Please contact the manufacturer or local distributor to request a copy of
the insulation diagram if needed.
This product has been tested and found to comply with the limits for Class
a Medical Device according to IEC 60601-1 and IEC 60601-1-2 Standards.
The limits for Class A equipment were derived for medical environments to
provide reasonable protection against interference with licensed
communication and medical equipment.
1.5 Electromagnetic Conformance
The following tables contain information on electromagnetic emissions for guidance and
manufacturer’s declaration:
Guidance and Manufacturer’s Declaration –Electromagnetic Emissions
Guidance and Manufacturer’s Declaration – Electromagnetic Immunity
Recommended Separation Distances between Portable and Mobile RF
Communications Equipment and the Neuro Omega
Notes:
This product has been tested and found to comply with the limits for Class
a Medical Device according to IEC 60601-1 and IEC 60601-1-2 Standards.
The limits for Class A equipment were derived for medical environments to
provide reasonable protection against interference with licensed
communication and medical equipment.
This product must be installed and put into service according to the EMC
information provided in the tables below.
Portable and mobile RF communications equipment can affect this
product.
Warnings:
This is a Class A product. This product is intended for use by healthcare
professionals only. This equipment/system may cause radio interference or
may disrupt the operation of nearby equipment. It may be necessary to
take mitigation measures, such as re-orienting or relocating the Neuro
Omega or shielding the location.
The use of accessories, transducers, and cables other than those specified
by the manufacturer may result in increased emissions or the decreased
immunity of the Neuro Omega.
The Neuro Omega should not be used adjacent to or stacked with other
equipment. If adjacent of stacked use is necessary, the Neuro Omega
should be observed to verify normal operation in the configuration in
which it will be used.
The Neuro Omega is intended for use in the electromagnetic environment specified in
Table 1. The user of the Neuro Omega should assure that it is used in such an
environment.
Table 1: Guidance and Manufacturer’s Declaration –Electromagnetic Emissions

Neuro Omega SDK User Manual V1.3
Page 8
Emissions Test
Compliance
Electromagnetic Environment Guidance
RF emissions CISPR 11
Group 1
The Neuro Omega uses RF energy only for its internal
function. Therefore, its RF emissions are very low and are
not likely to cause any interferences in nearby electronic
equipment.
RF emissions CISPR 11
Class A
The Neuro Omega is suitable for use in all establishments
other than domestic, and may be used in domestic
establishments and those directly connected to the public
low-voltage power supply network that supplies buildings
used for domestic purposes.
Harmonic emissions
IEC 61000-3-2
Class A
Voltage fluctuations/flicker
emissions
IEC 61000-3-3
Complies
The Neuro Omega is intended for use in the electromagnetic environment specified in
Table 2. The customer or the user of the Neuro Omega should assure that it is used in
such an environment.
Table 2: Guidance and Manufacturer’s Declaration – Electromagnetic Immunity
Immunity Test
IEC 60601 test
level
Compliance
Electromagnetic Environment
Guidance
Electrostatic discharge (ESD)
IEC 61000-4-2
±6kV contact
±8kV air
±6kV contact
±8kV air
Floors should be wood, concrete or
ceramic tile. If floors are covered
with synthetic material, the relative
humidity should be less than 30%.
Electrostatic fast
transient/burst
IEC 61000-4-4
±2kV for power
supply lines
±1kV for
input/output
lines
±2kV for power
supply lines
±1kV for
input/output
lines
Mains power quality should be that of
a typical commercial or hospital
environment.
Surge
IEC 61000-4-5
±1kV line(s) to
line(s)
±2kV line(s) to
earth
±1kV line(s) to
line(s)
±2kV line(s) to
earth
Mains power quality should be that of
a typical commercial or hospital
environment.
Voltage dips, short
interruptions and voltage
variations on power supply
input lines
IEC 61000-4-11
<5% UTfor 0.5
cycles
40% UTfor 5
cycles
70% UTfor 25
cycles
<5% UTfor 5 s
<5% UTfor 0.5
cycles
40% UTfor 5
cycles
70% UTfor 25
cycles
<5% UTfor 5 s
Mains power quality should be that of
a typical commercial or hospital
environment. If the user of the Neuro
Omega requires continued operation
during power mains interruptions, it is
recommended that the NeuroOmega
be powered from an uninterruptible
power supply battery.
Power frequency (50/60 Hz)
magnetic field
IEC 61000-4-8
3 A/m
3 A/m
Mains power quality should be that of
a typical commercial or hospital
environment.

Neuro Omega SDK User Manual V1.3
Page 9
Conducted RF
IEC 61000-4-6
Radiated RF
IEC 61000-4-3
3 Vrms 150 kHz
to 80 MHz
3 V/m 80 MHz
to 2.5 GHz
3 Vrms 150 kHz
to 80 MHz
3 V/m 80 MHz
to 2.5 GHz
Portable and mobile RF
communications equipment should be
used no closer to any part of the
NeuroOmega, including cables, than
the recommended separation distance
calculated from the equation
applicable to the frequency of the
transmitter.
Recommended separation distance:
d=1.2√P
d=1.2√P 80 MHz to 800 MHz
d=2.4√P 800 MHz to 2.5GHz
Where P is the maximum output
power rating of the transmitter in
watts (W) according to the
transmitter manufacturer and dis the
recommended separation distance in
meters (m).
Field strength from fixed RF
transmitters, as determined by an
electromagnetic site survey,1should
be less than the compliance level in
each frequency range.2
Interference may occur in the vicinity
of equipment marked with the
following symbol:
Notes:
At 80 MHz and 800 MHz, the higher frequency range applies.
These guidelines may not apply in all situations. Electromagnetic
propagation is affected be absorption and reflection from structures,
objects and people.
1. Field strength from fixed transmitters, such as base stations for radio (cellular/cordless) telephones and
land mobile radios, amateur radio, AM and FM radio broadcast and TV broadcast cannot be predicted
theoretically with accuracy. To assess the electromagnetic environment due to fixed RF transmitters,
an electromagnetic site survey should be considered. If the measured field strength in the location in
which the Neuro Omega is used exceeds the applicable RF compliance level above, the Neuro Omega
should be observed to verify normal operation. If abnormal performance is observed, additional
measures may be necessary, such as re-orienting or relocating the Neuro Omega.
2. Over the frequency range 150 kHz to 80 MHz, field strength should be less than 3 V/m.

Neuro Omega SDK User Manual V1.3
Page 10
The Neuro Omega is intended for use in the electromagnetic environment in which
radiated RF disturbances are controlled. The customer or the user of the Neuro Omega
can help prevent electromagnetic interference by maintaining a minimum distance
between portable and mobile RF communications equipment (transmitters) and the
Neuro Omega as recommended in Table 3, according to the maximum output power of
the communications equipment.
Table 3: Recommended Separation Distances between Portable and Mobile RF
Communications Equipment and the Neuro Omega
Rated maximum output
power of transmitter
W
Separation distance according to frequency of transmitter
m
150 kHz to 80 MHz
d=1.2√P
80 MHz to 800 MHz
d=1.2√P
800 MHZ to 2.5 GHz
d=2.4√P
0.01
0.12
0.12
0.24
0.1
0.37
0.37
0.74
1
1.2
1.2
2.4
10
3.7
3.7
7.4
100
12
12
24
For transmitters rated at maximum output power not listed above, the recommended separation distance d
in meters (m) can be estimated using the equation applicable to the frequency of the transmitter, where pis
the maximum output power rating of the transmitter in watts (W) according to the transmitter
manufacturer.
Notes:
At 80 MHz and 800 MHz, the separation distance for the higher frequency
range applies.
These guidelines may not apply in all situations. Electromagnetic
propagation is affected by absorption and reflection from structures,
objects and people.

Neuro Omega SDK User Manual V1.3
Page 11
2Software Development Kit Research Capabilities
2.1 Software Development Kit Research Overview
Aside from basic stimulation as described in the Neuro Omega Manual there is an
additional method for controlling stimulation paradigms and completing data analysis:
Coding: For greater control and complexity, code and run the stimulation
paradigms through the MATLAB or C++ tool on an external computer.
Coding is described in section 2.3.
Note: Some advanced research capabilities involve external systems.
Connecting these systems is described in section 2.2.
2.2 Connecting External Systems
This procedure describes how to connect any external systems to the Alpha Omega, such
as:
External analog or digital input or output systems
The computer running MATLAB or C++
External monitors
You can power the systems through the trolley’s isolation transformer, or through an
independent isolation transformer.
Warning:
External systems connected to the Neuro Omega must be
independently isolated, or powered through the trolley, as this has
its own isolation transformer.
External systems connected to the Neuro Omega by Ethernet port
must include Ethernet Isolator in line.
To power an external system:
a. Do one of the following:
Power the system through the trolley’s isolation transformer (see Figure
1: Neuro Omega Trolley Side View) as follows:
i. On the base of the Main Unit, remove the cover to the isolation
transformer.
ii. Plug the external computer in to the transformer.
iii. Return the cover, threading the power cord parallel to the Neuro
Omega system’s power cord.
Power the system through an independent isolation transformer.

Neuro Omega SDK User Manual V1.3
Page 12
On the Input/output panel, connect the system to the required connection.
Repeat steps aand 0for each system you want to connect.
Figure 1: Neuro Omega Trolley Side View
To connect the MATLAB or C++ ethernet connection:
a. Use a Cat6 ethernet cable and connect the external computer to the
Neuro Omega (see Figure 1: Neuro Omega Trolley Side View) as follows:
i. On the base of the Main Unit, plug in the ethernet cable to one of
the open ports (see Figure 2: Bottom of Main Unit)
ii. Plug the ethernet cable to Ethernet Isolator (pay attention to
direction).
iii. Plug another ethernet cable to the Matlab or C++ computer.
iv. Plug the other ethernet cable to the Ethernet Isolator.
System Handle
Headbox
Modules and
Remote
Storage
Power cable
USB Ports
Main unit power
and switch,
Ethernet
connections,
Audio output and
USB Remote
Isolation
Transformer

Neuro Omega SDK User Manual V1.3
Page 13
Figure 2: Bottom of Main Unit
2.3 Controlling Stimulation Paradigms through Coding
This procedure describes how run code using MATLAB to control stimulation
paradigms. Running code affords more control over the paradigms and the ability to run
additional signal processing needs.
Coding and running the code is performed on an external computer.
To control stimulation paradigms through coding:
1. Connect the external computer as described in section 2.2.
2. With an ethernet cable, connect the external computer to the Main Unit
described in section 2.2.
3. Prepare the external computer, as described in 2.3.1.
4. Write the code the MATLAB functions as commands, using 2.3.2 as a guide.
2.3.1 Preparing the External Computer
This procedure describes how to prepare the external computer in order to use the
MATLAB tool and connect to the Neuro Omega system.
To prepare the external computer for using MATLAB:
1. Install MATLAB Tool by running the supplied setup file and following the
on screen instructions.
2. Start MATLAB, as follows:
b. Open MATLAB.
Note:
With Windows 7, you may need to run MATLAB as Administrator, or change
the user settings to lower administrative control.
c. Set the working directory path in MATLAB to the installed MATLAB
Tool Directory, for example, as follows:

Neuro Omega SDK User Manual V1.3
Page 14
C:\Program Files(x86)\AlphaOmega\AO_MATLABTool
Note: If you have MATLAB 2014a and you have the visual distribution
library 2010 for 64bit then the next step you don’t have to go over
them and start with step
d. Set up the compiler and compile the MEX file, as follow:
1. In the MATLAB command window, type mex –setup, and then press
ENTER.
2. A MATLAB message appears in the command window:
Would you like mex to locate installed compilers [y]/n?]
3. Press n.
MATLAB suggests a list of all supported compilers.
4. Select a version of Microsoft Visual, such as Microsoft Visual C++
2008 or 2010.
Note: If you do not have the compiler on your PC, you need to install it
before continuing (express mode is downloaded for free).
5. Continue the procedure for choosing the compiler by answering the
questions in the wizard. For the path validation, if the path is correct,
answer yto all questions.
6. Make sure that compiler is existing using the following command:
cc = mex.getCompilerConfigurations()
if there is no compiler follow the troubleshooting guideline.
7. Compile the MEX files as follows:
run the following in the MATLAB command window:
for 32bits:
mex MexFileEthernetStandAlone.cpp
Include\ethernetStandAlone.lib
for 64bits:
mex MexFileEthernetStandAlone.cpp
Include\ethernetStandAloneX64.lib
The following results:
i. The MexFileEthernetStandAlone.cpp file is compiled.
ii. A MEX file is created, called MexFileEthernetStandAlone.mexw32.
iii. Installation concludes
iv. If the compile fails, see Troubleshooting Section 5
e. Test the installation by doing one of the following:
In the MATLAB command window, type AO_IsConnected, and then
press ENTER.

Neuro Omega SDK User Manual V1.3
Page 15
If no compilation error appears, which is usually indicated by red
colored messages, installation was successful.
Else see Troubleshooting Section 5
2.3.2 MATLAB Functions and Usage
Complete syntax of each MATLAB function is provided in Table 4, as well as syntax,
descriptions and examples.
Provides a list of function return cases.
Table 4: MATLAB Functions
Function
Function syntax and example
AO_DefaultStartConnection
Syntax:
[Result] = AO_DefaultStartConnection(DspMac)
Function:
Used to connect MATLAB to Neuro Omega system
Result:
Function return is an integer, 0 = no function errors, other number
indicate function error (see 6)
Function parameters:
DspMac: String of 6 hex values. This is the mac address of the
Neuro Omga system
It is preferable to ensure connection was done successfully by calling
the function AO_IsConnected
Example:
DSPMac='00:21:ba:07:ab:9e';
retStartConnection=AO_DefaultStartConnection(DSPMac)
;
Add the following code to insure proper connection:
for j=1:100,
pause(1);
ret=AO_IsConnected;
if ret==1
'The System is Connected'
break;
end
end
After a successful connection, the PcMac address will appear in the
menu, Help > User Info, as illustrated in Figure 3.

Neuro Omega SDK User Manual V1.3
Page 16
Function
Function syntax and example
Figure 3: MAC Addresses Including MATLAB Computer
AO_IsConnected
Syntax:
[Results] = AO_IsConnected()
Function:
Checks if MATLAB is connected to Neuro Omega
Result:
Returns 1 if the system is connected, otherwise returns 0
Example:
for j=1:100,
pause(1);
ret=AO_IsConnected;
if ret==1
'The System is Connected'
break;
end
end
AO_CloseConnection
Syntax:
[Result] = AO_CloseConnection()
Function:
Used to close connection between MATLAB and the Neuro Omega
system
Result:

Neuro Omega SDK User Manual V1.3
Page 17
Function
Function syntax and example
Function returns an integer, 0 = no function errors, other number
indicate function error (see 6)
Example:
Result=AO_CloseConnection();
if (Result==0)
display('Connection closed successfully');
else
display('Connection close error');
end
AO_AddBufferingChannel
Syntax:
[Result] =
AO_AddBufferingChannel(ChannelID,BufferSizemSec)
Function:
Used to gather data for the channel defined in ChannelID
Result:
Returns an integer, 0 = no function errors, other number indicate
function error (see 6)
Function parameters:
ChannelID: The channel ID we want to gather data for
BufferSizemSec: The size of the buffer in mSec.
Notes:
The function stores the data using First In First Out (FIFO)
mechanism.
The data value is A\D value including gain.
Example:
ChannelID=10256; % set the channel number
BufferSizemSec = 10000; % set the size of the buffer
in mSec
AO_AddBufferingChannel(ChannelID, BufferSizemSec)%
start gathering data for channel 10256
AO_GetAlignedData
Syntax:
[Result,pData,DataCapture,TS_FirstSample]=
AO_GetAlignedData(ChannelIdArr,ChannelCount)
Function:
Used to get aligned data for several channels
Result:

Neuro Omega SDK User Manual V1.3
Page 18
Function
Function syntax and example
Returns an integer, 0 = no function errors, other number indicate
function error (see 6)
Function parameters:
ChannelIdArr: Array of channels which we need to get data for,
all channels must have the same sampling rate
ChannelCount: Number of channels listed in ChannelIdArr
pData: Array of data samples of all listed channels, be arranged
in single row
DataCapture: The amount of the useable data captured in the
pData array
TS_FirstSample:The timestamp of the first sample for each
channel
Notes:
In order to get data you need to use
AO_AddBufferingChannel first.
In order to get real time data u need to clear the buffered
data first using AO_ClearChannelData function before using
both commands AO_GetAlignedData, AO_GetChannelData
otherwise u will get stored data
pData will contain samples of data for all channels ,the
number of valid samples in this array is DataCapture so
make sure that you only get DataCapture samples. Hence,
number of samples for each channel is DataCapture divided
by ChannelCount.
In pData samples are arranged in a single array for all
channels, starting with samples of the first channel listed in
the ChannelIdArr, followed by other channels consecutively
and in the same order.
The data value is A\D including gain
Example:
ChannelIdArr=[10000,10001,10002];
ChannelCount=3;
[Result,pData,DataCapture,TS_FirstSample] =
AO_GetAlignedData(ChannelIdArr,ChannelCount);% get
aligned data from channels:10000,10001,10002 save
them in the array pData, the alignment is done by
time stamp TS_FirstSample
AO_GetChannelData
Syntax:
[Result,pData,DataCapture] =
AO_GetChannelData(ChannelId)
Function:

Neuro Omega SDK User Manual V1.3
Page 19
Function
Function syntax and example
Used to get data for the specified channel
Result:
Returns an integer, 0 = no function errors, other number indicate
function error (see 6)
Function parameters:
ChannelId: The channel id which we want to get data for
pData: Array of data
DataCapture: The amount of the useable data in the array
Note: The pData will contain a block of data in in the following
format, for example:
byte 1-2:SizeOFtheBlock in words (1 word =2Byte)
including the samples in this block
byte 3 BlockType (in our case alwayes will be 'd'
or 100)
byte 4 Not used
byte 5-6 ChannelNumber the id of the channel this
block belongs to
byte 7 Unit number ,this value valid only for
segmented data
byte 8 Not used
byte 9-12 TimeStamp of the first sample of the
block you will have to reorder them [byte10 byte9
byte12 byte11]
byte 13-14 OverFlowCount the over flow of the time
stamp –Future use
byte 15-16 First sample
byte 17-18 Second sample
In order to calculate the number of samples in this channel, do the
following:
HeaderSize=14bytes
HeadrSizeWord=14bytes/2
samplescount=SizeOFtheBlock-HeaderSizeWord
= (SizeOFtheBlock-14)/2
Example:
[Result,pData,DataCapture]=AO_GetChannelData(10256);

Neuro Omega SDK User Manual V1.3
Page 20
Function
Function syntax and example
AO_ClearChannelData
Syntax:
[Result] = AO_ClearChannelData()
Function:
Used to clear buffered data by command AO_AddBufferingChannel
Result:
Returns an integer, 0 = no function errors, other number indicate
function error (see 6)
Note: In order to get real time data you need to clear the
buffered data first using AO_ClearChannelData function before using
both commands AO_GetAlignedData, AO_GetChannelData otherwise
you will get stored data.
Example:
AO_ClearChannelData()
AO_GetNextBlock
Syntax:
[Result,arraydata,realDataSizeWords]=
AO_GetNextBlock(sizeOfArrayWords)
Function:
Used to get the next new block data, the data should be parsed using
StreamFormat.h file
Result:
Returns an integer, 0 = no function errors, other number indicate
function error (see 6)
Function parameters:
sizeOfArrayWords: The max size of data the array can contain
arraydata: Pointer to an array to hold the new data ,the data
contain stream format in order to parse the data you need some
Knowledge in our stream Format
realDataSizeWords: The count of the data copied to the array
data
Note: StreamFormat.h file is saved in the include directory
Example:
realDataSizeWords=zeros(1,1);
[res,arraydata,realDataSizeWords]=AO_GetNextBlock(50
000);
AO_SendBlock
Syntax:
[Result] = AO_SendBlock(ArrayData)
Function:
Other manuals for Neuro Omega
1
Table of contents
Other ALPHA OMEGA Medical Equipment manuals