LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquire and save data with PXI-5122 for 3 hours of real-time

Hello , I was looking at this code and tried to run it and got the following error,Error 8 occurred at New File 

Possible reason(s):

LabVIEW: File permission error. You do not have the correct permissions for the file.
=========================
NI-488: DMA hardware error detected.

Do you know why it is giving me this error? Thank you.

0 Kudos
Message 21 of 26
(915 Views)

Hi

 

May I ask which code from this post you are running?

We have some good articles (here, here, and here) about Error 8 you are seeing. Generally this error is seen when the file you are trying to access is in use by another program or you don't have the correct permissions on your machine to open up the file location. Be sure you have administrative privileges on your machine.

 

I would recommend what the previous post mentioned about using some of our shipping examples to refer to when aquiring and saving data to a file. Also, I see that you have posted elsewhere on our forums, and the responses you have received have some very good resources on there as well for getting started with your NI-SCOPE device. 

 

 

Peter E
Applications Engineer
National Instruments
0 Kudos
Message 22 of 26
(897 Views)

Hello,

I have attached the file. I just realized that I could not save it to the defualt path, I changed the path and the file was successfully saved! However , the program only runs for one second and then asks me if I would like to replace the file. Is that a problem with the loop ? Thank you.

 

0 Kudos
Message 23 of 26
(886 Views)

Its a problem with your code. Do you not have the Context Help open? If you would look at the function, you would quickly see and input called 'append to file? (new file:F)'. So, with input unwired, the default is False so it will try to create a new file with the same name and you get the dialog.

0 Kudos
Message 24 of 26
(883 Views)

Hello, I just came into contact with Labview and I use PCI-5122. I was fortunate to see your discussion. What you are doing happens to be what I am doing now. My problem is that when I sample at 100M sampling rate, he will report an error: The The requested data has been overwritten in memory so it is no longer available for fatching. Interestingly, when using the 100M sampling rate on the NI-MAX virtual device, there is no problem.

0 Kudos
Message 25 of 26
(671 Views)

@johnded please create a separate topic to discuss your issue and gather inputs from forum members. From a quick look at your VI, there is scope for improvement and we can discuss there.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 26 of 26
(664 Views)