12-31-2006 03:23 AM
12-31-2006 10:15 PM
Attached is the Vi which i have made. There is no problem when my trigger wave is 1kHz and is capturing a 100Hz wave. But when I increased the trigger wave to a higher frequency, I am not getting the correct no. of points per cycle of the captured wave. For example when i increase the trigger wave to 10kHz, I am not getting 100 points per cycle of the 100Hz wave. I am getting only 10-12 points per cycle.
Pls advise on any problem with the vi.
Thanks
12-31-2006 11:56 PM
01-02-2007 10:23 AM
01-03-2007 02:02 AM
01-03-2007 12:13 PM
Hello lfw,
"I begain to "lost" data when I increased the frequency of the triggering wave to be more than 70kHz. I was wondering if there is anyway to increase this value."
How can you tell that you are losing data? At what sampling rate are you acquiring your data?
"1) I have been using the maximum sample rate 15MS/s for all my trial test. Using the formula as advised, the trigger re-arm time should be about 1e-5s. Does this mean that the frequency of the triggering wave can actually be ard 100kHz??"
The rearm time for multiple records is 144 * sample period. If you are acquiring data at 15 MS/s, then the trigger rearm time is 9.6 us, which corresponds with a 104.167 kHz maximum trigger frequency.
"2) Is there any way I can verify that the records are actually not over written before they are fetched?"
You will not be able to fetch a record that has been overwritten. You will receive an error if you try to do so.
Please let me know if you have any further questions
Regards,
Sean Close
Product Support Engineer: High Speed Digitizers
01-03-2007 01:10 PM
lfw,
Also keep in mind the record size will affect the trigger rearm time. As the number of samples increases, so does the time between triggers. The 144 sample clock spec is with the minimum record size.
01-03-2007 07:45 PM
Hi Sean,
I think that I am losing data when I am using a triggering wave higher than 70kHz because I am not getting the correct no. of records needed to plot out one cycle of the 100Hz wave. For example when i used a triggering wave of 80kHz, the no. of record i used to plot out a cycle of the 100Hz wave is only 400, whereas by calculations there should be 800 triggers per cycle and I should have 800 records. Pls correct me if my explanation is wrong.
Is there any possible reasons why I cannot reach 100khz for the triggering wave w/o losing data if my explanation is correct? I am wondering also if my save to disk function in the vi is slowing everything down.
Thanks for all the help.
Regards,
lfw
01-04-2007 10:16 AM
Hello lfw,
Because you are rearming for multiple triggers in hardware, your loop speed should not effect how many records per cycle you are acquiring. Your loop speed will only determine how fast you are fetching that data from the digitizer.
How many samples are you acquiring in each record? If you receive a trigger while you are still acquiring samples, that trigger will be ignored. Additionally, if you are acquiring pretrigger samples when a trigger is received, that trigger will be ignored.
Try setting your record size to 1. Do you still lose data?
Please look in the NI High Speed Digitizers Help under Fundamentals >> Triggering >> Trigger Parameters >> Trigger Holdoff for more information on this.
Regards,
Sean Close
01-04-2007 07:30 PM
Hi Sean,
Everything is fine after I reduce my record size. Thanks for all the help. Really appreciate it.
Regards,
lfw