COM Automation Interface

WinWCP V5.3.8

COM Automation Interface > COM Automation Interface

WinWCP 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 WinWCP automation object is WinWCP.AUTO and is opened by the VBSCRIPT command

set WCP = CreateObject(“ winwcp.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

.StartRecording

Method

Starts recording to disk.

.StopRecording

Method

Stops recording to disk.

.HoldingVoltage

R/W Property

Reads/sets the holding voltage (in Volts) applied to the cell. E.g. WCP.HoldingVoltage = -0.06

.TriggerMode

R/W Property

Read/sets the recording sweep trigger mode. “F”=Free run, “E”= External trigger, “D”= Event Detection, “P”= Stimulus Pulse.
E.g. WCP.TriggerMode = “F”

.StimulusProtocol

R/W Property

Read/sets the selected stimulus pulse protocol.
e.g. WCP.StimulusProtocol = “prot01”

.Status

Read Only
Property

Reads the current operational status of WinWCP. (0= idle, 1=seal test running, 2=recording to disk)

 

Seal test functions

WinWCP’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
(e.g. WCP.SealTestPulseAmplitude= 0.01)

.SealTestPulseDuration

R/W Property

Reads/sets the duration amplitude (S) of the seal test pulse
(e.g.  WCP.SealTestPulseDuration= 0.01)

.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
Property

Reads the most recent cell holding potential (V) measurement, computed by the seal test.

.Im

Read Only
Property

Returns the most recent cell holding current (A) measurement, computed by the seal test.

.Ga

Read Only
Property

Reads the most recent cell access conductance (S) measurement.

.Gm

Read Only
Property

Reads the most recent cell membrane conductance (S) measurement.

.Cm

Read Only
Property

Reads the most recent cell capacity (F) measurement.

.Rseal

Read Only
Property

Reads the most recent pipette seal resistance () measurement.

 

A file (WinWCP VBSCRIPT Example.vbs)containing VBSCRIPT example code can be found in the c:\program files\winwcp folder.