09-01-2005 09:38 PM
09-02-2005 12:06 PM
Hi Jim-
In order to perform synchronized digital operations on your M Series card you will need to use the correlated digital I/O capabilities of port 0 rather than port 1.
There are no C# shipping examples for concurrent DIO operations, but I was working on a similar application earlier this week. There is no digital timing engine on the card so you have to use a sample clock from another source to clock the digital operation (hence the name "correlated").
Basically there are two options- you can run an analog input operation concurrently and use the ai/SampleClock as the timing source or you can use an onboard counter to generate a sample clock for your digital circuitry. I have attached two examples that illustrate both of these concepts and one method for writing and reading from a split port and using bit shifting to realign the samples.
Hopefully this helps-
09-05-2005 01:46 PM
Thanks very much - your code sample is very clear and helpful.
We are essentially doing the same as in your code but with the analog output clock driving everything.
We didn't know about the limitation with the PFI lines, but this explains a lot. Luckily we have some port 0 lines open and we can re-route the PFI's to them.
Thanks Again,
Jim
09-05-2005 01:54 PM
Hi Jim-
I'm glad my suggestions were helpful- good luck with the rest of your application!![]()
10-26-2006 06:19 PM