PsychToolBox:将来自GUI的输入传递给简单的Pavlovian脚本时出错

时间:2018-10-05 17:25:40

标签: psych psychtoolbox

我有一个从GUIDE(PITGUI.m)创建的GUI,该GUI应该将来自GUI的一些简单输入作为结构传递给Pavlovian脚本(PITtask.m)。运行它时,我收到以下错误:

 /**
 * Returns a {@code Single} that emits a specified item.
 * <p>
 * <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.just.png" alt="">
 * <p>
 * To convert any object into a {@code Single} that emits that object, pass that object into the
 * {@code just} method.
 * <dl>
 * <dt><b>Scheduler:</b></dt>
 * <dd>{@code just} does not operate by default on a particular {@link Scheduler}.</dd>
 * </dl>
 *
 * @param item
 *            the item to emit
 * @param <T>
 *            the type of that item
 * @return a {@code Single} that emits {@code item}
 * @see <a href="http://reactivex.io/documentation/operators/just.html">ReactiveX operators documentation: Just</a>
 */

使用uiwait时出错(第81行)    评估DestroyedObject回调时出错。

我也放置了GUI和Pavlovian脚本的链接。任何帮助将不胜感激!

劳伦

https://www.dropbox.com/s/8jspl7l233w62ek/PITGUI.m?dl=0 https://www.dropbox.com/s/g3pabwtqs06g4xj/PITtask.m?dl=0

1 个答案:

答案 0 :(得分:0)

要运行代码,您还需要发布“ PITGUI.fig”。但是,您发布的错误消息是在“ PITtask.m”的第61行上触发的。在第61行上,看起来您有跨多行的命令,但是您没有使用省略号(...)来表示多行命令

尝试更改:

fprintf(outfile, '%i %s %s %i %i %s \n', InputDataStruct.subn, InputDataStruct.subname, InputDataStruct.subsex, 
InputDataStruct.subage, InputDataStruct.nblocks, InputDataStruct.subnote);

收件人:

fprintf(outfile, '%i %s %s %i %i %s \n', InputDataStruct.subn, InputDataStruct.subname, InputDataStruct.subsex,... 
InputDataStruct.subage, InputDataStruct.nblocks, InputDataStruct.subnote);