Opticka 2.16.1
Opticka is an experiment manager for behavioral research.
Loading...
Searching...
No Matches
dPixxManager Class Reference

DataPixx Communication Class. More...

Detailed Description

DataPixx Communication Class.

The DataPixx (VPixx Technologies Inc.) is a robust stimulus timing tool, allowing microsecond precision of strobed words and TTLs locked to display onset. It also enables better contrast range modes, critical for threshold type experiments. Opticka is an object oriented stimulus generator based on Psychophysics toolbox See http://iandol.github.com/opticka/ for more details

Copyright ©2014-2022 Ian Max Andolina — released: LGPL3, see LICENCE.md

Inheritance diagram for dPixxManager:

Public Member Functions

function dPixxManager (in varargin)
 Class constructor.
 
function open (in obj)
 Open the DataPixx.
 
function close (in obj)
 Close the DataPixx.
 
function sendStrobe (in obj, in value)
 Prepare and send a strobed word.
 
function prepareStrobe (in obj, in value)
 Prepare, but don't send a strobed word.
 
function triggerStrobe (in obj)
 Trigger (send) a pre-prepared strobed word on the next frame.
 
function resetStrobe (in obj)
 reset the strobe
 
function rstart (in obj)
 Send RSTART to the Plexon.
 
function rstop (in obj)
 Send RSTOP to the Plexon.
 
function startRecording (in obj, in value)
 
function resumeRecording (in obj, in value)
 
function pauseRecording (in obj, in value)
 
function stopRecording (in obj, in value)
 
function startFixation (in obj)
 
function correct (in obj)
 
function incorrect (in obj)
 
function breakFixation (in obj)
 
function sendTTL (in obj, in line)
 Send TTL.
 
function setLine (in obj, in line, in value)
 Set line output low or high.
 
function delete (in obj)
 Delete method, closes DataPixx gracefully.
 
- Public Member Functions inherited from optickaCore
function optickaCore (in varargin)
 Class constructor.
 
function get fullName (in me)
 
function getALF (in me, in subject, in sessionPrefix, in lab, in create)
 
function findAttributes (in me, in attrName, in attrValue)
 
function findAttributesandType (in me, in attrName, in attrValue, in type)
 find properties of object with specific attributes, for example all properties whose GetAcccess attribute is public and type is logical.
 
function findPropertyDefault (in me, in propName)
 
function clone (in me)
 Use this syntax to make a deep copy of the object, i.e. OBJ_OUT has the same field values, but will not behave as a handle-copy of me anymore.
 
function checkSuperclasses (in List)
 
function editProperties (in me, in properties)
 method to modify a set of properties
 
function setProp (in me, in property, in value)
 method to fast change a particular value. This is useful for use in anonymous functions, like in the state machine.
 
function initialiseGlobals (in me, in doReset, in doOpen)
 
function initialiseSaveFile (in me)
 Initialise Save prefix.
 
function checkPaths (in me)
 checks the paths are valid
 

Public Attributes

Property verbose
 verbosity
 
Property strobeLine
 which digital I/O to use for the strobe trigger
 
Property stimOFFValue
 what value to send for stimulus off / inf
 
Property silentMode
 silentMode allows one to gracefully fail methods without a dataPixx connected
 
Property nBits
 
Property isOpen
 
Property sendValue
 
Property lastValue
 
- Public Attributes inherited from optickaCore
Property name
 object name
 
Property comment
 comment
 
Property verbose
 verbose logging, subclasses must assign this. This is normally logical true/false
 
Property dateStamp
 clock() dateStamp set on construction
 
Property uuid
 universal ID
 
Property paths
 storage of various paths
 
Property fullName
 The fullName is the object name combined with its uuid and class name.
 

Additional Inherited Members

- Static Public Member Functions inherited from optickaCore
static function makeArgs (in args)
 Converts cell args to structure array.
 
static function addDefaults (in args, in defs)
 add default options to arg input
 
static function hasKey (in in, in key)
 check if a struct / object has a propery / field
 
static function getKeys (in device)
 PTB Get key presses, stops key bouncing.
 
- Protected Member Functions inherited from optickaCore
function parseArgs (in me, in args, in allowedProperties)
 Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties.
 
function addArgs (in me, in args)
 
function setPaths (in me)
 Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties.
 
function getFonts (in me)
 set paths for object
 
function toStructure (in me)
 Converts properties to a structure.
 
function getType (in me, in in)
 
function logOutput (in me, in in, in message, in override)
 Give a metaproperty return the likely property class.
 
function salutation (in me, in varargin)
 Prints messages dependent on verbosity.
 
- Protected Attributes inherited from optickaCore
Property cloning
 are we cloning this from another object
 
Property mversion
 Matlab version number, this is transient so it is not saved.
 
Property sansFont
 sans font
 
Property monoFont
 monoFont
 
Property className
 class name
 
Property savePrefix
 save prefix generated from clock time
 
Property fullName_
 cached full name
 

Constructor & Destructor Documentation

◆ dPixxManager()

function dPixxManager::dPixxManager ( in  varargin)

Class constructor.

Parameters
<br>

Member Function Documentation

◆ breakFixation()

function dPixxManager::breakFixation ( in  obj)
Parameters
<br>

◆ close()

function dPixxManager::close ( in  obj)

Close the DataPixx.

Parameters
<br>

◆ correct()

function dPixxManager::correct ( in  obj)
Parameters
<br>

◆ delete()

function dPixxManager::delete ( in  obj)

Delete method, closes DataPixx gracefully.

◆ incorrect()

function dPixxManager::incorrect ( in  obj)
Parameters
<br>

◆ open()

function dPixxManager::open ( in  obj)

Open the DataPixx.

Parameters
<br>

◆ pauseRecording()

function dPixxManager::pauseRecording ( in  obj,
in  value 
)
Parameters
<br>

◆ prepareStrobe()

function dPixxManager::prepareStrobe ( in  obj,
in  value 
)

Prepare, but don't send a strobed word.

Parameters
valueof the 15bit strobed word

◆ resetStrobe()

function dPixxManager::resetStrobe ( in  obj)

reset the strobe

Parameters
<br>

◆ resumeRecording()

function dPixxManager::resumeRecording ( in  obj,
in  value 
)
Parameters
<br>

◆ rstart()

function dPixxManager::rstart ( in  obj)

Send RSTART to the Plexon.

Parameters
<br>

◆ rstop()

function dPixxManager::rstop ( in  obj)

Send RSTOP to the Plexon.

Parameters
<br>

◆ sendStrobe()

function dPixxManager::sendStrobe ( in  obj,
in  value 
)

Prepare and send a strobed word.

Parameters
valueof the 15bit strobed word

◆ sendTTL()

function dPixxManager::sendTTL ( in  obj,
in  line 
)

Send TTL.

Parameters
line1-8 (pins 17-24) are available on dataPixx only!

◆ setLine()

function dPixxManager::setLine ( in  obj,
in  line,
in  value 
)

Set line output low or high.

Parameters
line1-8 (pins 17-24) are available on dataPixx only!
value0 = low | 1 = high

◆ startFixation()

function dPixxManager::startFixation ( in  obj)
Parameters
<br>

◆ startRecording()

function dPixxManager::startRecording ( in  obj,
in  value 
)
Parameters
<br>

◆ stopRecording()

function dPixxManager::stopRecording ( in  obj,
in  value 
)
Parameters
<br>

◆ triggerStrobe()

function dPixxManager::triggerStrobe ( in  obj)

Trigger (send) a pre-prepared strobed word on the next frame.

Parameters
<br>

Member Data Documentation

◆ isOpen

Property dPixxManager::isOpen

◆ lastValue

Property dPixxManager::lastValue

◆ nBits

Property dPixxManager::nBits

◆ sendValue

Property dPixxManager::sendValue

◆ silentMode

Property dPixxManager::silentMode

silentMode allows one to gracefully fail methods without a dataPixx connected

◆ stimOFFValue

Property dPixxManager::stimOFFValue

what value to send for stimulus off / inf

◆ strobeLine

Property dPixxManager::strobeLine

which digital I/O to use for the strobe trigger

◆ verbose

Property dPixxManager::verbose

verbosity


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