From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-29-2006 04:47 PM
11-30-2006 10:44 AM
I've used the 6259 to do something similar so I'd expect the 6251 would also be capable. In my app, I had a counter generating a 10 kHz "sampling clock". I configured a hw-timed output task to generate several output bits on the leading edge and configured a hw-timed input task to acquire several input bits on the trailing edge. It worked out just fine.
Trouble is, I used LabVIEW and can't give you any syntax suggestions for LabWindows/CVI. The main thing I can think of is that when I was configuring the virtual channel, the string looked like:
Output: "Dev0/port0/line0:7"
Input: "Dev0/port0/line8:31"
The key (for me) was to designate the range of individual lines within the digital port and not just setup "Dev0/port0" which implies ALL lines at once. Maybe this helps? In any event, I DO think the board can do what you want if you can find someone to show you how to do it with CVI.
-Kevin P.
11-30-2006 12:02 PM
11-30-2006 01:13 PM
11-30-2006 01:40 PM
11-30-2006 01:48 PM
11-30-2006 01:52 PM
11-30-2006 04:26 PM
12-01-2006 10:30 AM
Erik,
Are you sure? Does your example use hw-clocking for the DIO? Doesn't hw-timed DIO need to be on Port 0 rather than on Port 1? And isn't it the case that the Port 0 bits that can be hw-clocked cannot be routed as PFI signals?
(Ok, I just reviewed the beginning of the thread and the original poster started on Port 1 and didn't explicitly talk about hw-timing. I think I just assumed hw-timing when he referred to 40000 bytes/sec. I also assumed the need for buffered acquisition rather than software polling for the sake of data integrity.)
So... I would very much recommended moving over to Port 0 and using the "correlated DIO" capabilities of the M-series board. It kinda sounds like this could be done using a simple counter pulsetrain as the CLOCK output and a single hw-timed DI task for the DATA input. The same counter used as the CLOCK output could be used as the sampling clock for the DI task, though I'd recommend using the active CLOCK edge as the leading edge of the pulsetrain and perform the DI sampling on the trailing edge of the same pulsetrain.
-Kevin P.
12-01-2006 03:02 PM