11-01-2005 10:53 PM
11-03-2005 10:42 AM
11-04-2005 11:01 AM
Hi otis,
I think I did not frame my question properly. Let me put it like this.
I want to generate a clock at 200 Khz using NI card e.g. PCI 6120. Then I want to count down this 200 KHZ Clock to 50KHZ , while making sure it is in sync. By sync I mean rising edge of 50KHZ must concide every 4th rising edge of 200KHZ and same for trailing edge. Now I want to send this signal out of my card to a signal generator(Analog Device ) into its syn input and generate a analog 50 KHZ signal from my signal generator , which in other words is in syn with 50 KHZ signal from the card. Now this ouput from signal generator goes through some other stuff and we have now FM signal with carrier 50 KHZ and now I want to feed this FM signal to NI card and sample it at e.g 20KHZ but I want to make sure incoming signal to the card and outgoing signal are in sync.
I need your valueable suggestions or help in this regard. Like if you have some code you think be helpful , could you please send it to me.
I hope this time my question is clear.
Thank
AM
11-04-2005 11:56 AM
11-07-2005 02:51 PM
11-07-2005 04:10 PM
Hi Otis,
Thanks for your prompt reply. I 've just scanned this VI and it looks helpful. But I also want to see the outgoing signal i.e. 50KHZ on graph. I find it hard in these magic VI's to connect graph since it works in task in task out fashion. Regarding your suggestion that I don't need to have external source. If I can make 50KHZ pure sine wave which looks like it is obtained from signal generator using PCI 6120, then it's even better. But I am bit skeptical about generation of 50 KHZ signal using card . The other thing I could not see appearnt in the VI is simulataneous clock for AI and AO and also 200 KHZ and 50KHZ having same clock. I hope you understand what I intend to say.
I'll be thankful for your reply.
AM
11-08-2005 02:48 PM
I'm not sure what you mean by this. To view a graph all you have to do is wire the input data to it and that data will be displayed on the front panel.
- I find it hard in these magic VI's to connect graph since it works in task in task out fashion
The solution I gave you above was to create a 50 kHz Pulse Train. If you want a 50 kHz sine wave, then you could make one quite easily by taking a look at the example (Help > Find Examples > Browse > Hardware Input and Output > DAQmx > Analog Generation > Voltage) Cont Gen Voltage Wfm-Int Clk.vi. Keep in mind that you will need to generate at least 10 points per sine wave to generate something that actually looks like a sign wave.
- If I can make 50KHZ pure sine wave
If you want to synchronize various tasks then you will need to use the same clocks. In the case of the 200 kHz clock and 50 kHz clock, you know those are in sync since they are based off of one another. About the analog task, if you want to synchronize the starting of that with your signal, then you should make all of the tasks work with a start trigger or something to make sure that everything is starting at the same moment. For more information you might want to take a look at the Synchronization (Help > Find Examples > Browse > Hardware Input and Output > DAQmx > Synchronization > Multi-Function) examples.
- The other thing I could not see appearnt in the VI is simulataneous clock for AI and AO
11-09-2005 12:04 PM
Hi Otis,
Let me reframe my question. You sent me a VI which generates two pulse trains one at 200 KHZ and other at 50 KHZ from the same base. Now I want t o see them on graph. But how? If there is any data output I can put a graph indicattor and see it but here we have task in and task out in DAQmx sub vis.
The next thing I want to do is to write 50 KHZ pulse train at Analog Output . Since I wanna use it to get a synchronized singal from my signal generator like we use TTL .
I'll be glad if you could let me know how can I see these two pulses train on the screen first and then write one of them i.e. 50 KHz on AO.
Thnaks
AM
11-10-2005 04:24 PM
Hi AM,
When you generate pulse trains you are simply setting the characteristics that
you want a pulse train generator to have. Unfortunately that means that
you don't actually write a waveform that you can see directly. However,
if you wanted really wanted to see what you just generated then you could
always wire the signal into one of your analog input lines.
You also said that you wanted to generate an pulse train with the analog output
line. While you could do this, I would still recommend doing that with
the counter. However, a workaround would be to use the 200kHz pulse train
you are generating as an external clock for the analog output operation, then
write an array of [0,0,5,5]. You will then get an analog signal that
looks like a 50 kHz pulse train.
If you want to read the signal coming from your analog output lines, then take
a look at this KnowledgeBase:
Read the Value of Analog Output Channels
Keep in mind that if you want to see these signals you will need to sample at a
rate at least twice that of the highest frequency you are trying to measure.
Regards,
01-13-2006 11:09 AM
Hi Otis,
I have a couple of questions regarding the Vi “DownSample Counter” you sent me. I have hooked the output of counter output through ctr0 OUT on National Instrument BNC- 2110 to the oscilloscope and I can see the output of whatever frequency I give it. On counter output I chose Dev1/ctr0. Since on BNC-2110 I have only ctr0 out.
Now I want to see the frequency of the downsample output on the oscilloscope using the same arrangement like through BNC-2110 and PCI- 6251. Could you please advise me how to set the parameters in Counter output, downsample counter output and source of down sample ticks? Please keep in mind I don’t have ctr1 on my BNC-2110. Can I see these two out puts separately i.e. counter output before dowsampling and after downsampling?
The 2nd part of my question is regarding data acquisition. Now I want to acquire data using clock that is in sync with Downsample counter output. Like we do in case of Multi-Function Synch AI-AO.vi but I want to make use of this downsample counter.
Actually I am trying to implement the “Sampling of Bandpass signals” for I & Q signal generation .