Hi BJP-
To verify, it sounds like you have been able to add 2V to the output when the button is pressed. If this is the case then updating the value to subtract 2V back out shouldn't be a problem for you. It seems like the question is how to create the 1ms delay between the two operations.
You should be able to accomplish this easily by using a sequence structure to implement a delay step between the two operations. I have attached a simple DAQmx VI that shows how to accomplish this. "Triggering" is performed by polling the state of a digital line and the sequence executes conditionally based on this state. Basically, each frame in the sequence executes in order so the first and third frames are the voltage updates and the second is simply a software delay.
Please let us know if this is what you or suggesting or if more clarification is needed.
Thanks a lot!
Message Edited by Tom W. on 06-02-2005 04:30 PM
Tom W
National Instruments