Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between DIG_Block commands and DIG_Prt commands?

Hi, I'm new to the NI-DAQ APIs, and I need to develop a software that communicates with a custom board using PCI-DIO-96.
I read all the help files I could, but I don't see exactly what is the difference between DIG_Block calls and DIG_xxx_Prt calls. The former seems to deal with using the buffer, and the other one looks like it reads directly from the card, but I'm not sure what is the difference exactly. Could anyone offer me an explanation?

On a related note, Using the R1005050 cable and 50-pin terminator blocks, I wired pins APA7 to APA0 to BPA7 to BPA0 of SAME CARD, creating a loopback. Now, is it possible to send a digital data from port 0 (APA7 to APA0) to port 3(BPA7 to BPA0)? I have two threads, one is dedicated to send data and the other one is used to receive data. (I know this seems like a completely useless setup, but there are reasons) Would ONE PCI-DIO-96 send and receive data all by itself?

Thanks for your attention!

NP
0 Kudos
Message 1 of 2
(3,087 Views)
Hello NP,

You are correct in that DIG_Block calls deal directly with the buffer, which means you can write multiple samples to the buffer. However, the DIG_xxx_Prt calls are "one-time" read/writes.

You should be able to do a loopback on your digital board. Most boards are either port or line configurable, so just because you have port A configured for input doesn't mean that all your ports have to be configured for input.

Take care,
E.Lee
Eric
DE For Life!
0 Kudos
Message 2 of 2
(3,078 Views)