Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

buffer re-write

here's the scenario:

I have a 6534 DIO card...

I'm writing to the buffer using the "buffer write" vi. I'm then outputting the data using "buffer control" with "start" as the control code. After it is outputted, the bits on the DIO card remain the same until I use "dio clear."

What I want to do is rewrite the buffer then output it again before clearing the DIO card. I'm getting buffer errors when I try to do this. I can get it to work if I clear the buffer before I write to it for the second time, but that also clears the bits on my DIO card, which I do not want.

Any suggestions?

Thanks,
Sal
0 Kudos
Message 1 of 2
(3,283 Views)
Sal

I would suggest looking at the shipping example called 'Cont Pattern Output.VI'. This VI is set up to do continuous pattern output. It is set up to continually update the buffer inside the while loop. You should be able to modify this VI to do want you are wanting.

Let me know if this doesn't work.

Brian
0 Kudos
Message 2 of 2
(3,283 Views)