paumailo / ephys

Automatically exported from code.google.com/p/ephys
0 stars 0 forks source link

Adding in Matlab scripts to protocol design GUI #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enter script into the designated spot of the protocol design
2. populate protocol
3. run protocol

What is the expected output? What do you see instead?
I'd like to run the created protocols having them prompt for matlab scripts to 
change some parameter.

What version of the product are you using? On what operating system?

Please provide any additional information below.

The designed protocols don't seem to call the inputted scripts when they 
initiate.  Not sure if I'm not inputting them correctly, or this feature of the 
protocol design is not completed.

Original issue reported on code.google.com by ejbre...@gmail.com on 27 Feb 2013 at 4:01

GoogleCodeExporter commented 8 years ago
I am working on a new feature for the Matlab software which may help you(and 
all of us) out.  Since some experimental paradigms require the user to enter 
information based on the results of the current experiment - for example, the 
frequency and level of the probe tone for a two-tone inhibitory receptive field 
paradigm - you need some convenient way to modify the protocol.  

In the current implementation of the software, this can be done in two ways: 1) 
Update a template protocol in the protocol design utility, or 2) write a custom 
script to prompt the user for the parameters before each recording.  Both of 
these approaches work, but are likely inconvenient (creating a new protocol 
file each time would make many files to deal with) or technically challenging 
(writing a custom script).

What I am currently working on should simplify the development of such 
protocols.  When setting up the protocol (say for a two-tone inhibitory 
receptive field) using the Protocol Design GUI you would simply enter a 
parameter name prepended with a '$' character (for example, '$ProbeFreq' and 
'$ProbeLevel') and a corresponding default value in the same row (for example, 
5000 [corresponding with $ProbeFreq] and 40 [corresponding with $ProbeLevel]).  
The '$' will be recognized by the EPhysController when you hit record and will 
launch a prompt window for the user to enter the value(s) for that particular 
recording.  All parameter values will be saved with the tank as normal.

I think this will significantly speed up the development of some more 
experimenter-involved protocols.  I should have it working this week.  I'll 
keep you updated.

Original comment by daniel.s...@gmail.com on 27 Feb 2013 at 4:03

GoogleCodeExporter commented 8 years ago

Original comment by daniel.s...@gmail.com on 28 Feb 2013 at 8:44