User Tools

Site Tools


guides:expconsim

This is an old revision of the document!


The Experimental Control Simulator is designed to mimic an experimental setup, but with all the components placed on a single circuit board so that experimental control scripts can be tested more easily.

The first version (MvdM, June 2013) is equipped with the following INPUTS:

* 2 photobeams (Pololu) * 2 pushbutton switches (to mimic e.g. a lever press)

The OUTPUTS are:

* 2 LEDs

Interfacing of the simulator board with MATLAB is done through a NI USB I/O module. Thus, to set the state of the LEDs (on/off), do the following:

<MATLAB> outputSession = daq.createSession('ni'); outputSession.addDigitalChannel('Dev3', 'Port0/Line0:1', 'OutputOnly');

this turns off the two LEDs outputSession.outputSingleScan([0 0]); and this turns them on outputSession.outputSingleScan([1 1]); <\MATLAB>

guides/expconsim.1372282118.txt.gz · Last modified: 2018/07/07 10:19 (external edit)