MasterScan  Lab_Matlab_control Master Branch
List of all members | Protected Properties | Methods
dotsWritableDOutArduino Class Reference
Inheritance diagram for dotsWritableDOutArduino:
Inheritance graph
[legend]

Protected Properties

Property arduino
 Implement digital outputs using an Arduino, via the Matlab Arduino toolbox. More...
 

Methods

self dotsWritableDOutArduino ()
 Arguments are ultimately passed to openDevice.
 
timestamp writeDigitalPin (self, pin, value)
 Write to a single digital output channel. More...
 
timestamp writeDigitalPins (self, pins, values)
 Write to a multiple digital output channels at once. More...
 
- Methods inherited from dotsWritableDOut
self dotsWritableDOut ()
 Constructor takes no arguments.
 
timestamp sendStrobedWord (self, word, port)
 Send a strobed digital word. More...
 
timestamp sendTTLPulse (self)
 Send a single TTL pulse. More...
 
firstTimestamp lastTimestamp sendTTLPulses (self, numPulses, pauseBetweenPulses, channel)
 Send multiple TTL pulses Timestamps are estimates of onset times of first and last pulses. More...
 
timestamp sendTTLSignal (self, channel, signal, frequency)
 Send a TTL signal or waveform. More...
 
- Methods inherited from dotsWritable
self dotsWritable ()
 

Constructor takes no arguments.


 
 initialize (self, varargin)
 

Locate, acquire, configure, etc. device and component resources.


 
time getDeviceTime (self)
 

Get the current time from clockFunction.


 
 close (self)
 

Release any resources acquired by initialize().


 
 delete (self)
 

Automatically close when Matlab is done with this object.


 

Additional Inherited Members

- Properties and Events inherited from dotsWritableDOut
Property defaultPauseBetweenPulses = 0.1
 for sendTTL pulses
 
- Properties and Events inherited from dotsWritable
Property isAvailable = false
 

whether or not the object is ready to read() from


 
Property clockFunction
 

any function that returns the current time as a number


 
- Protected Methods inherited from dotsWritable
 openDevice (self)
 

Locate and acquire input device resources (for subclasses).

More...
 
 closeDevice (self)
 

Release input device resources (for subclasses).

More...
 
- Static Methods inherited from dotsWritableDOut
static dout getDefault ()
 get default Dout device
 

Methods

◆ writeDigitalPin()

timestamp writeDigitalPin ( self  ,
pin  ,
value   
)

Write to a single digital output channel.

pin is string value is scalar

◆ writeDigitalPins()

timestamp writeDigitalPins ( self  ,
pins  ,
values   
)

Write to a multiple digital output channels at once.

pin is cell array of strings value is vector

Properties and Events

◆ arduino

Property arduino
protected

Implement digital outputs using an Arduino, via the Matlab Arduino toolbox.

The arduino object


The documentation for this class was generated from the following file: