02-07-2006 05:12 PM
02-08-2006 12:53 PM
Hi Otis,
Thanks for your suggestions. I tried to get one output from ao but it did not work. I get some kind of nise on osciloscope instead of desired signal.
Let me try to reframe my problem. I want to generate three clock signal using PCI 6251 . They must have same source or time base. let us call first one as master clock at 200 khz. Now I want to count down the master clock by 4 to get another clock at 50 khz. Now I need another i.e third clock signal which is << master clock and is exact sub multiple of master clock , let us say 25. So my third clock is 8 khz( master clock is count down by 25).
I want to use 2nd clock as a carrier signal for FM and want third clock to be used as an external clock at PFI0 for a received signalwhich is 25khz modulatedand is to be fed into ai channnel.
If you have any other suggestion pleae send it to me.
thanks
AM
02-08-2006 01:19 PM
02-08-2006 07:07 PM
02-09-2006 11:49 AM
Hi gus,
I tried to implement you suggestions but i could not do it. Either I did not understand exactly what you asked me to do or this thing does not support my application. I have attached my code. Could you please have a look on it and make changes like you suggested.
I know how to generate two counters and now i need third clock either external or internal which is count down by some number e.g .25 from master clock which is at crt1 out (The source for crt1 out and ctr0 out is ctr1internal output), and sample the AI with this clock.
I want master clock e.g 200 khz, ctr 0 output at 50khz and third clock e.g 8 khz internal or external but msut be in sync with master clock.
I hope my query is cleat to you this time.
Thanks
AM
02-09-2006 12:59 PM
02-10-2006 10:10 AM
Kevin,
Thank you very much. I hope this would work. If I have any questions I'll let you know.
AM
03-16-2006 05:16 PM
Hi Kevin/ Otis,
I got the following error when I run the attached code on PCI –6120 and PCI 6052E.
“ Error – 89136 occurred at DAQmx start Task vi.
Problem reason(s): Specified route cannot be satisfied because, hardware does not support it.
Property: sampleclock.output Term
Destination: Device 1
Destination Terminal: PFI 0. “
But When I run it on PCI 6251 which a M series card. It works fine. I am using the code Kevin sent to me. I guess it is designed for M series cards only. I anyone of you can suggest me how t o optimize it for any NI card. It would be cool.
The problem is I work at two different places i.e. two different labs. I have PCI 6251 in one lab but got other two above-mentioned cards at the other lab.
Could you please help me to rectify this problem?
Thanks in advance.
AM
03-16-2006 05:19 PM
Hi Kevin/ Otis,
I got the following error when I run the attached code on PCI –6120 and PCI 6052E.
“ Error – 89136 occurred at DAQmx start Task vi.
Problem reason(s): Specified route cannot be satisfied because, hardware does not support it.
Property: sampleclock.output Term
Destination: Device 1
Destination Terminal: PFI 0. “
But When I run it on PCI 6251 which a M series card. It works fine. I am using the code Kevin sent to me. I guess it is designed for M series cards only. I anyone of you can suggest me how t o optimize it for any NI card. It would be cool.
The problem is I work at two different places i.e. two different labs. I have PCI 6251 in one lab but got other two above-mentioned cards at the other lab.
Could you please help me to rectify this problem?
Thanks in advance.
AM
03-17-2006 11:42 AM