08-16-2010 12:47 PM
Hi all, I'm currently using PCIe-7851r fpga card to drive my device. There were 64 lines to be controlled. So what I did is generating the commands on the host pc and then transfer it to the target via DMA FIFO. The data type of the FIFO is U64, i.e. every one digit controls 64 DIO lines. But the question becomes complex when I transfer 66 line command. I tried to create 2 FIFOs, but I can hardly make the 2 FIFOs synchronized.
I think I might be able to create 2 U64 arrays, one contains the original 64 line command,s and the other contains the 2 line info (a waste). And then I interleave them in the host and decimate them in the target. There should be enough cycles to to this. But I dont think this is a good solution. Is there any better method? Thank you.
LabVIEW 2009, Windows XP, PCIe-7851R
Solved! Go to Solution.
08-16-2010 07:31 PM
08-17-2010 05:55 AM
Using the techniques highlighted in this tutorial:
You could use code like this:
08-17-2010 07:35 AM
Thank you, macaba! I just wonder will it take too long if I use the case structure to decimate the U8 data. I'll give it a shot. Cheers.