COM Automation Interface > COM Automation Interface
WinEDR implements a COM automation server which allows its recording and seal test functions to be controlled from VBSCRIPT batch files or from applications such as Matlab which supports COM automation.
The name of the WinEDR automation object is WinEDR.AUTO and is opened by the VBSCRIPT command
set W = CreateObject(“winedr.auto”)
Recording functions
Recording can be started/stopped, data files created/opened and the recording trigger mode and stimulus pulse protocols selected. The recording methods and properties are listed below.
Recording Methods & Properties |
||
.NewFile(“filename.wcp”) |
Method |
Creates a new data file with the supplied name |
.OpenFile(“filename.wcp”) |
Method |
Opens a pre-existing data file with the supplied name |
.RecordDuration |
R/W Property |
Reads/sets duration of recording (s) |
.StartRecording |
Method |
Starts recording to disk. |
.StopRecording |
Method |
Stops recording to disk. |
.HoldingVoltage |
R/W Property |
Reads/sets the selected DAC channel holding voltage (V) applied to the cell. E.g. W.HoldingVoltage = -0.06 |
.DAChannel |
R/W Property |
Reads/sets the selected D/A channel to which .HoldingVoltage is applied. |
.TriggerMode |
R/W Property |
Read/sets the recording sweep trigger mode. “F”=Free run, “E”= External trigger. |
.NumTriggerSweeps |
R/W Property |
Read/set number of triggered sweeps to be acquired when recording with .TriggerMode=”E” |
.StimulusProtocol |
R/W Property |
Read/sets the selected stimulus pulse protocol. |
.StartStimulus |
Method |
Start stimulus selected by .StimulusProtocol |
.Status |
Read Only |
Reads the current operational status of WinEDR. (0= idle, 1=seal test running, 2=recording to disk) |
Seal test functions
WinEDR’s seal test function can be initiated via the command interface and used to apply test pulses to cells and calculate the cell membrane conductance, capacity, access conductance and pipette seal resistance. These measurements can be read via the command interface while the seal test is running.
The seal test commands are listed below:
Seal Test Methods and Properties |
||
.StartSealTest |
Method |
Displays the seal test window and applies the seal test pulse. |
.SealTestPulseAmplitude |
R/W Property |
Reads/sets the amplitude (Volts) of the seal test pulse |
.SealTestPulseDuration |
R/W Property |
Reads/sets the duration amplitude (S) of the seal test pulse |
.SealTestSmoothingFactor |
R/W Property |
Set cell parameters smoothing factor (0.1 - 1.0) ' 1 = no smoothing, ' 0.1 = maximum smoothing (equivalent to averaging over 10 pulses |
.Vm |
Read Only |
Reads the most recent cell holding potential (V) measurement, computed by the seal test. |
.Im |
Read Only |
Returns the most recent cell holding current (A) measurement, computed by the seal test. |
.Ga |
Read Only |
Reads the most recent cell access conductance (S) measurement. |
.Gm |
Read Only |
Reads the most recent cell membrane conductance (S) measurement. |
.Cm |
Read Only |
Reads the most recent cell capacity (F) measurement. |
.Rseal |
Read Only |
Reads the most recent pipette seal resistance () measurement. |
A file (WinEDR VBSCRIPT Example.vbs)containing VBSCRIPT example code can be found in the c:\winedr folder.