LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS to Pi ASCII


@daniserna wrote:

With LabVIEW Script I mean a Project or a VI.

 

I need to convert many files at the same time, but also I need to select a txt and a tdms file at the same time, this is the problem, I need to convert the tdms into a specific txt


So you need to:

  1. Open a .tdms file
  2. Read everything into an array
  3. Use "Write to delimited Spreadsheet" to output a text file

All that seems pretty straight forward except for the "Pi ASCII" part.

 

What is the difference between "Pi ASCII" and "regular" ASCII?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 11 of 16
(1,449 Views)

Pi ASCII is the data file uses by Pi TOOLBOX, it divides in groups the logs, and each group are divided in rows and columns, were the rows are the logs per a defined time and also each column is one of the channels

0 Kudos
Message 12 of 16
(1,428 Views)

@daniserna wrote:

Pi ASCII is the data file uses by Pi TOOLBOX, it divides in groups the logs, and each group are divided in rows and columns, were the rows are the logs per a defined time and also each column is one of the channels


American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters. https://en.wikipedia.org/wiki/ASCII

 

ASCII does NOT define a data file format.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 13 of 16
(1,415 Views)

The confusion here is because "Pi ASCII" (or "Pi Toolbox ASCII") is not the name of a character encoding standard the way "ASCII" is, but it's the name of a data file format, akin to "CSV file". I found some documentation here, starting on page 431: http://download.cosworth.com/documents/Reference/29P-071406.pdf

0 Kudos
Message 14 of 16
(1,401 Views)

@AaronTeitlebaum wrote:

The confusion here is because "Pi ASCII" (or "Pi Toolbox ASCII") is not the name of a character encoding standard the way "ASCII" is, but it's the name of a data file format, akin to "CSV file". I found some documentation here, starting on page 431: http://download.cosworth.com/documents/Reference/29P-071406.pdf


I think you are misunderstanding their use of ASCII. In fact I see no mention of "Pi ASCII" in the manual.

 

ASCII is merely the character set their text file output uses.

 

Page 431 is an explanation of the programs exported data formats and ASCII (plain text file) is one of the options. As Page 432 continues to explain how to import the ASCII file into Excel.

 

Page 433 discusses "Pi Datasets"

 

Pi Dataset format data files support channel, event and lap marker data. Pi Dataset is the Pi Toolbox native format.

 

"Pi Toolbox native format" or "Pi Dataset" are proprietary formats that only Pi Research uses. 

 

If you need to convert an Excel or ASCII file TO a "Pi dataset" then you need to get the file format details from Pi Research if it is not in the manual

 

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 15 of 16
(1,387 Views)

I have no experience with this software, but I'm interpreting the screenshot on page 432 as an illustration of a typical "Pi Toolbox ASCII text file" as mentioned at the top of the page. It seems to depict a structure with various blocks and fields. From all daniserna has said about it, I think they were referring to the depicted format as "Pi ASCII".

Message 16 of 16
(1,373 Views)