01-30-2014 01:57 PM
01-31-2014 05:37 PM
02-03-2014 08:45 AM
02-03-2014 09:33 AM
02-03-2014 09:37 AM
02-03-2014 09:39 AM
02-04-2014 07:31 AM
Here is the code i am using with a graph showing the delay. I would consider this problem solved if i could some how associate each point one with a very accurate time stamp, i could then shift the results during post processing.
02-04-2014 12:20 PM
Thank you for providing the additional details! I think rather than using TCLK (which is primarily used to synchronize digitizers, signal generators, and digital waveform generator/analyzers that are based on SMC technology), you could try using NI-SYNC with your 6672 card. Using the timing and synchronization should give you the accuracy that you are looking for. You would need to send a trigger to trigger the 6572. Here are some examples that might help:
- In the NI Example Finder, go to Timing and Synchronization >> Signal Based >> Route Software Trigger.vi. This is a very basic example of how to set up a trigger using NI-SYNC. Here is a more in-depth example showing this functionality. I believe you can do something similar but using NI-SCOPE and DAQmx as opposed to NI-HSDIO and NI-FGEN:
https://decibel.ni.com/content/docs/DOC-14888
- If you want to move more towards finding the offset of the timestamp, take a look at this example to see if you can apply a similar method:
https://decibel.ni.com/content/docs/DOC-3421
Take a look through these, hopefully they will help give a bit more insight in to how to set up your system. Thanks!
02-05-2014 07:35 AM
The last link doesnt work for me.
I wanted to include the vi i am using as well as another image showing some code i was running before the previous pictures.
I am already using ni-sync to set up the clock connections.
Not using ni-tclk isnt really an option because in the actual program that has a lot more stuff going on, i have four 5122's sync'd up with tclk. The demo i threw together to show the problem doesnt need it, but i wanted the demo to be representative of the larger program.
In a previous post you linked to another forum post with a similar problem with delays, i dont believe there was any resolution in that thread either unless i misunderstand,
The 5122's are running in continuous (re triggerless) operation mode. The only option i really have for capturing an event that would synchronize the two cards is the initial event that starts the acquisition process. The sample clock for the 50MHz IO card is set to onboard, which is supposed to be the Clk10 on the backplane. The NI-Tclk is supposed to sync cards using Clk10 on the backplane. There must be some way to game labview so that each is trigger on the same falling edge of the Clk10 wave.
02-06-2014 04:29 PM
Thank you for the additional information. Just so that I have an understanding moving forward, how sychronized do you need this application to be? How fast is your system running? TCLK is going to compensate for very small differences from the 10MHz clock and ensures that all of the cards synch'd with TCLK start at exactly the same time. Unfortunately, there is not a very easy way to use those compensated values to start another system (like your DAQ device) and will likely result in an offset between all of your readings.
My best suggestion would be to use your timing and synchronization card to send a start trigger to the digitizers and to the DAQ device through the star trigger lines (speaking of which, what chassis are you using?). You could still use TCLK if necessary between the digitizers, but you will most likely still see that offset between the DAQ and the digitizers readings. A DAQmx triggering VI would also need to be inserted in order to set up a start trigger. If you decided not to use TCLK, as you said, the signals would not be synched to themselves.
This example, if tweeked so that it is using NI-SCOPE rather than FGEN or HSDIO along with DAQmx, is the best way that I can think of to do this:
https://decibel.ni.com/content/docs/DOC-14888
Using the NI-SYNC VI's in this example you need to send a trigger to PXI_Trig0 line (in your case, use star trigger lines if you have them available on your chassis. All of the lines have been trace length matched and should help avoid any kind of delays through the lines). Notice that the DAQmx is set to trigger off of this PXI_Trig0 signal. You will set up thet NI-SCOPE trigger the same way.
If this is not providing a good enough measurement, you might want to look at some of our HSDIO cards with SMC. These would allow you to use TCLK to sync both the digitizers and your HSDIO card.
Please let me know you have any additional questions!
Thanks,