02-07-2006 03:36 AM
02-07-2006 05:35 AM
Jason,
Either remove the While loop or run it for one iteration like xseadog has suggested
02-07-2006 07:03 AM
02-15-2006 10:02 AM
Hi,
I have taken out the loop. I can run the program and change the amplitude but i have some problems:
1. When i change the frequency, the frequency of the waveform generated doesn't change.
2. The waveform generated is not smooth. (try to run the program few times)
I have attached the program. Please help me to solve the problem.
Best wishes. Chan
02-17-2006 09:06 AM
Jason,
I have modified the Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi example to do what I think you are trying to do. I am just setting the sampling rate very high to guarantee a nice waveform and to output only one cycle, I am dividing the sampling rate by the desired frequency to output that number of points. Give this a shot. It is done in LV 8. In case you do not have LV 8, I have also attached a jpg of the block diagram and front panel. I hope this works out for you.
Regards,
Lon
02-19-2006 01:53 AM
Hi Irallen,
The vi you sent me is usefull and this is the vi i want. Thanks. I am using PCI 6120. I still have some problem:
1. I try to generate the waveform until 20 kHz. When i try with 1 kHz and 2 kHz, the waveform is good. I can't do it with 3 kHz because error 200693 occur. So, this is my first problem.
2. My second problem is that, when i try to generate the waveform more than 4 kHz, i didn't get a symetry waveform. I attach it here.
Please help me to solve these two problem with the vi you sent earlier. Thank you very much for your help.
Best wishes. Jason
02-20-2006 08:01 PM
02-21-2006 02:51 AM
02-21-2006 05:33 PM
02-22-2006 05:40 AM
Hi,
Thanks. Regarding the waveform offset, i do ground the wire to AO GRD.
Transmitter:
Cable positif to AO 0
Cable negatif to AO GRD
How to solve this problem. Thanks.
Best wishes. Chan