|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Data Logging to cRIO using c++
We have had experience logging to a file on the cRIO and then pulling the file off via FTP in C++ and Java. Just wondering, why did you chose to log the data into a binary file over a more-readable text file form?
|
|
#2
|
|||||
|
|||||
|
Re: Data Logging to cRIO using c++
Have you tried using the C standard library instead of ioLib?
|
|
#3
|
|||
|
|||
|
Re: Data Logging to cRIO using c++
There is nothing wrong with your approach, so there must be something wrong with the implementation.
Review the code that writes the binary to ensure that it writes what you expect. Pay special attention to conditional code. ftp the file three ways, once using binary mode, once using text mode, and once with automatic. Use file size or contents or diff to determine if the auto matched binary or text. My suspicion is that the file was corrupted during the transfer using text mode. Review the code that parses the binary file, again paying close attention to any conditional code. Greg McKaskle |
|
#4
|
|||
|
|||
|
Re: Data Logging to cRIO using c++
We were unknowingly doing an ASCII FTP file transfer. Changing to a binary transfer fixed our problem. Thanks for all the suggestions.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|