Hi Kevin,
I have been using the code you sent me more than a year ago very successfully. Now I want to make a small change. I want to change my sampling frequency from 8kHz to 16 kHz, so I have to change the master clock from 200kHz to 400 kHz. I want to keep carrier frequency 50Khz as before. When I do this using the same code on PCI 6251 and labview 7.0. I don't get any error. The carrier frequency is perfectly 50kHz. But the received signal is not what I expect. When I change it back to carreir freq. 50Khz, sampling frequency 8kHz and master clock to 200 kHz, it works fine again. Moreover, if I change carrier freq. to 40kHz or 25kHz and change the other parameters accordingly, everything works fine. Can you advise me on this please that how can I make it works for smapling frequency 16Khz, which is used for sampling incomming signal through PFI0. You can find the vi in this thread name
I tried to upload it but having some problem. But this code is there already in the thread .
Thanks
AM
************************ Following is what you wrote to me more than a year before***************
DSPGUY,
In the meantime, here's a really quick-and-dirty example to show you one way that can work. I tested it on an M-series device with AO capabilities.
Scheme:
1. Generate master clock using the AO subsystem -- the AO sample clock. I simply wrote 0V values to the output buffer b/c the actual output doesn't matter, only the sampling clock. Note that the original default freq is 200 Hz so that UI indicators could show operation usefully, but it can also operate at 200 kHz.
2. Master clock is used as "Source of Ticks" for 2 counter pulsetrains. They generate 50% duty cycle divided-down clocks that are sync'ed to the master clock. The divide-down factors can vary independently.
3. Output of "clock 3" (your term from earlier in thread) is used to drive analog input. It becomes the AI sample clock.
4. "Count" properties of each of the 4 tasks are continually queried in a loop so you can observe that all are functioning.
Try it out & see if this gets you going...
-Kevin P.