Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIG_BLOCK_OUT not functional when count > 15

I'm using a PCI 6534 card to do some digital IO stuff. When I use the following function call:
dig_block_out 1,1,Oup(0), count
It works fine when I set count to be 10 or 15, but wouldn't do anything (nor return an error message) when I set count to be 20 or bigger. I'm wondering why...
0 Kudos
Message 1 of 4
(3,423 Views)
Sorry... Forgot to mention
OS is WINXP Professional
programming software = VB6.0
0 Kudos
Message 2 of 4
(3,423 Views)
And the pci card is set up as following
Group 1 = Port 0 and Port 1 (16 bit), handshaking burst protocol, configured as output
0 Kudos
Message 3 of 4
(3,423 Views)
Hi Haitao,

The easiest and best way to get started with handshaking burst protocol is to take a look at the shipping examples with NI-DAQ. When you installed support for NI-DAQ, you should have had the option to install support for VB, VC++ etc. selecting these will install the example programs in the NI-DAQ/samples directory. Sometimes it is useful to also install the VC++ or CVI ones because the examples can give you a reference to how to program.

That being said, I think that there is probably a parameter or a call that is not quite configured correctly in your code. Another thing to take into account is the device you are communicating with. It could be that the device can only handle 15 samples and when the PCI-6534 uses burst mode at upto 20MHz, i
t could be transferring data to quickly. What is probably occuring in that case is that the card is sending the data but the receiving device is not acknowledging all the data. For instance, if you are passing a buffer of data with 100 samples, they will all be stored on the 6534's FIFO and the only thing preventing it from outputting correctly once configured to do so is the handshaking control lines for burst mode.

Anyway, I would start with those suggestions to see if we can isolate the problem and then work from their. Let me know if you have any other questions that might help. Have a good day.

Ron
0 Kudos
Message 4 of 4
(3,423 Views)