01-05-2010 02:40 PM
Hi,
I'm trying to access the sampling/pixel clock from a PCI-6110 card. I'm using a BNC-2110 board and I'm sampling an analog signal at 0.5-1 MHz. I want to get access to this signal so that I can control some integrating electronics downstream.
01-05-2010 03:52 PM - edited 01-05-2010 03:55 PM
01-05-2010 06:06 PM - edited 01-05-2010 06:07 PM
Hi Biologist2009,
I believe you are looking for the following function:
In this case, signal would be SampleClock and the output terminal would be something along the lines of /Dev1/PFI7 where "Dev1" is the name of your DAQ device. You should use PFI 7 since this is the direct route to the AI Sample clock on the 6110 (you can find this in the device routes tab of Measurement and Automation Explorer).
The 6110 is simultaneous so it doesn't have an independent convert clock signal (although you can export the start trigger in this way if so desired).
Best Regards,
John
01-05-2010 09:18 PM
Hi John,
Thanks for the reply. The pin you reference below as the Sample Clock is the START SCAN pin of the NI DAQ, correct? Is there any way to get the SCAN CLK output (or AI Hold Complete as I believe it's referred to in NIDAQmx) in NI DAQmx? If I just connect a wire to pin 46 on the 68-pin connector (pg. 33 of http://www.ni.com/pdf/manuals/321759d.pdf), would I be able to access the sampling clock directly (i.e., is the sampling clock hard-wired to pin 46 or do I have to set it in software)?
Thanks.
John P wrote:Hi Biologist2009,
I believe you are looking for the following function:
In this case, signal would be SampleClock and the output terminal would be something along the lines of /Dev1/PFI7 where "Dev1" is the name of your DAQ device. You should use PFI 7 since this is the direct route to the AI Sample clock on the 6110 (you can find this in the device routes tab of Measurement and Automation Explorer).
The 6110 is simultaneous so it doesn't have an independent convert clock signal (although you can export the start trigger in this way if so desired).
Best Regards,
John
Message Edited by John P on 01-05-2010 06:07 PM
01-05-2010 09:46 PM
01-06-2010 10:34 AM
You should export the signal the way I mentioned in my other post--the 6110 hardware manual still uses the old terminology but the Scan Clock is now referred to as Sample Clock in the newer DAQmx Terminology.
You have to explicitly export the signal, the clock will not be on PFI 7 (pin 46) unless you call the ExportSignal to export the Sample Clock.
Best Regards,
01-06-2010 01:01 PM
Hi John,
I can export the STARTSCAN signal (pin 38) to PFI7, but not the SCANCLOCK (pin 46). As I understand, the order of signals for an acquisition is STARTSCAN, followed by CONVERT (50-100 ns in length), followed by SCANCLOCK (450 ns wide). I would like to get the SCANCLOCK (which I believe is referred as AIHoldComplete in NiDAQmx terminology) instead of the STARTSCAN (referred to as SampleClock in NiDAQms terminology).
Thanks.
John P wrote:You should export the signal the way I mentioned in my other post--the 6110 hardware manual still uses the old terminology but the Scan Clock is now referred to as Sample Clock in the newer DAQmx Terminology.
You have to explicitly export the signal, the clock will not be on PFI 7 (pin 46) unless you call the ExportSignal to export the Sample Clock.
Best Regards,
01-06-2010 03:59 PM
Hi Biologist,
I understand what you are saying now--there are in fact two distinct signals with similar names: Scan Clock (aka STARTSCAN) and SCANCLK. These two signals are now known respectively as AI Sample Clock and AI Hold Complete Event in DAQmx (the names are supposed to be more intuitive in DAQmx). Here's a better link for DAQmx terminology changes.
In addition to the two above signals, there is also the Convert Clock which functions pretty much as you've described it.
DAQmx does allow the user to export the AI Hold Complete Event and the Convert Clock using the Export Signal function on E, M, and X Series boards. However, DAQmx does not seem to recognize the AI Hold Complete Event or the Convert Clock as a valid signal to export for the 6110--this is likely true for all of the 611x boards. I'm going to file this as a bug to our DAQ Software Group (at the very least documentation needs to be updated to make this behavior more clear).
Could you tell us a bit more about what you need to use the SCANCLOCK for? There are two user-accessible counters on the 6110 that might also be an option (e.g. you could one of them to generate a pulse of configurable width with a configurable delay after the sample clock). The timebase for the counters is 20 MHz so you would have a 50 ns resolution on your times for both your pulse width and delay from Sample Clock.
Best Regards,
09-08-2010 12:25 AM
Dear John,
However, DAQmx does not seem to recognize the AI Hold Complete Event or the Convert Clock as a valid signal to export for the 6110--this is likely true for all of the 611x boards. I'm going to file this as a bug to our DAQ Software Group (at the very least documentation needs to be updated to make this behavior more clear).
Has this bug been fixed? I need the AI Hold Complete Event to drive some legacy hardware.
The bug is still there in NIDAQmx 9.1. It would be great if it is fixed in 9.2.2 ...
Thanks
09-09-2010 09:20 AM
Hi KimKimBo,
I will look into this and get back to you about the bug documentation. You can always check the release notes/readme of the new driver to see what bugs have been addressed.
Best,