Skip to content

Commit eabb884

Browse files
committed
Rig hardware infor now registered to Alyx
1 parent dbdd7a5 commit eabb884

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

+srv/expServer.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ function handleMessage(id, data, host)
261261
fid = fopen([name(1:end-3) 'json'], 'w');
262262
fprintf(fid, '%s', obj2json(rig));
263263
fclose(fid);
264+
if ~strcmp(dat.parseExpRef(expRef), 'default')
265+
try
266+
Alyx.registerFile([name(1:end-3) 'json']);
267+
catch ex
268+
warning(ex.identifier, 'Failed to register hardware info: %s', ex.message);
269+
end
270+
end
264271

265272
if rig.timeline.UseTimeline
266273
%stop the timeline system

0 commit comments

Comments
 (0)