Skip to content

Intertrial start display returning too early #86

@floesche

Description

@floesche

Via slack:

I'm seeing this on the host - pattern 7 is an intertrial, it's showing the intertrial parameters are received, the start display is received, and .03 seconds later the parameters for the next condition are received, like the code is continuing to run even though the start display with a duration of 1 second has just been received.

I checked that the duration is right. Here's a picture of the stream on the host. I was thinking of setting the waitforend manually just in case but if it's true by default it shouldn't make a difference.

screenshot_2023-06-28_at_5.16.58_pm_11038_.png

This is for G4_run_protocol_blockLogging.m. The conditions are spaced appriopriately in the host's feed and there's no difference in their startDisplay command and the intertrial's, but for some reason the host stream for every intertrial looks the same - no time between the start display being received and the next commands being received.

Thing is it works fine with the code on the master branch, so I would think it has to be something to do with the run protocol, but I don't know. HM was having the exact same problem, but only a couple flies in. Today she ran ten flies and didn't have the problem at all. But with the new protocols it happens every time. I thought if commands are being sent to the host while the intertrial's start display is still going, maybe it was getting backed up after several flies, but with the new code it happens from the beginning so I'm just not sure.

it just looked from the timestamps in the host stream like the waitForEnd thing was not working with the intertrial's startDisplay command, that was the only thing I could think of that would cause it. But i have no idea how that would happen, so it could be something else.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions