05-13-2008 05:45 AM
05-14-2008 07:53 PM
Hi Michael,
The onboard sample clock controls the rate for acquisition and generation of the samples, so the work around would be trying to generate the trigger signal at 1 MHz to read the data while generating at 20 MHz. I want to be clear in what you are trying to accomplish, so I can try to reproduce it at my end. Do you want to read one sample every 20 clock cycles or 5 samples? I understand that the main problem is that when you get the trigger pulse you are reading data only on the first trigger mark, but you want to generate 1 M pulses to acquire one sample with every pulse. If my assumptions are mistaken, please let me know.
05-15-2008 07:28 AM
05-19-2008 08:44 AM - edited 05-19-2008 08:44 AM
Hi Michael,
Instead of generating the 1 MHz signal using markers, we could use one of the digital lines to generate that signal and use it as the sample clock for the acquisition. I’m attaching the modified example where we use the 20 MHz onboard clock for generation and generate a 1 MHz signal for the acquisition sample clock in digital line 1. I hope this helps for your application,
05-20-2008 07:57 AM
Hi,
Could you save that as 8.2 version and re-send please.
Thanks,
Mike
05-21-2008 10:16 AM
Hi Michael,
Here it is in version 8.2. Regards,
05-21-2008 10:45 AM
Hi,
I'm getting an error as follows.......
Possible reason(s):
Driver Status: (Hex 0xBFFA49B5) DAQmx Error -200586 occurred:
Measurements: Hardware clocking error occurred.
If you are using an external sample clock, make sure it is connected and within specifications. If you are generating your sample clock internally, please contact National Instruments Technical Support.
Device: Dev1
Status Code: -200586
05-21-2008 12:05 PM
Hi Michael,
In this program I’m generating the 20 MHz signal in digital line 0 and the 1 MHz signal in digital line 1. I’m using this last signal as the sample clock for the acquisition task. In order to do that I physically connected the digital line 1 to the Strobe pin of the card. So I start the generation task and then the acquisition task (that uses the previously generated signal as a clock). I understand that is the reason why this error is showing up, you will need to physically connect digital line 1 to the Strobe. I’m sorry for not explaining this in details previously. I hope this help,
05-21-2008 04:36 PM
Hi
I should have spotted that myself! Thanks for you patience with this issue. Much appreciated.
Regards,
Michael