Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Is There a Formatting Difference between Files Generated in VxWorks and Phar Lap?

Primary Software: LabVIEW Modules>>Real-Time Module
Primary Software Version: 2009
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
When I open a file saved to a real-time (RT) target in Notepad, the formatting in my files looks different between VxWorks based controllers (ex. cRIO 9014 and cFP-2220) and Phar Lap based controllers (ex. cFP-2120). However I cannot notice a difference in LabVIEW.  Why does this happen?

Solution:
Different operating systems have different standards for denoting end of line. Phar Lap, which is Windows based writes \r\n to denote an end of line. In contrast, VxWorks, which is Unix based, writes \n to denote the same end of line.

Notepad does not recognize \n as an end of line, therefore it just ignores it. The difference in formatting can be seen only in Notepad. Microsoft Word, Wordpad, Notepad++ do not show this difference.



Related Links:
Developer Zone Tutorial: Optimizing File I/O in LabVIEW and LabVIEW RT

Attachments:





Report Date: 03/20/2009
Last Updated: 04/01/2009
Document ID: 4VJFA3QR

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit