Commit ed07ccbf authored by Jesse Heckman's avatar Jesse Heckman
Browse files

check

parent ee5b2ed8
......@@ -24,9 +24,13 @@ function pb_vRunExp(handles)
nblocks = handles.cfg.Blocks;
bDat(nblocks) = struct('v',[],'h',[]);
rc = pb_runPupil;
pb_startPupil(rc);
%% CORE BODY
% iterate experiment
for iBlck = 1:nblocks
% Runs blocks of trials with a vestibular condition
......@@ -80,6 +84,7 @@ function pb_vRunExp(handles)
handles = updateCount(handles,'block','count');
end
%% CHECK OUT
pb_stopPupil(rc);
pb_vEndExp(handles.cfg);
pb_vInitialize(handles,false);
toc(experimentTime)
......
No preview for this file type
function rc = pb_runPupil(varargin)
% PB_RUNPUPIL(varargin)
%
% PB_RUNPUPIL(varargin) sets javaclasspath, and initializes remote control pupillabs.
%
% See also: PUPIL_REMOTE_CONTROL, PB_STARTPUPIL
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
default.j = [pb_userpath 'subtools/zeromq/jeromq.jar'];
default.p = 'pupil-desktop.local';
jpath = pb_keyval('java', varargin, default.j);
host = pb_keyval('host', varargin, default.p);
javaclasspath(jpath);
rc = pupil_remote_control(host);
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2018) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
function rc = pb_startPupil(rc)
% PB_STARTPUPIL(rc)
%
% PB_STARTPUPIL(rc) starts recording a remotely controlled pupil object.
%
% See also pb_runPupil
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
rc.time_sync(0.0);
rc.start_recording;
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2018) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
function pb_stopPupil(rc)
% PB_STOPPUPIL(rc)
%
% PB_STOPPUPIL(rc) stops the recording of a remotely controlled pupil
% object.
%
% See also PB_STARTPUPIL, PB_RUNPUPIL
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
rc.stop_recording;
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2018) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
README.md -- GW/20171026
This directory contains jeromq, a zeromq implementation in java that runs from Matlab.
To use in Matlab add the full path to the jeromq.jar to you javaclasspath.
Do this by adding the full path to the file javaclasspath.txt in your personal MATLAB directory
The jeromq directory contains the jeromq version used to build the current jeromq.jar here.
A current version of jeromq can be downloaded from https://github.com/zeromq/jeromq
c:\Users\Jesse\Documents\biofysica\experiment\zeromq\jeromq.jar
Manifest-Version: 1.0
Bundle-Description: Pure Java implementation of libzmq
Bundle-License: https://www.mozilla.org/en-US/MPL/2.0
Bundle-SymbolicName: org.zeromq.jeromq
Archiver-Version: Plexus Archiver
Built-By: gunter
Bnd-LastModified: 1496829755895
Bundle-ManifestVersion: 2
Import-Package: org.abstractj.kalium
Tool: Bnd-1.50.0
Export-Package: zmq.socket.pubsub;uses:="zmq.pipe,zmq,zmq.util,zmq.soc
ket";version="0.4.1.SNAPSHOT",zmq.io.mechanism.plain;uses:="zmq.io.ne
t,zmq.io,zmq.io.mechanism,zmq";version="0.4.1.SNAPSHOT",zmq.io.net.no
rm;uses:="zmq.io.net,zmq.io,zmq";version="0.4.1.SNAPSHOT",zmq.io;uses
:="zmq.poll,zmq,zmq.io.net,zmq.io.net.tcp,zmq.io.net.tipc,zmq.io.net.
ipc,zmq.io.net.pgm,zmq.io.net.norm,zmq.pipe,zmq.util,zmq.io.mechanism
,zmq.io.coder,zmq.io.coder.v1,zmq.io.coder.v2,zmq.io.coder.raw";versi
on="0.4.1.SNAPSHOT",zmq.pipe;uses:="zmq,zmq.util";version="0.4.1.SNAP
SHOT",zmq.io.mechanism.curve;uses:="org.abstractj.kalium,zmq.util,zmq
.io.net,zmq.io,zmq.io.mechanism,zmq";version="0.4.1.SNAPSHOT",zmq.io.
coder.v1;uses:="zmq.io.coder,zmq.util,zmq";version="0.4.1.SNAPSHOT",z
mq;uses:="zmq.pipe,zmq.io,zmq.util,zmq.socket,zmq.io.net.tcp,zmq.io.c
oder,zmq.io.net.ipc,zmq.io.mechanism,zmq.poll,zmq.io.net,zmq.io.net.t
ipc";version="0.4.1.SNAPSHOT",zmq.io.coder.v2;uses:="zmq.io.coder,zmq
.util,zmq,zmq.io.coder.v1";version="0.4.1.SNAPSHOT",zmq.io.mechanism.
gssapi;uses:="zmq.io.net,zmq.io,zmq.io.mechanism,zmq";version="0.4.1.
SNAPSHOT",zmq.io.net;uses:="zmq.io.net.tcp,zmq.io.net.ipc,zmq.socket"
;version="0.4.1.SNAPSHOT",zmq.io.net.tcp;uses:="zmq.io.net,zmq.io,zmq
,zmq.poll,zmq.util,zmq.socket";version="0.4.1.SNAPSHOT",zmq.io.net.ti
pc;uses:="zmq.io.net,zmq.io,zmq.io.net.tcp,zmq,zmq.io.net.ipc";versio
n="0.4.1.SNAPSHOT",zmq.poll;uses:="zmq,zmq.util";version="0.4.1.SNAPS
HOT",zmq.socket.pipeline;uses:="zmq.pipe,zmq.util,zmq.socket,zmq";ver
sion="0.4.1.SNAPSHOT",org.zeromq;uses:="zmq,zmq.util,zmq.poll,zmq.io.
mechanism,zmq.io.coder";version="0.4.1.SNAPSHOT",zmq.io.net.ipc;uses:
="zmq.io.net.tcp,zmq.io.net,zmq.io,zmq";version="0.4.1.SNAPSHOT",zmq.
socket;uses:="zmq.pipe,zmq.util,zmq,zmq.socket.pubsub,zmq.io.net,zmq.
io,zmq.socket.reqrep,zmq.socket.pipeline";version="0.4.1.SNAPSHOT",zm
q.io.net.pgm;uses:="zmq.io.net,zmq.io,zmq";version="0.4.1.SNAPSHOT",z
mq.socket.reqrep;uses:="zmq.pipe,zmq.util,zmq.socket,zmq,zmq.io.net,z
mq.io";version="0.4.1.SNAPSHOT",zmq.io.coder;uses:="zmq.util,zmq";ver
sion="0.4.1.SNAPSHOT",zmq.util;uses:="zmq,zmq.io.net,zmq.io.net.tcp";
version="0.4.1.SNAPSHOT",zmq.io.mechanism;uses:="zmq.io.net,zmq.io,zm
q.util,zmq.socket,zmq,zmq.io.mechanism.plain,zmq.io.mechanism.curve,z
mq.io.mechanism.gssapi";version="0.4.1.SNAPSHOT",zmq.io.coder.raw;use
s:="zmq.io.coder,zmq.util,zmq";version="0.4.1.SNAPSHOT"
Bundle-Name: JeroMQ
Bundle-Version: 0.4.1.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.8.0_131
#Generated by Apache Maven
#Wed Jun 07 12:04:18 CEST 2017
version=0.4.1-SNAPSHOT
groupId=org.zeromq
artifactId=jeromq
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.zeromq</groupId>
<artifactId>jeromq</artifactId>
<packaging>jar</packaging>
<version>0.4.1-SNAPSHOT</version>
<name>JeroMQ</name>
<description>Pure Java implementation of libzmq</description>
<url>https://github.com/zeromq/jeromq</url>
<licenses>
<license>
<name>Mozilla Public License version 2.0</name>
<url>https://www.mozilla.org/en-US/MPL/2.0</url>
</license>
</licenses>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<scm>
<url>git@github.com:zeromq/jeromq.git</url>
<connection>scm:git:git@github.com:zeromq/jeromq.git</connection>
<developerConnection>scm:git:git@github.com:zeromq/jeromq.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer />
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.abstractj.kalium</groupId>
<artifactId>kalium</artifactId>
<version>0.5.0</version>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>*</Export-Package>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.11</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<configLocation>${project.basedir}/src/checkstyle/checks.xml</configLocation>
<failOnViolation>true</failOnViolation>
<excludes>**/guide/*</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<versionRange>[2.11,)</versionRange>
<goals>
<goal>check</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>doclint-java8-disable</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment