03-26-2008 10:08 AM
03-28-2008 01:41 PM
Hi Greg,
I understand that you want to speed up your program by saving time in setting the TClk. At this point I’m a little confused on what you mean by reset the TClk, do you mean that you initiate a TClk session? Or that you synchronize the TClk signals of the sessions? Are you aborting the generation every time before changing the events in the AWG? Or do you create a new session for the individual devices? It would be helpful if you can give us a little bit more information on how your program is configured.
The TClk is a signal internally generated by each device from the sample clock. The TClk software calculates the TClk frequency based on the sample clock, but I believe that the TClk initiate function is not deterministic; the time it takes to perform will depend on your operating system. I hope this is helpful,03-28-2008 03:31 PM
Sorry about that Ana,
I see that I was mixing terms.
After each experiment, when nothing changes on the AWG or digitizer, I simply initiate the Tclock. This does not take that long and is not such a problem.
Whenever the user changes any parameter on either the AWG or the digitizer, I currently set a flag and this forces a new Tclock syncronization. I am asking what parameters require a new Tclock synchronization and when can I opt instead for a simple Tclock initiation (clockrate changes on either device would obviously require this.)
I only create new instrument sessions at program start (load) and I abort the AWG output generation between each experiment when I transfer the data from the digitizer. At this time, I reset two 6733 and a Spincore NMR timing card as well.
Note : there are many experiments per session and / or program execution.
I understand that Tclock initiation is not deterministic (nor is anything else under WinOS) but the Tclock initate is chump-change compared to the Tclock synchronization. I can live with some variation in delay time as we timestamp the data received (tenth second or so) but this at least keeps us from propagating time errors over hundreds or more experiments.
Greg
04-01-2008 12:02 AM - edited 04-01-2008 12:03 AM
Hi Greg,
Thanks for sharing more information. You are right in that clock rate changes will require synchronization of the TClk. Actually you will only need to synchronize the TClk when you are changing parameters that will affect the sample rate. There is a list of these attributes in the NI-TClk Synchronization Help, under Performance Optimization:
I hope this will be helpful in speeding up your application,