Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

ni pci 6225 data acquisition and file I/O

Hi all,
I'm doing a project where I collect signals from a breakout box and writing them into a file.  I've set up the program being continuous sampling with a set number of samples (1000 samples) and a clock.  I think I'm having some timing issues, especially within synchronizing the data acquisition and the file I/O.  Within my program, I want to create, read and write the signals onto a file, and close the file.  Some of the errors I get through simulation are that it could not get any samples from the buffer, the file path couldn't be found, error -200279, and most of the time the program freezes.  I do not get any output or any files at all.  Please take a look at my program.  Thanks
0 Kudos
Message 1 of 2
(2,877 Views)

Hi ronan35,

I didn’t get errors while running your vi. First, I specified a file path and then ran your vi and I was able to acquire data from a USB-6009 and write the data to a file. Sometimes the errors have an accompanying message that briefly describes them and gives possible reason. Related to the errors that you mentioned, I found some links that can be helpful in troubleshooting them:

- Why Do I Get Error -200279 When Writing Continuously Acquired Data to a File?

- (DAQmx) Error -200279 During a Continuous, Buffered Acquisition

- Common NI-DAQmx Error Codes and Solutions: Codes -200000 to -200299 and -50103

If you can provide me the specific error and what hardware you are using I could be able to help you better.  I hope this is helpful,

Ana P
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,843 Views)