Symphony-DAS/Symphony — pull request #11 by ala-laurila-lab (2013-05-07 07:49:16+00:00)
Title: Petri release2

There are 2 small changes to the code.

Change 1:
In the Symphony Protocol I suppressed a warning "function prepareProtocol(obj) %#ok".

Change 2:
For one of Petri's requirements, in my custom protocol I require visibility of the epoch group. Rather then move the Epoch group code in to the SymphonyProtocol, I just created a variable "epochGroup" in the protocol that gets set by SymphonyUI.

_________________________________________

Here is a brief explanation of why I need the epochGroup value if you are interested -

I have created a notes application within Symphony for Petri that creates a running notesfile of epochs so that Petri can have quick visibility of what has been run. For the epoch group variable, I have a listener so when it is changed i the values to the notes file.

In the "prepareRun" method I delete the listener so their is no overhead during the running of protocols eg..."obj.epochGroupEventListener = event.listener.empty;". and then when all the epochs have finnished i recreate the listener

Here is a copy and paste of a section of the notes file:
_____

PARENT GROUP (CELL)
TIME: 12:30:55
ID: cID1
Label: GROUP LABELS
Keywords: KEYWORDS K1 K2 K3
Source: Retina

Mouse ID: mID
Cell ID: cID
Rig Name: A

TIME:12:31:22
RIG: Retina Electrophysiology
PROTOCOL: SinglePulse - OneChannel

preTime = 50 stimTime = 500 tailTime = 50 preAndTailSignal = 1
ampHoldSignal = -60
Epoch # 1 Start Time:12:32:48 Duration (ms):600 Temperature:28.4C valve: 1 0 0 1 1 0 0 1 1 1
Epoch # 2 Start Time:12:32:49 Duration (ms):600 Temperature:28.4C
Epoch # 3 Start Time:12:32:51 Duration (ms):600 Temperature:28.4C
Epoch # 4 Start Time:12:32:53 Duration (ms):600 Temperature:28.4C
Epoch # 5 Start Time:12:32:54 Duration (ms):600 Temperature:28.4C

_____