07-24-2009 03:50 AM
Hi,
I am using PXI-6552 with HSDIO driver to do some digital waveform generation and acquisition.
May I use generated waveform (that is output to...let's say...DIO 0) as external sample clock (i.e I connect DIO 0 back to STROBE and configure STROBE as the sample clock) as I would like to control the acquisition timing bit-by-bit? I've tried to do so but it failed.
07-24-2009 04:41 AM
07-24-2009 06:52 AM
07-24-2009 08:58 AM
dkpham,
There is a restriction that the clock must be "freerunning". What that means is that your "clock" (and it needs to be an actual toggle signal) needs to be toggling before you commit your acquisition session and as you close it. If the clock stops between them, you run the risk of a hardware clocking error.
07-24-2009 09:04 AM
07-29-2009 04:45 AM
Hi,
Sorry for my late response. Please see attached vi.
External pin connections are as follows:
DIO 0 (emulate clock signal) is connected to STROBE/PFI 5
DIO 1 (acquired waveform) is connect to DIO 9
DIO 2 (start trigger) is connect to PFI 1
In the vi, Generation session is runned first to generate all needed waveforms. Acquisition session is then runned with sample clock being STROBE. It fails!
07-29-2009 08:49 AM
dkpham,
You're attached code does not have generation running first. Since LabVIEW is a data flow programmaing language, you need to make sure that you have some sort of dependency from generation that gates the acquisition code. For example, you can wire the error cluster from the generation INITIATE up to the acquisition INIT SESSION. In this way, you'll be guaranteed that the generation will start producing the clock before the acquisition sessions needs to have a clock.
07-29-2009 09:36 AM
Ryan,
Thanks for your reply. Actually I am aware of this issue so in this case I deliberately runned the generation first and checked all the waveforms by oscilloscope beofore running the acquisition part. However i still don't know why it doesn't work.
07-30-2009 08:44 AM
07-31-2009 03:12 AM - edited 07-31-2009 03:13 AM