From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Last written AO value from DAC

I am using DAQmx with C++

 

I am using buffered analog output on several different types of devices (for example m-series cards and X-Series USB devices).  The output is continuous,  does not allow regeneration and the buffer is updated on the fly. 

the problem is

 

1. sometimes the user needs to stop the output immediately (lets say during an error condition)  How can I determine the value of the last sample written by the device.  (what is the current value being output by the DACs on the device)

 

I put in a service request some time ago with this question and got no where.   I am hoping that the NI users community has an answer to this or can tell me if it can not be done.

Message 1 of 2
(4,140 Views)

Hello Souldog,

 

How are you saving the data in the program? Does the data show unexpected values when stopped?

 

Lauren

Applications Engineering

National Instruments

0 Kudos
Message 2 of 2
(4,100 Views)