I'm trying to reset a counter in an onboard program with a PCI-7344 card. When I call the configure buffer function in the program, I get an error stating no data was in the return buffer. If I ignore the error, then the reset works, but the read functions on the host side have to deal with the extra data in the buffer. It appears that each time the configure buffer function is called in the onboard program, it puts data into the return buffer and does not clear it.
Has anyone successfully used the configure buffer in an onboard program? Is there a trick to this?