Hardware objects can be instantiated directly in a state machine definition file as in the button example , however the recomended way of specifying hardware is to create a hardware definition file which is imported by the state machine. This specifies that there is a digital input called button connected to pin X1 on the pyboard, and a digital output called LED connected to pin X2. Connect to the board using the pyControl GUI and the micropython version should be updated. The current requirements for some common stepper motors are detailed in the EasyDriver documentation. The analog input class measures the voltage on a pin at a specified sampling rate, can stream these measurements to the host computer to be saved to disk, and can generate pyControl framework events when the voltage rises above or falls below a specified threshold. Secondly, the same task may be used on different setups without modifying the task code as long as the required hardware devices are specified in the setup's hardware definitions. Board configuration The board configuration menu has the following options to configure pyboards.
Uploader: | Grot |
Date Added: | 27 November 2011 |
File Size: | 52.95 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 88243 |
Price: | Free* [*Free Regsitration Required] |
The value of summary variables is displayed for each subject at the end of the session and copied to the clipboard in a format that can be pasted directly into spreadsheets or text editors.
An electrical lickometer board which has two lick detection circuits and two solenoid ports.
pyControl GUI - pyControl
Port 1 on the Five Poke must be connected to a behaviour port with 3 driver lines port 1 or 2 on Breakout board 1. Schematic pdf Repository Front: If you need a digital output with a higher voltage, this can be achieved by using one of the power driver lines with a pull up resistor see below.
After updating pyControl you should reload the pyControl framework onto your pyboards using the GUI's board config menu. Each driver line can sink up to mA of current.
If a valid data directory and a subject ID are provided, the Start button changes to Record and the GUI will save the data generated when the task is run.
The Start button will change to Record indicating that data from the run will be saved. Several components limit the maximum current that can safely be drawn:.
pyControl GUI
For example the hardware definition below specifies that 3 nose pokes are plugged into ports of Breakout board 1. A typical pyControl hardware setup consists of one or more breakout boards connected to a computer by USB, each of which runs a single behavioural setup.
Port 2 on the Five poke board is connected to port 3 on the breakout board. The duty cycle percentage of the period for which the signal is high can be specified as 10, 25, 50 or The simplest way to install the required dependencies is to download and install the Anaconda Python distribution, then use the conda package management utility to install the other packages using the following commands in the Anaconda Prompt:.
The Run task tab controls one hardware setup at a time i.
Command line interface
Encoder must be plugged into Port 1 of breakout board 1. Cat 5 network cable used to connect devices to behaviour ports can carry up to 0.
Assembled pyControl hardware is available from the OpenEphys store. The Variables button opens a dialog for setting or getting the value of task variables. Decimation is designed for inputs like camera sync pulses where the input occurs at a high rate and recording 1 out of every N pulses is sufficent.
Running experiments To run an experiment, press the run button on the configure experiments tab. The subjects table is used to specify which hardware setups will be used and which subject will run on each setup.
Optionally a hardware test can be specified for the experiment. The Data file control box is used to select the directory where data files will be stored and to specify the ID of the subject. For example if you have 4 setups numbered 1 - 4 plugged into COM ports 1 - 4 you would set: Put the pyboard into DFU mode used for upgrading the version of Micropython running on the board.
pyControl - pyControl
Pulsed output uses one of the pyboard hardware timers and as there are a limited number of these pulsed output is by default disabled. Enter the number for the experiment you want to run. The board version will be printed on the microcontroller, make sure to download the matching version of the firmware.
Various optional arguments can be provided as in the example below: Stepper motor Class for controlling an EasyDriver stepper motor driver or any driver which takes a step and direction pin as control inputs. Instantiate breakout board object.
Poke Nosepoke port with infra-red beam, stimulus LED and socket to connect solenoid valve. You can find more information here.
Комментариев нет:
Отправить комментарий