Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write measurement data from cRIO to drive on host-PC

Ok. So I got the data on the host now. The problem is, that it seems that they do not have all the data points (that I can see on the scope). I have the feeling that this is due to the time that is needed for the file operations (opening the file, writinging data, closing the file) cause the scope also runs slow when I connect the write to file box directly to the line that feeds the scope.

 

So I created a separate while loop where the data is written. (like the  producer/consumer concept) suggests. Now the scope is fast again but the data written to the file is still not everything. Could this be cause of the file operations (opening, writing, closing) or can there be another reason?

If it is the reason it can maybe help to fill an array with my data in the producer loop and write this into a file in the consumer loop everytime it has reached a certain size. Unfortunately I don't know exactly how this could be done.

 

Thanks for the help so far. 🙂

0 Kudos
Message 11 of 12
(1,546 Views)

I had the same problem, I was looking for the file under the directory on my computer and not on the cRio.

 

Thank you guys

0 Kudos
Message 12 of 12
(1,083 Views)