| 1 |
digraph G { |
| 2 |
graph [center=true, |
| 3 |
color=white, |
| 4 |
compound=true, |
| 5 |
fontcolor=black, |
| 6 |
fontname=Helvetica, |
| 7 |
fontsize=14, |
| 8 |
penwidth=0.1, |
| 9 |
ratio="0,01" |
| 10 |
]; |
| 11 |
node [color="#bdd7e7", |
| 12 |
fillcolor="#eff3ff", |
| 13 |
fontcolor="#2171b5", |
| 14 |
fontname=Helvetica, |
| 15 |
fontsize=13, |
| 16 |
label="\N", |
| 17 |
shape=ellipse, |
| 18 |
style=filled |
| 19 |
]; |
| 20 |
edge [color="#9ecae1", |
| 21 |
fontcolor="#3182bd", |
| 22 |
fontname=Helvetica, |
| 23 |
fontsize=10, |
| 24 |
style=solid |
| 25 |
]; |
| 26 |
"Prepare DAQ/Pre Set Event" [label="Pre Set Event"]; |
| 27 |
"Prepare DAQ/Pre Set Event" -> "Check if there is at least\none active IC headstage"; |
| 28 |
"Check if there is at least\none active IC headstage" -> "Check if no TTL channels are active"; |
| 29 |
"Check if no TTL channels are active" -> "All required analysis parameters present?"; |
| 30 |
"All required analysis parameters present?" -> "Check if all active IC\n headstages have the same stimset"; |
| 31 |
"Check if all active IC\n headstages have the same stimset" -> "All checks passed"; |
| 32 |
"All checks passed" -> Abort [label=No]; |
| 33 |
"All checks passed" -> "Set DAScale to 100pA\nfor all active IC headstages" [label=Yes]; |
| 34 |
"Set DAScale to 100pA\nfor all active IC headstages" -> "Write initial stepsize of 100pA into\nlabnotebook for all active IC headstages"; |
| 35 |
"Write initial stepsize of 100pA into\nlabnotebook for all active IC headstages" -> "Set \"DAScale exceeded\" labnotebook entry\nto false for all active IC headstages"; |
| 36 |
"Set \"DAScale exceeded\" labnotebook entry\nto false for all active IC headstages" -> "Store active headstages in labnotebook"; |
| 37 |
"Start DAQ/RA (only call for last active headstage)" -> "Prepare DAQ/Pre Set Event"; |
| 38 |
"Start DAQ/RA (only call for last active headstage)" -> "Post Sweep Event"; |
| 39 |
"Start DAQ/RA (only call for last active headstage)" -> "Post DAQ Event"; |
| 40 |
"Start DAQ/RA (only call for last active headstage)" -> "Post Set Event"; |
| 41 |
n60 [label="Pre DAQ Event"]; |
| 42 |
"Start DAQ/RA (only call for last active headstage)" -> n60; |
| 43 |
"Post Sweep Event" -> "Iterate over all active headstages"; |
| 44 |
"Post Sweep Event" -> "Store pulse duration in labnotebook"; |
| 45 |
"Post DAQ Event" -> "Update Dashboard"; |
| 46 |
"Post Set Event" -> "Mark set as passed if 1 sweep passed,\nas failure otherwise"; |
| 47 |
"Post Set Event" -> "Set \"TP during ITI\" to enabled"; |
| 48 |
n60 -> "Enable \"Multidevice DAQ\""; |
| 49 |
"Iterate over all active headstages" -> "Active headstages left?"; |
| 50 |
"Mark set as passed if 1 sweep passed,\nas failure otherwise" -> "Analysis parameter \"PostDAQSetDAScale\" is true"; |
| 51 |
"Set \"TP during ITI\" to enabled" -> "Set \"TP inserting\" to enabled"; |
| 52 |
"Enable \"Multidevice DAQ\"" -> "Enable \"Repeated Acquisition\""; |
| 53 |
"Active headstages left?" -> "Have all headstages passed in one sweep\nof their stimset cycle?" [label=No]; |
| 54 |
"Active headstages left?" -> "Headstage passed?" [label=Yes]; |
| 55 |
"Analysis parameter \"PostDAQSetDAScale\" is true" -> "Set DAScale to the stored LBN value taking into account\nthe analysis parameter \"PostDAQDAScaleFactor\"\nand \"PostDAQDAScaleMinOffset\"\ |
| 56 |
.\nSet it to \"PostDAQDAScaleForFailedHS\" for failed headstages."; |
| 57 |
n61 [label="Is \"Unlocked indexing\" active"]; |
| 58 |
"Enable \"Repeated Acquisition\"" -> n61; |
| 59 |
"Have all headstages passed in one sweep\nof their stimset cycle?" -> "Mark sweep as failed" [label=No]; |
| 60 |
"Have all headstages passed in one sweep\nof their stimset cycle?" -> "Mark sweep as passed" [label=Yes]; |
| 61 |
"Headstage passed?" -> "Headstage exceeded DAScale\n according to labnotebook entry?" [label=No]; |
| 62 |
"Set DAScale to the stored LBN value taking into account\nthe analysis parameter \"PostDAQDAScaleFactor\"\nand \"PostDAQDAScaleMinOffset\"\ |
| 63 |
.\nSet it to \"PostDAQDAScaleForFailedHS\" for failed headstages." -> "Read active headstages from labnotebook\nand turn them all on again"; |
| 64 |
n61 -> Abort [label=Yes]; |
| 65 |
"Mark sweep as failed" -> "Have all active headstages an DAScale exceeded\n labnotebook entry?"; |
| 66 |
"Mark sweep as passed" -> "Skip to end of active set"; |
| 67 |
"Headstage exceeded DAScale\n according to labnotebook entry?" -> "Spike detected?\n(x range: pulse onset to end of sweep\ny condition: max above 0.01mV)\nStore result in labnotebook" [label=No]; |
| 68 |
"Have all active headstages an DAScale exceeded\n labnotebook entry?" -> "Skip to end of active set" [label=Yes]; |
| 69 |
"Spike detected?\n(x range: pulse onset to end of sweep\ny condition: max above 0.01mV)\nStore result in labnotebook" -> "Step size from labnotebook? (1)" [label=Yes]; |
| 70 |
"Spike detected?\n(x range: pulse onset to end of sweep\ny condition: max above 0.01mV)\nStore result in labnotebook" -> "Step size from labnotebook? (2)" [label=No]; |
| 71 |
"Step size from labnotebook? (1)" -> "Store DAScale in labnotebook" [label="+10pA"]; |
| 72 |
"Step size from labnotebook? (1)" -> "Offset DAScale by -50pA" [label="-50pA"]; |
| 73 |
"Step size from labnotebook? (1)" -> "Write step size of -50pA to labnotebook" [label="+100pA"]; |
| 74 |
"Step size from labnotebook? (2)" -> "Write step size of +10pA to labnotebook" [label="-50pA"]; |
| 75 |
"Step size from labnotebook? (2)" -> "Offset DAScale by +10pA" [label="+10pA"]; |
| 76 |
"Step size from labnotebook? (2)" -> "Offset DAScale by +100pA" [label="+100pA"]; |
| 77 |
"Store DAScale in labnotebook" -> "Mark headstage as passed"; |
| 78 |
"Offset DAScale by -50pA" -> "Mark headstage as failed"; |
| 79 |
"Write step size of -50pA to labnotebook" -> "Offset DAScale by -50pA"; |
| 80 |
"Write step size of +10pA to labnotebook" -> "Offset DAScale by +10pA"; |
| 81 |
"Offset DAScale by +10pA" -> "Mark headstage as failed"; |
| 82 |
"Offset DAScale by +100pA" -> "Mark headstage as failed"; |
| 83 |
"Mark headstage as passed" -> "Set DAScale to zero"; |
| 84 |
"Mark headstage as failed" -> "\"MaximumDAScale\" analysis parameter is not NaN?"; |
| 85 |
"Store active headstages in labnotebook" -> "Turn off active non-IC headstages"; |
| 86 |
"\"MaximumDAScale\" analysis parameter is not NaN?" -> "DAScale is larger than \"MaximumDAScale\"?" [label=Yes]; |
| 87 |
"Disable \"dDAQ\"/\"oodDAQ\"" -> "Set \"TP during ITI\" to disabled"; |
| 88 |
"Set \"TP during ITI\" to disabled" -> "Set \"ITI\" to 100ms"; |
| 89 |
"Set \"ITI\" to 100ms" -> "Set \"TP inserting\" to disabled"; |
| 90 |
"Turn off active non-IC headstages" -> "Set \"User onset delay\" to 0ms"; |
| 91 |
"Set \"User onset delay\" to 0ms" -> "Set \"Termination delay\" to 0 ms"; |
| 92 |
"Set \"Termination delay\" to 0 ms" -> "Disable \"dDAQ\"/\"oodDAQ\""; |
| 93 |
"DAScale is larger than \"MaximumDAScale\"?" -> "Mark headstage as \"DAScale exceeded\"\nin labnotebook" [label=Yes]; |
| 94 |
"Mark headstage as \"DAScale exceeded\"\nin labnotebook" -> "Set DAScale to zero"; |
| 95 |
} |