01-20-2020 10:46 AM
I need to convert many files at the same time from the .tdms format to Pi ASCII, but I have two problems:
I don't know wich software use, I have a LabVIEW script, but it only converts one file per time. I was thinking about write something in MatLAB, but I don't know if it is possible.
When I convert a file from .tdms to Pi ASCII, I only have integers, the floats didn't write in the .txt and the floats have several important information.
Thanks to anyone who can help me!
01-20-2020 10:57 AM
@daniserna wrote:
I have a LabVIEW script, but it only converts one file per time.
You can use List Folder to get a list of files to convert. Then you just use a FOR loop to autoindex on the file array and convert.
@daniserna wrote:
When I convert a file from .tdms to Pi ASCII, I only have integers, the floats didn't write in the .txt and the floats have several important information.
Sounds like something is wrong with your code. Post it and we may spot something.
01-20-2020 11:00 AM
What does "Pi ASCII" mean?
01-20-2020 11:06 AM
It means a .txt with Pi ASCII satandards
01-20-2020 11:25 AM - edited 01-20-2020 11:29 AM
@daniserna wrote:
It means a .txt with Pi ASCII satandards
How does "Pi ASCII" standard differ from ASCII standard?
But I would open them in LabVIEW and save them as a Tab delimited text file using the "%S" format so you don't lose any digits of accuracy due to rounding or conversion
01-20-2020 02:23 PM
@daniserna wrote:
I need to convert many files at the same time ...
A file access is not parallel, so I am guessing you just want to automate the successive processing of multiple files with one click.
What is a "LabVIEW script"? I am not familiar with that term. It seems you probably have a VI that can process one single file, so all you need is to place it in a FOR loop, iterating over all file paths.
If you are missing the fractional part, it is most likely that you either use the wrong tool or that the file uses a localized decimal point (period or comma) that differs.
Do you want to convert all tdms files in a given folder? How about subfolders? What should the output files go?
If you would show us your code, we could probably help you in an instant. Can you attach what you call "LabVIEW script"? Who wrote it?
01-21-2020 03:42 AM - edited 01-21-2020 03:43 AM
Hi danisema,
@daniserna wrote:
It means a .txt with Pi ASCII satandards
Do you want something like this? (That's what I found when googling for "Pi ASCII"…)
01-28-2020 07:12 AM
Is the output of this hardware: https://www.cosworth.com/products/toolbox/
01-28-2020 07:14 AM
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
01-28-2020 07:14 AM
Basically the output of this dahs:https://www.cosworth.com/products/toolbox/