|
Data Logging to cRIO using c++
We've been attempting to log binary data to the cRIO using C++. We are able to log to a file and upload it to the PC, but the file is getting corrupted. We are logging floating point numbers at a 200 Hz rate. Looking at the log file in a hex editor, we can see that several dozen floating point numbers will get logged just fine. Then we will see the first two bytes of a new float, and then the next float will appear in the file. We are logging doubles, so each float is 4 bytes long. In other words, two bytes of the four byte float is written, then the next full float is written. We are using ioLib to perform the data logging.
Has anyone had success logging data to directly to a cRIO file?
|