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.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQsingleBufToDisk works once using PCI-MIO-16E-4, then not again until I power off

The first time I run this example C++ code, I get the data I expect from my single-ended source. Then, subsequent runs fill the data file with 00 F8 00 F8 00 F8 00 F8...etc. To get the right data, I have to power off the machine, not just restart.

I modified the code so that it makes 3 acquisitions and concatenates the results to the same file, and again, the same result: it works the first time, but not again until I turn the machine off and on again.

So it seems to be something on the board doesn't get reset or cleaned up when the program exits, and I can get it out of this state only by power cycling.

System: NI-DAQ 6.9, PII 450, Win2k, 384MB RAM,

Any tho
ughts?

Vince Bafetti
Sr. System Electronics Engineer
Iridigm Display Corp.
415.626.8800 x115
vince@iridigm.com
0 Kudos
Message 1 of 2
(2,261 Views)
NI-DAQ 6.9.1 is available you could try installing that.

Do you call DAQ_Clear before the program exits and before you call anything else?

Also try calling Init_DA_Brds on it...

Good Luck
0 Kudos
Message 2 of 2
(2,261 Views)