I'm using Level-Ack handshaking to transmit data. Currently, I'm hooked up to a loop-back on the DIO32HS card.
If I don't use double-buffering, I end up with pauses in data transmission, so I need to use double buffering. Unfortunately, I can't seem to set up a delay in the middle of a double buffered scheme.
What I need to do is this:
Transmit 64 packets of data (16 bits each) on group 2 / Receive 64 packets of data (16 bits each) on group 1
Delay for .2 ms
Transmit the same packets again / receive
The delay in the middle will need to be varied, from .2 to 20 ms.
I'm programming in Visual C++ 6.0 under Windows 2000, with (as suggested above) group1 c
onfigured as input (DIOA and DIOB) and group2 set up as output (DIOC and DIOD). Due to the speed of transmission (256kHz) and the small size of the data set, the program I wrote, no matter how tight I try to make it, cannot insert the proper delay and start the next send on time.
Does anyone have any idea if such a pause is possible? Anyone know how to do it, or any suggestions on what to try?
Thanks!