04-28-2008 06:50 AM
Hi Michael,
I understand that you want to continuously acquire data from a 6552, the fact that you are using a 20 MHz sample clock shouldn’t be a problem since the specification of this card is 100 MHz maximum clock rate. In order to truly understand what could be going wrong in this case we need to know more information about your system. You say you cannot run this vi at 20 MHz, can you run it at other rates? What behavior that is not expected are you seeing at 20 MHz? How much data are you trying to acquire? Is this a PCI or PXI card, are you using a controller in the PXI chassis? In what slot do you have the 6552? Is this the only module in the chassis? If streaming to disk is a requirement in your application, I would like to point you to this article in developer zone that has examples of continuous acquisition while continuously streaming data. Please, try running the vis in the advanced folder and let us know the results. These examples use the Win32 File IO vis, that are useful for read/write large amounts of data at high data rates. You can find them in this developer zone.
04-28-2008 10:02 AM
04-29-2008 11:17 AM
05-01-2008 07:55 AM
Hi Chris,
I intend to acquire on one channel only. Ok my issue is not going to be that of fetching the data back at any great speed. If it takes in the order
of seconds to do this that is fine. So my issue is the speed of acquiring the data and the limitation in the memory size. So i will be writing
and reading to the part simultaneously. For every 20 clock cycles I require a read. If I write and read everything simultaneously I will require
20M of memory to store my readback values. But I'm limited to 8M of my card. So ideally I need to trigger a readback on the 20th write
clock pulse. So fetching the data back is limited by the speed of my computer, that is fine. I need to do some more investigation. Do you think
what I'm trying to achieve is possible. So I want a continous clock to 20MHz to be driven to my part with no interrupts to this clock. And after
every 20 clocks to acquire data on one channel, until 1M of data is gathered. Then when complete, read back all the data.
Regards,
Michael
05-02-2008 11:57 AM
05-02-2008 01:10 PM
05-06-2008 11:18 AM
Hi,
Thank you for your continued help on this subject. Yes what you suggest is what I was originally trying, unsucessfully mind! So I can generate my script trigger successfully and view through PFI0, every 20 clock pulses etc. See attached ammended file. However I'm still confused as to how to "connect" this trigger out signal back into my acquisition. I've a pattern match set-up so that I can view the output. However which configuration of Trigger set-up should I use. I imagine it's Digital Edge Ref Trigger as opposed to start trigger? If I select start trigger it will acquire the data back at the clock running rate. If Digital Edge Ref trigger is the correct setting what should I set the pretrig samples number to? Any further help appreciated, or my example ammended may point me in the right direction.
Thanks,
Mike
05-07-2008 11:15 AM
05-08-2008 07:35 AM
Hi Chris,
I have implemented what I think it correct with regard to the Start Trig Edge and the Ref Trigger Edge. While monitoring PFI0 signal with repect to the generated signals I can observe the the acquisition does take place at the position of the generated marker, for the programmed number of samples. Alsio Pre-trigger samples is working correctly and can acquire samples before trigger point. However I am only getting one section of acquired data corresponding to the first trigger marker, I wish to readback 5 in this case, corresponding to my script statement "repeat 5". I can observe 5 markers at PFI0 at their correct location so my generation is working. But the aquisition is only working for the first one. Any thoughts? Also I also need to program the readback clock to be the same at the generation clock or my program won't run. Can these not be independent? Or should I be able to omit the readback clock seeing as I only wish to readback on the marker?
Thanks,
Michael
05-09-2008 01:46 PM