Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Experimental Control
 Getting machine time in CIGAL?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marion Posted - Apr 25 2006 : 4:43:35 PM
Is there any way to get CIGAL to give you the machine time (or just the current actual time) at which you start a task running? If CIGAL doesn't do this, is there any other way anyone knows of to record this very acurately (ie on the order of milliseconds)?
5   L A T E S T    R E P L I E S    (Newest First)
deshmukh Posted - Apr 26 2006 : 11:41:39 AM
Unfortunately the ASL software has no protocol for communicating with another machine via serial port to trigger it's recording action. It uses the serial port to communicate with it's camera control and digital processing box. Synchronizing machine clocks seems to be the only option.
marion Posted - Apr 26 2006 : 11:34:14 AM
Yeah, it sounds like trying to set up a signal over a serial port is definitely better than trying to synchronize different machine clocks; I'll talk to Imran about setting this up with the ASL eye tracking software.

Thanks very much for your help.
jim.voyvodic Posted - Apr 26 2006 : 11:18:50 AM
There are lots of ways to approach this issue.
The most accurate is still to have the 2 computers talk to each other directly. What are you going to be doing on the other computer? Is the software you are running there capable of sending a time-stamped signal out a serial port? If so, you can have CIGAL
monitor that serial port and record when it receives a signal. Another way to synchronize the two computers would be to briefly run CIGAL on the other computer, before or after your other software, and let it send that computer's clock time in an explicit synchronization message. That way you would have both clock times for the same moment (accurate to a millisecond or so) and could see how similar they are. Then any other real clock times on either machine could be compared.

You can put any CIGAL commands you want into a PPF file, but simply recording the clock time there (e.g. "time > timelog.txt") won't help much. When I install the new version
(CIGAL 4.81.26) next week I will also post a link to a web-site describing the new features, including how to read the time log.

Jim
marion Posted - Apr 26 2006 : 09:45:39 AM
Thanks, this helps a lot. I want to relate the time of CIGAL events to the machine time of another BIAC computer in the same room, I don't know whether that means they should be well-synchronized or if they'll still be off.
Is there a way to incorporate the TIME function into a .ppf or something so that the start-time will be recorded in one of the output files? (Sorry if that's obvious, I don't have much experience wiht this stuff yet)

Thanks again,
-Brian
jim.voyvodic Posted - Apr 25 2006 : 5:38:38 PM
CIGAL records all events with 20 micosecond accuracy, relative to each other. These times are all stored in the PDIGM output file. The TIME command in CIGAL gives the current date and time with millisecond precision (relative to the acuracy of the clock setting.)
The date and time a paradigm finished are recorded (date hh:mm) in the parameter record of the PDIGM output file, but that is only accurate to a minute.

Presumably you want the computer's idea of current time at the moment the paradigm began so that you can relate CIGAL events to some outside clock. This can be added but it's not clear to me how you would synchronize the clocks themselves. CIGAL tends to depend on direct interactions with other devices to ensure synchronization, since computer clocks are typically not well synchronized and the clock calibration issue has always been a problem.

The new version of CIGAL (to be installed within the next week or so) now records the computer's idea of day time (to the millisecond) at the moment that ShowPlay's 20 us clock begins to tick. I will record that time in the PDIGM output file alongside the LTIME0 value, which is the time in 20 us clock ticks when the paradigm actually began (1st scanner image usually). With thse numbers you will then be able to convert any clock tick time to day time.
Jim

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.28 seconds. Snitz Forums 2000