-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log actual time the pattern is displayed, as well as when the TCP commands are received - Priority 7 #53
Comments
Issue #57 seems to be an extreme case for this -- commands are only executed many seconds after they are sent. |
This should already be in the latest builds. You can get the time received for a message in the base tdms file and the time the pattern is played out in the Frame_Time tdms file |
The data is now in the TDMS files. For my understanding, could you clarify the timing of events please? Let me use one example of the Within each loop, there are 6 commands sent to the G4 Host (here the full code within each loop, minor change compared to previously shared code): testCase.panelsController.startLog()
testCase.panelsController.setPatternID(ii);
testCase.panelsController.setPatternFunctionID(ii);
testCase.panelsController.setPositionX(ii);
startTime = tic;
rsp = testCase.panelsController.startDisplay(23);
seqComplete = toc(startTime);
testCase.panelsController.stopLog();
rsps = [rsps; rsp];
runTime = [runTime; 23];
seqTime = [seqTime; seqComplete]; For the Command Received I get the following timings (last column added by me, difference of current Time to previous line):
For the same trial, the Pattern Position contains the following values (second column added by me):
The difference between the timing of the first item in Pattern Position and the last item is I don't fully understand the timing within Command Received, specifically why two commands are received at exactly the same ns, but the command that is on the next line in MATLAB take 2462ns. This might be addressed in issue #52, though. In this current issue I would like to understand the difference between Command Received and Pattern Position. So the time difference between the Secondly, the difference between the last pattern from the Pattern Position and the Related to this I have three more related questions:
|
|
Summary: Log display time as well as communication time.
Description: If possible, we would like to Log the exact time that a pattern appears on the screen. Right now we get the exact time of each TCP command, so we know when the 'start-display' was received. But the frame position data seems to indicate there is some lag time between the start-display command being received and the frame position indicating the new pattern is being displayed. It's hard to get a handle on how long this lag is exactly due to the way frame position is logged described in number 1. If we could, in addition, get information on when the start-display command actually takes effect and the pattern appears on the screen, it would be very helpful to us.
The text was updated successfully, but these errors were encountered: