Hello Mathieu Steiner,
thanks a lot for your interest and help in this issue.
I will see to set up a analog input test a.s.a.p., but I am honestly not sure if this is possible with this model, since somewhere in the help-files I believed to have read, that for the 672x models, only the output clock can be taken from an external source, and also the "Device Routes" table in DAQmx does not indicate this option (/dev3/ai/SampleClock from anywhere outside), but I did not dive into this yet, since as you said rightly this is not my intention anyway so I did not try yet I'll see what I can do.
But in the mean-time, I send you hereby a zip-file with the code that I generated along with two bmps, which show screen dumps of a digital scope responding to the program execution.
The "Response 6731.bmp" shows, how the picture should look like: the bottom line shows the pulse sequence of the DIO-64 card, and the Analog output values change state on each rising flank. there are some extra pulses, where I did not preprogram the FIFO of the PCI-6722, so there is no more response, but that's as it should be.
This very pulse sequence is occurring also on the RTSI channels 1, 5 and 6 and on the PFI0 pins by a cable, as I verified directly with a scope on the RTSI cable pins.
That the 6722 receives these, you can see in the program code, where I re-routed RTSI6 to PFI4 and put the output onto the scope too; in "Response 6722.bmp" you see how PFI4 echoes the pulse sequence. But on the very same bmp you can see the response of the PCI-6722/ao0: a flat line. The only difference between programming of the PCI-6731 and the 6722 is that all occurences of "Dev3" are replaced by "Dev2". The response btw. is independent of the re-reouting being active or deactivated by the little Boolean constant.
As you see in the DAQmx-timing control node, I also routed RTSI7 (carrying the MasterClock of the DIO-64 digital board to improve synchronization, 20MHz) as the "/Dev3/MasterTimebase" but I did not verify yet, if that routing is in effect.
Well, I am not sure, if you can make the vi run just like that, you might need the DIO-vi's and those are provided by Viewpoint-systems, so I'm not sure if I'm authorized to pass you those. And even if you had them, they would state an error, if no physical DIO-64 is installed in your hardware.
But: I also tried routing PFI0 as the sample clock, and wiring the pulse-sequence by some wires, it takes only a mouse-click to do this: I just changed the "SampClk.Src" of the DAQmx Timing control node to "/Dev3/PFI0", but the answer was again a flat line. So if you want to try to run this, take a 6722, remove the entire Dio-64 related code and wire some external function generator to the PCI-6722. I that helps you I can prepare a code version for this.
thanks in advance, I'll keep my eye on this thread,
best regards,
Christian Buggle
Post-doctorial researcher
Ecole Normale Superieure Paris