Download CEPAS™ User Guide

Transcript
User Guide
CEPAS
being read. The number of channels can also be changed on the Study Details dialog that appears when
the “Init” button is pressed and CEPAS goes to Real Time mode.
Note that the number of channels is not set when a new Mesh File is loaded. There can be a different
number of channels in a data file than are mapped to the mesh.
If the number of channels sent from the Signal Generator is less than that generated or acquired then this
is OK. CEPAS always knows the number of channels sent. It can therefore deduce the blocksize of each
buffer transmitted. This allows for a variable blocksize (which is an ActiView option). In the Signal
Generator the transmission buffer is truncated (by dropping off channels) if necessary to control the
number of channels sent.
When the 1D array transmission buffer is converted to a 2D array in CEPAS, the known array size is divided
by the assumed number of channels. The result should be a whole number. If somehow the number of
channels sent is less than that expected by CEPAS there is a problem. The data gets screwed up. This is
detected in CEPAS by the size of the transmission buffer not dividing exactly by the expected number of
channels.
An example of this scenario in an old CEPAS version was that the Signal Generator was launched and then
the Run button pressed. CEPAS had not been started. Therefore the Signal Generator did not have the
expected channel number. However I fixed this by doing a final read of the Channels SV after the Network
Stream connection is made which ensures the right value is used.
As an example I encountered a problem when the Signal Generator was set to generate 512 simulated
channels and CEPAS was set 514 channels for the new BioSemi format. The Signal Generator did not pad
out the data sent with an extra two empty channels to provide what CEPAS expected. The Signal
Generator truncates channels OK but does not pad out channels. When CEPAS received the data block it
divided the size of the array by the expected 514 channels and this did not divide evenly and CEPAS threw
an error. If for some reason the array size did divide evenly, like if 257 channels where generated and 514
channels were requested then an error would not be flagged. However the data would be rubbish.
The Signal Generator only generates data after a connection is made with CEPAS. Therefore the number of
channels will be in sync. When updating ActiView Light care has to be taken that the number of channels
generated matches up with CEPAS. CEPAS needs to be considered the master when used together with
ActiView which should get the value of #Channels from the Channels SV. Alternatively if ActiView is run
standalone then it can use its own Channels setting. In this way the scenario where the generator sends a
different number of channels to what CEPAS expects will not happen. Note in a future version of the Signal
Generator it is also possible that I pad out the data with empty channels when the Channels SV value is
greater than the number generated by signal generator. However I do not think that this situation can
occur any more.
76