Go to Post This easy world of friends, of people that you can talk to for hours on end without knowing one another? That's FIRST. - Keith Chester [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 17-11-2013, 14:32
raflood raflood is offline
Registered User
FRC #0967
 
Join Date: Nov 2013
Location: CEDAR RAPIDS
Posts: 2
raflood is on a distinguished road
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?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi